AxisSpec.setTextFrame(frame)

Specifies a mapping between axis values and replacement text.

Parameter

frame a TextFrame 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",20000],["NY",30000]];

graph = new EGraph();

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

var cscale = new CategoricalScale("State");

var tframe = new DefaultTextFrame();

tframe.setText('NJ','New Jersey');

tframe.setText('NY','New York');

var aspec = new AxisSpec();

aspec.setTextFrame(tframe);

cscale.setAxisSpec(aspec);

graph.setScale("State", cscale);

graph.addElement(elem);

 

See Also

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

<< AxisSpec.setLineVisible(boolean) © 1996-2013 InetSoft Technology Corporation (v11.5) AxisSpec.setTextSpec(spec) >>