Scatter & Bubble Chart XML |
In scatter charts, dataplots are displayed as a collection of anchors (points) and in bubble charts they are displayed as bubbles. The XML structure of scatter chart is similar to multi series chart except for a few elements and attributes. |
![]() |
The above chart shows the comparison in performance of two servers. On the x-axis, we've server load and on the y axis we have response time in seconds. We are comparing the performance of two servers here - Server 1 and Server 2. The XML for the above chart looks as under: |
<chart palette='2' caption='Server Performance' yAxisName='Response Time (sec)' |
Brief Explanation of Scatter Chart XML |
In scatter chart, the <set> element (child element of the
<set y='2.4' x='21' /> The x and y here are actual values from your data (and not pixel points). Based on the entire set of x and y values, the limits for x-axis and y-axis are calculated by the chart. Then we have the <vTrendlines> element that helps display vertical trend lines in the chart to either highlight a specific value or build a trend zone to indicate grouping of data. In the above example, we have three vertical trend lines defined in the chart which have been rendered as trend zones denoting different levels of server load. Next, we have the <trendLines> element which has already been discussed in multi-series charts. Using this function of the chart, you could draw custom horizontal lines on the chart to represent a trend. For example, in our above XML, we have defined a line at 5.2 with a display value check on the right side of the canvas. |
Bubble Charts |
In Bubble chart, each data item (bubble) has three parameters - x,y and size (in relative value, not pixels). A simple Bubble Chart is shown below: |
![]() |
The XML for the above chart is given below: |
<chart palette='3' numberPrefix='$' is3D='1' xAxisMaxValue='100' showPlotBorder='0' |
Brief Explanation |
The position of a bubble plot is defined on the basis of the numeric values of x and y axis and the radius of the plot depends on the magnitude of the third numeric value (and not pixels). The basic XML structure for a scatter chart is again very similar to that of a multi-series chart. But a few additional features which are not present in a typical multi-series chart are as follows: A <set> element of a bubble chart would look like: <set x='30' y='1.3' z='116' name='Traders'/> Next, we have the <trendLines> element which has already been discussed in multi-series charts. Using this function of the chart, you could draw custom horizontal lines on the chart to represent a trend. For example, in our above XML, we have defined a line at 2.5 to represent the Median Cost. Then we have the <vTrendlines> element which helps you display vertical lines in your chart to represent visual grouping of data. In our example we have two trend lines defined in the chart which have been rendered as zones. The first zone covers 60 percent from the starting position which is referred as Potential Wins and other one covering the rest is referred as Cash Cows. |