GraphElement.setInPlot(boolean)

Specifies whether the chart should be resized so that graph elements remain fully visible in the chart area.

Parameter

boolean true: resize chart

false: do not resize chart (crop elements)

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

graph = new EGraph();

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

var scale = new LinearScale("Quantity");

scale.setMax(100);

graph.setScale("Quantity",scale);

elem.setInPlot(false);

graph.addElement(elem);

 

See Also

AxisSpec.setInPlot(boolean), to adjust plot boundaries to include graph labels.

GraphForm.setInPlot(boolean), to adjust plot boundaries to include graph forms.

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

<< GraphElement.setColorFrame(frame) © 1996-2013 InetSoft Technology Corporation (v11.4) GraphElement.setLabelPlacement(value) >>