Pyramid Chart > Creating a simple chart |
||||||||||||||||||||
Here, we'll create a simple pyramid chart to illustrate the concepts. |
||||||||||||||||||||
Example | ||||||||||||||||||||
For a simple pyramid chart example, we'll plot the sales figures achieved by employees of a fictional company during the first 7 months of this year. The data can be rendered as under in tabular form: | ||||||||||||||||||||
|
||||||||||||||||||||
Converting to XML | ||||||||||||||||||||
The above data when converted to XML would look as under: | ||||||||||||||||||||
<chart caption='Sales distribution by Employee' subCaption='Jan 07 - Jul 07' numberPrefix='$' isSliced='1'> |
||||||||||||||||||||
Here, we've:
When you see this chart, you'll get a result as under: |
||||||||||||||||||||
As you can see above, the chart has now rendered each pyramid slice with its height proportional to the value. Also, in this chart, since we've set isSliced='1' at chart level, the slicing interaction won't work. |