Coordinate.getPlotSpec()
Retrieve the PlotSpec of the coordinates.
Returns
A PlotSpec object
Example
Chart Component Script
var coord = graph.getCoordinate(); (1)
var spec = coord.getPlotSpec(); (2)
spec.setBackground(java.awt.Color(0xEEEEFF)); (3)
| 1 | Obtain a handle to the Coordinate object. |
| 2 | Use getPlotSpec to obtain the PlotSpec object. |
| 3 | Set the desired PlotSpec properties. |
Script that modifies the graph or dataset properties should be placed on the Chart component itself. See Add Component Script for more information. This script has access to the Chart data and Chart API methods. Scripted Charts are not good candidates for user-modification, so you should deselect ‘Enable Ad Hoc Editing’ in the Chart Properties dialog box.
|