CODE:
									
<%@page import="SoftwareFX.ChartFX.*"%>
<%

ChartServer chart1 = new ChartServer(application,request,response );

java.util.Random r = new java.util.Random(1);

//Populating the chart1
chart1.openData(COD.VALUES, 1, 4);
for (int i=0;i<4;i++)
    chart1.getValue().setItem(0, i, r.nextDouble()*1);
chart1.closeData(COD.VALUES);

//Set Min and Max
Axis axis = chart1.getAxisY();
axis.setMin((short) 0);
axis.setMax((short) 1);

//Set the Axis format to percentages
axis.getLabelsFormat().setFormat(AxisFormat.PERCENTAGE);

%>

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