<%@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.AnnotationArc arc = new SoftwareFX.ChartFX.Annotation.AnnotationArc();
arc.getBorder().setColor(java.awt.Color.red);
arc.getBorder().setWidth(4);
arc.setHeight(100);
arc.setWidth(-80);
arc.attach(2, 50);
annot.getList().add(arc);
chart1.getExtensions().add(annot);
%>
<%=chart1.getHtmlTag("450","280")%>
|