<%@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.AnnotationBalloon balloon = new SoftwareFX.ChartFX.Annotation.AnnotationBalloon();
annot.getList().add(balloon);
chart1.getExtensions().add(annot);
balloon.setTailCorner(3);
balloon.setArrowFactor(15);
balloon.getBorder().setColor(java.awt.Color.red);
balloon.getBorder().setWidth(2);
balloon.setColor(java.awt.Color.white);
balloon.setText("Balloon Text");
balloon.setHeight(70);
balloon.setWidth(-80);
balloon.attach(1.6, 70);
%>
<%=chart1.getHtmlTag("450","280")%>
|