GraphElement.setTextSpec(spec)
GraphElement.setCollisionModifier(value)
GraphElement.setColorFrame(frame)
GraphElement.setInPlot(boolean)
GraphElement.setLabelPlacement(value)
GraphElement.setLineFrame(frame)
GraphElement.setHint(type,value)
GraphElement.setShapeFrame(frame)
GraphElement.setSizeFrame(frame)
GraphElement.setTextFrame(frame)
Specifies the text attributes such as color, font, format, etc.
Parameter
spec a TextSpec object
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"], ["CA", 200], ["NY", 300]];
graph = new EGraph();
var elem = new PointElement("State", "Quantity");
var frame = new DefaultTextFrame();
frame.setField("Quantity");
var spec = new TextSpec();
spec.setColor(java.awt.Color(0xff0000));
elem.setTextFrame(frame);
elem.setTextSpec(spec);
graph.addElement(elem);

See Also
DataSet, to use a Data Block or query as the dataset source.
| << GraphElement.setTextFrame(frame) | © 1996-2013 InetSoft Technology Corporation (v11.4) | GraphElement.setTextureFrame(frame) >> |