CT.1.1 Modifying the Chart Style
To modify the style of a chart in script (e.g., line, bar, pie, etc.), use the 'singleStyle' or 'separatedStyle' attributes:
You can switch between 'Single Graph' and 'Separate Graph' in the 'Data Binding' dialog box.
• Use 'singleStyle' when the chart is in 'Single Graph' mode. In 'Single Graph' mode, you can assign a different style to each individual dataset.
• Use 'separatedStyle' when the chart is in 'Separate Graph' mode. In 'Separate Graph' mode, you can assign a single style to all datasets.
For example, if you want to parameterize the style of a chart ('Separate Graph'), you could prompt the user for a parameter called 'Chart Style'. Then access this parameter in the chart script and modify the chart style accordingly.
if (parameter['Chart Style'] == 'bar') {
Chart1.separatedStyle=Chart.CHART_BAR;
}
else if (parameter['Chart Style'] == 'line') {
Chart1.separatedStyle=Chart.CHART_LINE;
}
| << CT.1 Modifying Chart Properties | © 1996-2013 InetSoft Technology Corporation (v11.4) | CT.1.2 Modifying Axis Title Text >> |