<%@page import="SoftwareFX.ChartFX.*"%>
<%
ChartServer chart1 = new ChartServer(application,request,response );
chart1.setGallery(Gallery.SCATTER);
// Customizing Conditional Attributes
// Important: the Conditional Attributes must be defined before the chart1 is populated
ConditionalAttributes condition1 = chart1.getConditionalAttribute(0);
condition1.setColor(java.awt.Color.gray);
condition1.setMarkerSize((short) 5);
condition1.setMarkerShape(MarkerShape.CIRCLE);
condition1.getCondition().setTo(20);
condition1.getCondition().setToOpen(true);
condition1.setLegend("Underqualified");
ConditionalAttributes condition2 = chart1.getConditionalAttribute(1);
condition2.setColor(java.awt.Color.red);
condition2.setMarkerSize((short) 5);
condition2.setMarkerShape(MarkerShape.TRIANGLE);
condition2.getCondition().setFrom(80);
condition2.setLegend("Overqualified");
// Populating the Chart1
chart1.openData(COD.VALUES, 1, 20);
chart1.setValue(0,0,5);
chart1.setValue(0,1,75);
chart1.setValue(0,2,28);
chart1.setValue(0,3,37);
chart1.setValue(0,4,90);
chart1.setValue(0,5,7);
chart1.setValue(0,6,55);
chart1.setValue(0,7,85);
chart1.setValue(0,8,38);
chart1.setValue(0,9,47);
chart1.setValue(0,10,98);
chart1.setValue(0,11,71);
chart1.setValue(0,12,58);
chart1.setValue(0,13,17);
chart1.setValue(0,14,40);
chart1.setValue(0,15,77);
chart1.setValue(0,16,80);
chart1.setValue(0,17,15);
chart1.setValue(0,18,20);
chart1.setValue(0,19,7);
chart1.closeData(COD.VALUES);
ConstantLine constant1 = chart1.getConstantLine(0);
constant1.setValue(20);
constant1.setColor(java.awt.Color.gray);
ConstantLine constant2 = chart1.getConstantLine(1);
constant2.setValue(80);
constant2.setColor(java.awt.Color.red);
chart1.setUserLegendBox(true);
//chart1.getConditionalAttributes() RefreshLegend()...
%>
<%=chart1.getHtmlTag("450","280")%>
|