<%@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);
SoftwareFX.ChartFX.Annotation.AnnotationX annot = new SoftwareFX.ChartFX.Annotation.AnnotationX();
SoftwareFX.ChartFX.Annotation.AnnotationText text = new SoftwareFX.ChartFX.Annotation.AnnotationText();
annot.getList().add(text);
chart1.getExtensions().add(annot);
text.setText("This is an Annotation Text");
text.setTextColor(java.awt.Color.red);
text.attach(3,50);
%>
<%=chart1.getHtmlTag("450","280")%>
|