EGraph.getVisualFrames()[idx]
|
Represent Multiple Measure to add multiple elements. |
Returns the specified VisualFrame object. See Chart Visuals to assign VisualFrames such as ColorFrame, StaticShapeFrame, and so on.
Parameter
- idx
-
index of a VisualFrame object
Example
Chart Component Script
dataset = [["State", "Quantity"], ["NJ",200], ["NY",300]];
graph = new EGraph();
var elem = new IntervalElement("State", "Quantity");
var frame = new BrightnessColorFrame(); (1)
frame.setField("Quantity");
frame.setColor(java.awt.Color(0xff0000));
elem.setColorFrame(frame);
graph.addElement(elem);
alert(Chart1.graph.getVisualFrames()[0].getColor()); (2)
| 1 | Create Colorframe object. |
| 2 | Use getVisualFrames to access ColorFrame information.
|
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.
|
|
To use the property on a Chart that was previously created with the Chart Editor, simply call the function. For example:
|
