Once data has been prepared, a chart can be drawn by simply calling the svg-chart:draw template and passing the prepared data:
<xsl:call-template name="svg-chart:draw"> <xsl:with-param name="data" select="$totals-data"/> </xsl:call-template>
The svg-chart:draw template has many parameters allowing the layout of the chart to be customized but these are all defaulted, producing a pie chart with a reasonable layout.
Copyright © 2014 CA.
All rights reserved.
|
|