<%@page import="SoftwareFX.ChartFX.*"%>
<%
ChartServer chart1 = new ChartServer(application,request,response );
java.util.Random r = new java.util.Random(1);
chart1.openData(COD.VALUES, 1, 12);
for (int i=0;i<12;i++)
chart1.getValue().setItem(0, i,r.nextDouble()* 80);
chart1.closeData(COD.VALUES);
//The next lines create another x axis and set its properties
Axis axis = chart1.getAxis().getItem(3);
axis.setVisible(true);
axis.setMin(0);
axis.setMax(12);
axis.setStep(3);
axis.setYAxis(false);
axis.setGridlines(true);
axis.getLabel().setItem(3,"1st Quarter");
axis.getLabel().setItem(6,"2nd Quarter");
axis.getLabel().setItem(9,"3rd Quarter");
%>
<%=chart1.getHtmlTag("450","280")%>
|