CR.7.2 ColorFrame
A ColorFrame object contains the color treatment for visual chart elements. You can use a ColorFrame object to represent data dimensions with color (color coding), or to apply a fixed (static) color style.
Note: Report script that modifies 'bindingInfo' should be placed in the onLoad handler.
Example (Report)
Chart1.bindingInfo.setColorField("Total",Chart.NUMBER);
Chart1.bindingInfo.colorFrame = new BrightnessColorFrame;
Chart1.bindingInfo.colorFrame.color = 0xFF00FF;

Note: Script that modifies 'graph' should be placed at the element level. See Adding Element-Level Script in Report Scripting and Adding Component Script in Dashboard Scripting for more information.
Example (Viewsheet or Report)
var frame = new StaticColorFrame;
frame.color = java.awt.Color(0xFF00FF);
var elem = graph.getElement(0); // bar elements
elem.colorFrame = frame;

Full Name
inetsoft.graph.aesthetic.ColorFrame
Created by
See Also
DataSet, to use a Data Block or query as the dataset source.
| << VisualFrame.setScaleOption(value) | © 1996-2013 InetSoft Technology Corporation (v11.5) | CR.7.3 BrightnessColorFrame >> |