<%@page import="SoftwareFX.ChartFX.*"%>
<%
ChartServer chart1 = new ChartServer(application,request,response );
// Fix the random data so chart always look the same
chart1.setTypeEx(chart1.getTypeEx() | ChartTypeEx.RANDOM_FIXED);
// Preload the Image
javax.swing.ImageIcon ico = new javax.swing.ImageIcon(
application.getRealPath("/ChartFX") + "/data/cfx_logo_small.jpg");
java.awt.Image img = ico.getImage();
SoftwareFX.ChartFX.Annotation.AnnotationX annot = new SoftwareFX.ChartFX.Annotation.AnnotationX();
chart1.getExtensions().add(annot);
SoftwareFX.ChartFX.Annotation.AnnotationPicture pict = new SoftwareFX.ChartFX.Annotation.AnnotationPicture();
annot.getList().add(pict);
pict.setPicture(img);
pict.setHeight(50);
pict.setWidth(50);
pict.setLeft(390);
pict.setTop(10);
pict.setColor(new java.awt.Color(0,0,0,0));
pict.getBorder().setColor(new java.awt.Color(0,0,0,0));
pict.setMode(SoftwareFX.ChartFX.Annotation.AnnImageMode.ORIGINAL);
%>
<%=chart1.getHtmlTag("450","280")%>
|