3D Depth and Bar Outline
Applet code: <applet code=com.objectplanet.chart.ChartApplet archive=chart.jar width=450 height=300> <param name=chart value="bar"> <param name=sampleValues value="10,20,30,40,50"> <param name=sampleColors value="#0587D9"> <param name=background value="white"> <param name=3dModeOn value="true"> <param name=3ddepth value="5"> <param name=barWidth value="0.6"> <param name=barOutlineOff value="true"> <param name=rangeLabelsOff value="true"> </applet> Servlet code: <img src="http://server_name:8080/servlet/com.objectplanet.chart.ChartServlet? chart=bar& sampleValues=10,20,30,40,50& antialias=true& background=white& 3ddepth=5& barWidth=0.6& barOutlineOff=true& 3dmodeOn=true& rangeLabelsOff=true& samplecolors=%230587D9"> Application code: package com.objectplanet.chart.testing; import com.objectplanet.chart.*; import java.awt.*; public class Bar { public static void main(String[] argv) { double[] values = new double[] {10, 20, 30, 40, 50}; Color[] c = new Color[] {new Color(0x0587D9)}; BarChart chart = new BarChart(); chart.setSampleCount(5); chart.setSampleValues(0, values); chart.setSampleColors(c); chart.setBackground(Color.white); chart.set3DModeOn(true); chart.set3DDepth(5); chart.setBarWidth(0.6); chart.setBarOutlineOn(false); chart.setRangeLabelsOn(0, false); chart.setRange(0, 50); Frame f = new Frame(); f.setSize(300,220); f.add("Center", chart); f.show(); } } |