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, 24);
for (int i=0;i<24;i++)
	chart1.getValue().setItem(0, i,r.nextDouble());
   
chart1.closeData(COD.VALUES);
chart1.setGallery(Gallery.SCATTER); 
chart1.setPalette("Nature.Sky");

// Customizing first section
AxisSection section1 = chart1.getAxisX().getSections().getItem(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(138,43,226));
section1.setBackColor(new java.awt.Color(138,43,226,32));
section1.getGrid().setStyle(LineStyle.DASH_DOT);

// Customizing second section
AxisSection section2 = chart1.getAxisX().getSections().getItem(1);
section2.setFrom(14);
section2.setTo(22);
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);

%>

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