<%@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, 24);
for (int i=0;i<24;i++)
chart1.setValue(0, i,r.nextDouble() * 100);
chart1.closeData(COD.VALUES);
chart1.setGallery(Gallery.SCATTER);
chart1.setPalette("Nature.Sky");
// Customizing first Y-Axis section
AxisSection section1 = chart1.getAxisY().getSection(0);
section1.setFrom(10);
section1.setTo(40);
section1.setFontStyle(java.awt.Font.BOLD|java.awt.Font.ITALIC);
section1.setGridlines(true);
section1.setTextColor(new java.awt.Color(138,43,226));
section1.setBackColor(new java.awt.Color(138,43,226,32));
section1.getGrid().setStyle(LineStyle.DASH_DOT);
// Customizing second Y-Axis section
AxisSection section2 = chart1.getAxisY().getSection(1);
section2.setFrom(60);
section2.setTo(80);
section2.setFontStyle(java.awt.Font.BOLD|java.awt.Font.ITALIC);
section2.setGridlines(true);
section2.setTextColor(java.awt.Color.red);
section2.setBackColor(new java.awt.Color(255,0,0,32));
section2.getGrid().setColor(section2.getTextColor());
section2.getGrid().setWidth(2);
// Customizing first section
section1 = chart1.getAxisX().getSection(0);
section1.setFrom(4);
section1.setTo(10);
section1.setFontStyle(java.awt.Font.BOLD|java.awt.Font.ITALIC);
section1.setGridlines(true);
section1.setTextColor(new java.awt.Color(30,144,255)); //DodgerBlue
section1.setBackColor(new java.awt.Color(30,144,255,32));
section1.getGrid().setStyle(LineStyle.DASH_DOT);
// Customizing second section
section2 = chart1.getAxisX().getSection(1);
section2.setFrom(14);
section2.setTo(22);
section2.setFontStyle(java.awt.Font.BOLD|java.awt.Font.ITALIC);
section2.setGridlines(true);
section2.setTextColor(new java.awt.Color(0,100,0)); // DarkGreen
section2.setBackColor(new java.awt.Color(0,100,0,32));
section2.getGrid().setColor(section2.getTextColor());
section2.getGrid().setWidth(2);
%>
<%=chart1.getHtmlTag("450","280")%>
|