GraphElement.setTextureFrame(frame)

Specifies the aesthetic texture of graphical elements. A TextureFrame can texture-code chart elements by value, or simply specify a static texture style.

Parameter

frame a TextureFrame 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"], ["NJ", 300], ["NY", 200]];

graph = new EGraph();

var elem = new IntervalElement("State", "Quantity");

var frame = new StaticTextureFrame();

frame.setTexture(GTexture.PATTERN_18)

elem.setTextureFrame(frame);

graph.addElement(elem);

 

See Also

DataSet, to use a Data Block or query as the dataset source.

<< GraphElement.setTextSpec(spec) © 1996-2013 InetSoft Technology Corporation (v11.4) CR.5.2 IntervalElement >>