<%@page import="SoftwareFX.ChartFX.*"%>
<%
ChartServer chart1 = new ChartServer(application,request,response );
// Populating the Chart1
java.util.Random r = new java.util.Random(1);
chart1.openData(COD.VALUES, 1, 12);
for (int i=0;i<12;i++)
chart1.setValue(0, i,r.nextDouble() * 1000);
chart1.closeData(COD.VALUES);
chart1.setGallery(Gallery.LINES);
chart1.setMarkerSize((short)2);
chart1.setTypeMask(chart1.getTypeMask() & ~ChartType.COLOR_LINE);
chart1.setBorderEffect(BorderEffect.NONE);
chart1.getSeries(0).setBorderColor(chart1.getSeries(0).getColor());
chart1.getPoint(0,5).setMarkerSize((short)5);
chart1.getPoint(0,5).setMarkerShape(MarkerShape.TRIANGLE);
chart1.getPoint(0,5).setColor(java.awt.Color.red);
chart1.getPoint(0,5).setBorder(false);
chart1.setUserLegendBox(true);
UserLegendBoxItem userLegendBoxItem = chart1.getUserLegendBoxObj().getItem(0);
userLegendBoxItem.setLabel("New Fiscal Year");
userLegendBoxItem.setColor(java.awt.Color.red);
userLegendBoxItem.setMarkerShape(MarkerShape.TRIANGLE);
userLegendBoxItem.setBorderEffect(BorderEffect.NONE);
chart1.getUserLegendBoxObj().sizeToFit();
%>
<%=chart1.getHtmlTag("450","280")%>
|