Update of /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/userGuide
In directory sc8-pr-cvs1:/tmp/cvs-serv23190
Added Files:
pieChart2DExample.xml
Log Message:
--- NEW FILE: pieChart2DExample.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN" "document-v11.dtd">
<document>
<header>
<title>Pie Charts</title>
<authors>
<person name="Nathaniel Auvil" email="nat...@so..."/>
</authors>
</header>
<body>
<section>
<title>2D Pie Chart Example</title>
<p>
Here is code for a simple 2D Pie Chart...
</p>
<source>
double[] data= { 81d, 55d, 39d, 20.6d };
String[] labels= { "BMW M5", "BMW M3", "Viper GTS-R", "Corvette Z06" };
Paint[] paints= { Color.lightGray, Color.green, Color.blue, Color.red };
PieChartDataSet pieChartDataSet= new PieChartDataSet( "Cars That Own",
data,
labels,
paints,
pieChart2DProperties );
PieChart2DProperties pieChart2DProperties= new PieChart2DProperties();
PieChart2D pieChart2D= new PieChart2D( pieChartDataSet,
new LegendProperties(),
new ChartProperties(),
400, 350 );
</source>
<figure src="images/userGuide/pieCharts/pieChartBasic.png" alt="Simple 2D Pie Chart"/>
</section>
</body>
</document>
|