BrightnessColorFrame.setColor(value)
Specifies the color whose brightness is varied. The data values in the associated column (specified by the inherited VisualFrame.setField(field) property) are mapped to a spectrum of brightnesses of the specified color.
Value (Property Syntax)
java.awt.Color e.g., java.awt.Color.BLUE
number (hex) e.g., 0xFF0000
string (color name) e.g., 'red'
array [r,g,b] e.g., [255,0,0]
JSON {r:#,g:#,b:#} e.g., {r:255,g:0,b:0}
Value (Function Syntax)
value a java.awt.Color object
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)
dataset = [["State", "Quantity"], ["NJ",200], ["NY",300]];
graph = new EGraph();
var elem = new IntervalElement("State", "Quantity");
var frame = new BrightnessColorFrame();
frame.setField("Quantity")
frame.setColor(java.awt.Color(0xff0000));
elem.setColorFrame(frame);
graph.addElement(elem);

See Also
DataSet, to use a Data Block or query as the dataset source.
| << CR.7.3 BrightnessColorFrame | © 1996-2013 InetSoft Technology Corporation (v11.5) | CR.7.4 SaturationColorFrame >> |