krysalis-jcharts/src/documentation/content/xdocs/userGuide/axisCharts/area stacked.xml,NONE,1.1 index.xml,1.1,1.2 book.xml,1.1,1.2
"Nathaniel G. Auvil" <[email protected]> Sat, 05 Jun 2004 16:51:06 +0000
| Newsgroups | gmane.comp.krysalis.jcharts.cvs |
|---|---|
| Message-ID | <[email protected]> |
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>
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504