VisualFrame.getScale()
Retrieves the Scale associated with this VisualFrame. The corresponding “setter” function is VisualFrame.setScale(scale).
Returns
- scale
-
a Scale object
Example
Chart Component Script
var elem = graph.getElement(0); (1)
var frame = elem.getColorFrame(); (2)
var scale = frame.getScale(); (3)
// Compact syntax: var scale = graph.getElement(0).getColorFrame().getScale();
scale.setMax(4000); (4)
scale.setMin(700); (4)
| 1 | Use EGraph.getElement(index) to obtain a handle to the GraphElement. |
| 2 | Use GraphElement.getColorFrame() to obtain a handle to the ColorFrame. |
| 3 | Use getScale to obtain a handle to the Scale. |
| 4 | Set desired properties of the Scale. |
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.
|