CODE:
									
<%@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);

//In this case we are hardcoding the labels
//but it would be the same if the labels are retrieved from the database
chart1.getLegend().setItem(0, "January");
chart1.getLegend().setItem(1, "February");
chart1.getLegend().setItem(2, "March");
chart1.getLegend().setItem(3, "April");
chart1.getLegend().setItem(4, "May");
chart1.getLegend().setItem(5, "June");
chart1.getLegend().setItem(6, "July");
chart1.getLegend().setItem(7, "August");
chart1.getLegend().setItem(8, "September");
chart1.getLegend().setItem(9, "October");
chart1.getLegend().setItem(10, "November");
chart1.getLegend().setItem(11, "December");

//Use the Style Property to turn ON the AS_2LEVELS flag
chart1.getAxisX().setStyle(chart1.getAxisX().getStyle() | AxisStyle.SHOW_2LEVELS);
chart1.setGallery(Gallery.AREA);

%>

<%=chart1.getHtmlTag("450","280")%>