Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Unknown macro: {scrollbar}

Pie Chart


The pie chart plots a single value per series in a pie shape.

Dataset Guidelines

The pie chart dataset typically contains two columns. The first column's values are the series names, and the second column contains the data values. If the dataset has multiple rows for each series, the row values will be aggregated, so that each series appears only once in the pie.

The pie chart also supports the by-row property, meaning that the dataset can be row based. In this case, you may have multiple numeric columns in your dataset, whose headers will become the series names, and the data values would aggregate across the rows to formulate the series value.

here is a sample pie dataset:

DEPARTMENT

ACTUALS

Sales

11,168,773

Executive Management

6,299,022

Finance

12,224,220

Human Resource

13,075,463

Marketing & Communication

13,910,753

Product Development

10,644,102

Professional Services

76,317,649

Required Properties

The only property a pie chart requires is the appropriate chart-type.

<chart-type>PieChart</chart-type>

The optional chart properties that are supported for this chart are listed in the Chart Properties Reference.

Example

The following chart definition will produce the chart you see below:

<chart>
	<title>Sample Chart</title>
	<chart-type>PieChart</chart-type>
	<chart-background type="color">#FFFFFF</chart-background>
	<plot-background type="color">#FFFFFF</plot-background>
	<color-palette>
		<color>#EE7733</color>
		<color>#9EAA36</color>
		<color>#BF0000</color>
		<color>#FCCF12</color>
		<color>#772200</color>
		<color>#DDCC88</color>
		<color>#123D82</color>
		<color>#4A0866</color>
		<color>#445500</color>-
		<color>#FFAA00</color>
		<color>#1E8AD3</color>
		<color>#AA6611</color>
		<color>#772200</color>
	</color-palette>

</chart>

  • No labels