CR.7.6 StaticColorFrame
The StaticColorFrame object contains a color frame defined by explicit color data in the VisualFrame.setField(field) column, or by the fixed color in StaticColorFrame.setColor(value). To create a StaticColorFrame object, call the StaticColorFrame constructor.
var frame = new StaticColorFrame();
You can pass a color value directly to the constructor, e.g.,
var frame = new StaticColorFrame(java.awt.Color(0xFF00FF));
or specify it later using the in StaticColorFrame.setColor(value) property.
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 (Report or Viewsheet)
dataset = [["State","Quantity","Color"], ["NJ",200,0xff0000], ["NY",300,0xff00ff]];
graph = new EGraph();
var elem = new IntervalElement("State", "Quantity");
var frame = new StaticColorFrame();
frame.setField("Color");
elem.setColorFrame(frame);
graph.addElement(elem);
Full Name
inetsoft.graph.aesthetic.StaticColorFrame
See Also
DataSet, to use a Data Block or query as the dataset source.
StaticColorFrame: setColor, setNegativeColor
| << CR.7.5 BipolarColorFrame | © 1996-2013 InetSoft Technology Corporation (v11.4) | StaticColorFrame.setColor(value) >> |