Coordinate.setPlotSpec(spec)
Assign a PlotSpec to the coordinates. The corresponding “getter” function is Coordinate.getPlotSpec().
Parameter
A PlotSpec object
Example
Chart Component Script
var coord = graph.getCoordinate(); (1)
var spec = new PlotSpec(); (2)
var logo = getImage("https://www.inetsoft.com/images/home/logo.gif");
spec.setBackgroundImage(logo);
spec.setAlpha(.3); (3)
coord.setPlotSpec(spec); (4)
| 1 | Obtain a handle to the Coordinate object. |
| 2 | Create the PlotSpec object. |
| 3 | Set the desired PlotSpec properties. |
| 4 | Use setPlotSpec to assign the PlotSpec to the Coordinate. |
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.
|