From: Nathaniel G. A. <nat...@us...> - 2004-07-27 00:50:44
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/userGuide/axisCharts/bar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19025/src/documentation/content/xdocs/userGuide/axisCharts/bar Modified Files: bar.xml clustered.xml book.xml Added Files: stacked3d.xml Log Message: Index: bar.xml =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/userGuide/axisCharts/bar/bar.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** bar.xml 22 Jul 2004 01:26:34 -0000 1.1 --- bar.xml 27 Jul 2004 00:50:34 -0000 1.2 *************** *** 7,13 **** <body> <section> ! <title>Stacked Bar Charts</title> <p> ! Here is some code to generate a Stacked Bar Chart. You can send 1..n data sets through it to be plotted. </p> <source> --- 7,13 ---- <body> <section> ! <title>Bar Charts</title> <p> ! Here is some code to generate a Clustered Bar Chart. You can send 1..n data sets through it to be plotted. </p> <source> *************** *** 21,36 **** title ); ! double[][] data= new double[][]{ { 250, 45, 36, 66, 145, 80, 55 }, ! { 150, 15, 6, 62, 54, 10, 84 }, ! { 250, 45, 36, 66, 145, 80, 55 } }; String[] legendLabels= { "Bugs", "Security Holes", "Backdoors" }; Paint[] paints= TestDataGenerator.getRandomPaints( 3 ); ! StackedBarChartProperties stackedBarChartProperties= ! new StackedBarChartProperties(); AxisChartDataSet axisChartDataSet= new AxisChartDataSet( data, legendLabels, paints, ! ChartType.BAR_STACKED, ! stackedBarChartProperties ); dataSeries.addIAxisPlotDataSet( axisChartDataSet ); --- 21,33 ---- title ); ! double[][] data= new double[][]{ { 250, 45, -36, 66, 145, 80, 55 }}; String[] legendLabels= { "Bugs", "Security Holes", "Backdoors" }; Paint[] paints= TestDataGenerator.getRandomPaints( 3 ); ! BarChartProperties barChartProperties= new BarChartProperties(); AxisChartDataSet axisChartDataSet= new AxisChartDataSet( data, legendLabels, paints, ! ChartType.BAR, ! barChartProperties ); dataSeries.addIAxisPlotDataSet( axisChartDataSet ); *************** *** 45,49 **** AxisChartsGuide.height ); </source> ! <figure src="images/userGuide/barCharts/stackedBarChart.png" alt="Stacked Bar Chart"/> </section> </body> --- 42,46 ---- AxisChartsGuide.height ); </source> ! <figure src="images/userGuide/barCharts/barChart.png" alt="Bar Chart"/> </section> </body> Index: book.xml =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/userGuide/axisCharts/bar/book.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** book.xml 22 Jul 2004 01:27:08 -0000 1.2 --- book.xml 27 Jul 2004 00:50:34 -0000 1.3 *************** *** 10,16 **** <menu label="Bar Charts"> ! <menu-item label="All Bar Charts" href="index.html"/> <menu-item label="Stacked" href="stacked.html"/> <menu-item label="Clustered" href="clustered.html"/> <menu-item label="Back" href="../index.html"/> </menu> --- 10,18 ---- <menu label="Bar Charts"> ! <menu-item label="Bar" href="bar.html"/> <menu-item label="Stacked" href="stacked.html"/> + <menu-item label="3D Stacked" href="stacked3d.html"/> <menu-item label="Clustered" href="clustered.html"/> + <menu-item label="Common Properties" href="index.html"/> <menu-item label="Back" href="../index.html"/> </menu> --- NEW FILE: stacked3d.xml --- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN" "document-v11.dtd"> <document> <header> <title>Bar Charts</title> </header> <body> <section> <title>3D Stacked Bar Charts</title> <p> Here is some code to generate a 3D Stacked Bar Chart. You can send 1..n data sets through it to be plotted. </p> <source> String[] xAxisLabels= { "1998", "1999", "2000", "2001", "2002", "2003", "2004" }; String xAxisTitle= "Years"; String yAxisTitle= "Problems"; String title= "Micro$oft at Work"; DataSeries dataSeries = new DataSeries( xAxisLabels, xAxisTitle, yAxisTitle, title ); double[][] data= new double[][]{ { 250, 45, 36, 66, 145, 80, 55 }, { 150, 15, 6, 62, 54, 10, 84 }, { 250, 45, 36, 66, 145, 80, 55 } }; String[] legendLabels= { "Bugs", "Security Holes", "Backdoors" }; Paint[] paints= new Paint[]{ Color.red, Color.blue, Color.green }; StackedBarChart3DProperties stackedBarChart3DProperties= new StackedBarChart3DProperties(); AxisChartDataSet axisChartDataSet= new AxisChartDataSet( data, legendLabels, paints, ChartType.BAR_STACKED_3D, stackedBarChart3DProperties ); dataSeries.addIAxisPlotDataSet( axisChartDataSet ); ChartProperties chartProperties= new ChartProperties(); AxisProperties axisProperties= new AxisProperties(); LegendProperties legendProperties= new LegendProperties(); AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, AxisChartsGuide.width, AxisChartsGuide.height ); </source> <warning>Although we pass the Paint Interface to the AxisChartDataSet, you must only use the java.awt.Color implementation.</warning> <figure src="images/userGuide/barCharts/stackedBarChart3d.png" alt="3D Stacked Bar Chart"/> </section> <section> <title>Bar Depth</title> <p> Here is how you can change the depth of the 3D bars. </p> <source> StackedBarChart3DProperties stackedBarChart3DProperties= new StackedBarChart3DProperties(); stackedBarChart3DProperties.setDepth( 20 ); </source> <figure src="images/userGuide/barCharts/stackedBarChart3dDepth.png" alt="3D Depth Stacked Bar Chart"/> </section> </body> </document> Index: clustered.xml =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/userGuide/axisCharts/bar/clustered.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** clustered.xml 22 Jul 2004 01:26:34 -0000 1.1 --- clustered.xml 27 Jul 2004 00:50:34 -0000 1.2 *************** *** 21,33 **** title ); ! double[][] data= new double[][]{ { 250, 45, -36, 66, 145, 80, 55 }}; String[] legendLabels= { "Bugs", "Security Holes", "Backdoors" }; Paint[] paints= TestDataGenerator.getRandomPaints( 3 ); ! BarChartProperties barChartProperties= new BarChartProperties(); AxisChartDataSet axisChartDataSet= new AxisChartDataSet( data, legendLabels, paints, ! ChartType.BAR, ! barChartProperties ); dataSeries.addIAxisPlotDataSet( axisChartDataSet ); --- 21,36 ---- title ); ! double[][] data= new double[][]{ { 250, 45, 36, 66, 145, 80, 55 }, ! { 150, 15, 6, 62, 54, 10, 84 }, ! { 250, 45, 36, 66, 145, 80, 55 } }; String[] legendLabels= { "Bugs", "Security Holes", "Backdoors" }; Paint[] paints= TestDataGenerator.getRandomPaints( 3 ); ! ClusteredBarChartProperties clusteredBarChartProperties= ! new ClusteredBarChartProperties(); AxisChartDataSet axisChartDataSet= new AxisChartDataSet( data, legendLabels, paints, ! ChartType.BAR_CLUSTERED, ! clusteredBarChartProperties ); dataSeries.addIAxisPlotDataSet( axisChartDataSet ); *************** *** 42,46 **** AxisChartsGuide.height ); </source> ! <figure src="images/userGuide/barCharts/barChart.png" alt="Bar Chart"/> </section> </body> --- 45,49 ---- AxisChartsGuide.height ); </source> ! <figure src="images/userGuide/barCharts/clusteredBarChart.png" alt="Clustered Bar Chart"/> </section> </body> |