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

Version 1 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 an area chart are listed in the Chart Properties Reference.

Example

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

<chart>
        <chart-type>AreaChart</chart-type>
	<title>Actual vs. Budget</title>
	<chart-background type="color">#DDDDDD</chart-background>
	<orientation>vertical</orientation>
	<height>400</height>
	<width>600</width>
	<color-palette>
		<color>#FFFF00</color>
		<color>#5555FF</color>
	</color-palette>
	<include-legend>true</include-legend>
	<legend-border-visible>true</legend-border-visible>

</chart>

Unable to render embedded object: File (sample_area_chart.GIF) not found.

  • No labels