From: Nathaniel G. A. <nat...@us...> - 2004-06-05 16:51:12
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/userGuide/axisCharts/area In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28477/src/documentation/content/xdocs/userGuide/axisCharts/area Modified Files: index.xml book.xml Added Files: stacked.xml Log Message: Index: index.xml =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/userGuide/axisCharts/area/index.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.xml 5 Jun 2004 14:25:57 -0000 1.1 --- index.xml 5 Jun 2004 16:51:04 -0000 1.2 *************** *** 9,14 **** <title>Area Charts</title> <p> ! This is the Area Charts Section </p> </section> </body> --- 9,45 ---- <title>Area Charts</title> <p> ! Here is some code to generate an Area 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 }, + { 50, 145, 6, 166, 105, 110, 85 } }; + String[] legendLabels= { "Bugs", "FUD Towards Gnu/Linux" }; + Paint[] paints= new Paint[] { new Color( 153, 0, 255 ,100 ), + new Color( 204,0,255, 150 ) }; + + AreaChartProperties areaChartProperties= new AreaChartProperties(); + AxisChartDataSet axisChartDataSet= new AxisChartDataSet( data, legendLabels, + paints, ChartType.AREA, + areaChartProperties ); + + 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> + <figure src="images/userGuide/areaCharts/areaChart.png" alt="Area Chart"/> </section> </body> --- NEW FILE: stacked.xml --- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN" "document-v11.dtd"> <document> <header> <title>Area Charts</title> </header> <body> <section> <title>Stacked Area Charts</title> <p> Here is some code to generate an Area 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 }, { 250, 45, -36, 66, 145, 80, 55 } }; String[] legendLabels= { "Bugs", "Security Holes" }; Paint[] paints= TestDataGenerator.getRandomPaints( 2 ); AreaChartProperties areaChartProperties= new AreaChartProperties(); AxisChartDataSet axisChartDataSet= new AxisChartDataSet( data, legendLabels, paints, ChartType.AREA_STACKED, areaChartProperties ); 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> <figure src="images/userGuide/areaCharts/stackedArea.png" alt=" Stacked Area Chart"/> </section> </body> </document> Index: book.xml =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/userGuide/axisCharts/area/book.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** book.xml 5 Jun 2004 14:25:57 -0000 1.1 --- book.xml 5 Jun 2004 16:51:04 -0000 1.2 *************** *** 11,15 **** <menu label="Area Charts"> ! <menu-item label="Simple" href="index.html"/> <menu-item label="Back" href="../index.html"/> </menu> --- 11,16 ---- <menu label="Area Charts"> ! <menu-item label="Area" href="index.html"/> ! <menu-item label="Stacked Area" href="stacked.html"/> <menu-item label="Back" href="../index.html"/> </menu> |