<%@page import="SoftwareFX.ChartFX.*"%>
<%
ChartServer chart1 = new ChartServer(application,request,response );
java.util.Random r = new java.util.Random(1);
chart1.setGallery(Gallery.STEP);
chart1.setLineWidth((short) 3);
chart1.setChart3D(false);
chart1.setMarkerShape(MarkerShape.NONE);
//Populating the chart
chart1.openData(COD.VALUES, 2, 10);
for (int j=0;j<10;j++)
{
chart1.setValue(0, j, r.nextDouble() * 50);
chart1.setValue(1, j, (r.nextDouble() * 80) + 50);
}
chart1.closeData(COD.VALUES);
%>
<%=chart1.getHtmlTag("450","280")%>
|