<%@page import="SoftwareFX.ChartFX.*"%>
<%
ChartServer chart1 = new ChartServer(application,request,response );
chart1.openData(COD.VALUES,20,20);
for(int i=0; i < 20; i++)
{
chart1.getSeries().getItem(i).setLegend(java.lang.Integer.toString(i));
for(int j = 0; j < 20; j++)
chart1.getValue().setItem(i, j, ((java.lang.Math.sin((i * 2 * 3.1416) / 19) * java.lang.Math.cos(((j + 5) * 2 * 3.1416) / 19)) * 100));
}
chart1.closeData(COD.VALUES);
//3D Settings
chart1.setView3DDepth((short) 60);
chart1.setAngleX((short) 20);
chart1.setAngleY((short) 35);
chart1.setView3D(true);
chart1.setChart3D(true);
chart1.setGallery(Gallery.SURFACE);
//General Cosmetic Settings for Gallery type, Colors
SeriesAttributes series = chart1.getSeries().getItem(0);
series.setColor(new java.awt.Color(15, 213, 239));
series.setAlternateColor(new java.awt.Color(1, 128, 1));
series.setBorderEffect(BorderEffect.DARK);
chart1.getUserLegendBoxObj().setAutoContourLabels(true);
//You should use SetContourLabels to specify the range of values to appear on the user legend
//Make sure that you set this property after you have passed your data and set your colors
// Issue ID : 1623
Surface mySurface = (Surface) chart1.getGalleryObj();
mySurface.setShowBorders(true);
%>
<%=chart1.getHtmlTag("450","280")%>
|