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