A 2D Multi-series Bar chart looks as under: |
And, the XML data for this chart can be listed as under: |
<graph xaxisname='Months' yaxisname='Sales'
caption='Cumulative Sales' subcaption='(From Dec-03 to Dec-04)' lineThickness='1'
animation='1' showNames='1' alpha='100' showLimits='1' decimalPrecision='1'
rotateNames='1' numDivLines='2' numberPrefix='$' limitsDecimalPrecision='0'
showValues='0'> <categories> <category name='Dec-03' showName='1' /> <category name='Jan-04' showName='0' /> <category name='Feb-04' showName='1' /> <category name='Mar-04' showName='0' /> <category name='Apr-04' showName='1' /> <category name='May-04' showName='0' /> <category name='Jun-04' showName='1' /> <category name='Jul-04' showName='0' /> <category name='Aug-04' showName='1' /> <category name='Sep-04' showName='0' /> <category name='Oct-04' showName='1' /> <category name='Nov-04' showName='0' /> <category name='Dec-04' showName='1' /> </categories> <dataset seriesName='Product1' color='0080C0'> <set value='810' alpha='100' /> <set value='930' alpha='100' /> <set value='1110' alpha='100' /> <set value='1300' alpha='100' /> <set value='1890' alpha='100' /> <set value='2350' alpha='100' /> <set value='2740' alpha='100' /> <set value='3050' alpha='100' /> <set value='3570' alpha='100' /> <set value='4390' alpha='100' /> <set value='5610' alpha='100' /> <set value='7160' alpha='100' /> <set value='7750' alpha='100' /> </dataset> <dataset seriesName='Product2' color='008040'> <set value='380' alpha='100' /> <set value='390' alpha='100' /> <set value='420' alpha='100' /> <set value='490' alpha='100' /> <set value='900' alpha='100' /> <set value='1160' alpha='100' /> <set value='1350' alpha='100' /> <set value='1510' alpha='100' /> <set value='1790' alpha='100' /> <set value='2140' alpha='100' /> <set value='2660' alpha='100' /> <set value='3850' alpha='100' /> <set value='4070' alpha='100' /> </dataset> <dataset seriesName='Product3' color='FFFF00'> <set value='220' alpha='100' /> <set value='240' alpha='100' /> <set value='280' alpha='100' /> <set value='350' alpha='100' /> <set value='580' alpha='100' /> <set value='630' alpha='100' /> <set value='670' alpha='100' /> <set value='740' alpha='100' /> <set value='790' alpha='100' /> <set value='920' alpha='100' /> <set value='1050' alpha='100' /> <set value='1290' alpha='100' /> <set value='1320' alpha='100' /> </dataset> <dataset seriesName='Product4' color='800080'> <set value='0' alpha='100' /> <set value='0' alpha='100' /> <set value='0' alpha='100' /> <set value='20' alpha='100' /> <set value='50' alpha='100' /> <set value='50' alpha='100' /> <set value='60' alpha='100' /> <set value='60' alpha='100' /> <set value='60' alpha='100' /> <set value='80' alpha='100' /> <set value='130' alpha='100' /> <set value='170' alpha='100' /> <set value='170' alpha='100' /> </dataset> <dataset seriesName='Product5' color='EB59CB'> <set value='0' alpha='100' /> <set value='0' alpha='100' /> <set value='0' alpha='100' /> <set value='0' alpha='100' /> <set value='0' alpha='100' /> <set value='0' alpha='100' /> <set value='10' alpha='100' /> <set value='10' alpha='100' /> <set value='10' alpha='100' /> <set value='10' alpha='100' /> <set value='20' alpha='100' /> <set value='20' alpha='100' /> <set value='20' alpha='100' /> </dataset> <dataset seriesName='Canceled' color='FFCC00'> <set value='-50' alpha='100' /> <set value='-50' alpha='100' /> <set value='-70' alpha='100' /> <set value='-90' alpha='100' /> <set value='-100' alpha='100' /> <set value='-110' alpha='100' /> <set value='-150' alpha='100' /> <set value='-260' alpha='100' /> <set value='-320' alpha='100' /> <set value='-350' alpha='100' /> <set value='-500' alpha='100' /> <set value='-630' alpha='100' /> <set value='-650' alpha='100' /> </dataset> <dataset seriesName='Deleted' color='FF0000'> <set value='-180' alpha='100' /> <set value='-210' alpha='100' /> <set value='-260' alpha='100' /> <set value='-320' alpha='100' /> <set value='-580' alpha='100' /> <set value='-680' alpha='100' /> <set value='-780' alpha='100' /> <set value='-900' alpha='100' /> <set value='-1060' alpha='100' /> <set value='-1320' alpha='100' /> <set value='-1520' alpha='100' /> <set value='-1650' alpha='100' /> <set value='-1660' alpha='100' /> </dataset> </graph> |
|
<graph> Attributes |
The <graph> element for
this chart can have the following properties:
|
Background Properties
Canvas Properties
Chart and Axis Titles
Chart Numerical Limits
Generic Properties
Font Properties
Number Formatting Options
Zero Plane The zero plane is a simple plane (line) that signifies the 0 position on the chart. If there are no negative numbers on the chart, you won't see a visible zero plane.
Divisional Lines (Vertical) Divisional Lines are horizontal or vertical lines running through the canvas. Each divisional line signfies a smaller unit of the entire axis thus aiding the users in interpreting the chart.
Divisional Lines (Horizontal)
Hover Caption Properties The hover caption is the tool tip which shows up when the user moves his mouse over a particular data item (column, line, pie, bar etc.).
Chart Margins Chart Margins refers to the empty space left on the top, bottom, left and right of the chart. That means, FusionCharts would leave that much amount of empty space on the chart, before it starts plotting.
|
<categories> element |
The <categories> element can have the following attributes:
|
<category> element |
Each <category> element represents a x-axis data label. You can specify the following attributes for <category> element: |
|
<dataset> element |
The following attributes can be defined for the <dataset> element.
|
<set> element |
We now move on to the <set> element which is a child element of the <dataset> element and determines a set of data which would appear on the graph. A <set> element looks as under: Now let's study the the possible attributes of the <set> element: |
At the end of the <set> element, you would find a "/"
which signals that it has no more child element |
<trendLines> |
Using the <trendLines>
element (and child elements), you can define trend lines on the charts.
Trend lines are the horizontal lines spanning the chart canvas that aid
in interpretation of data with respect to some previous pre-determined
figure. For each trend line on the chart, you need to define a <line>
element as under: The <line> element can have the following attributes:
|
At the end of the data file, you would find a </graph> element, which signals the end of the data file for the graph. |