Creating a Spark Column chart |
Here, we'll create a simple spark column chart to show the monthly revenue of a fictional company for one year. The chart will look as under: |
Data for the chart |
The XML/JSON data for the chart will look as under: |
<chart palette="2" caption="Revenue" subcaption="12 months" numberPrefix="$" highColor="00CC33" lowColor="CC0000"> { "chart": { "palette": "2", "caption": "Revenue", "subcaption": "12 months", "numberprefix": "$", "highcolor": "00CC33", "lowcolor": "CC0000" }, "dataset": [ { "data": [ { "value": "783000" }, { "value": "201000" }, { "value": "515000" }, { "value": "115900" }, { "value": "388000" }, { "value": "433000" }, { "value": "910000" }, { "value": "198000" }, { "value": "183300" }, { "value": "162000" }, { "value": "159400" }, { "value": "185000" } ] } ] } |
In the above XML, we've:
For detailed explanation on JSON data format click here. When you now view the chart, you'll get something as under: |
See it live! |
Next, we'll see how to configure the various aspects of this chart. |