AxisSpec.setInPlot(boolean)
Specifies whether the specified maximum measure value is included within the plot region. When true, this adds a slight buffer to the edge of the plot area in order to ensure that the specified maximum value falls within the displayed plot area.
Parameter
boolean true: display max value within plot region
false: display max value at edge of plot
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 qscale = new LinearScale("Quantity");
qscale.setMax(40000);
var aspec = new AxisSpec();
aspec.setInPlot(true);
qscale.setAxisSpec(aspec);
graph.setScale("Quantity", qscale);
graph.addElement(elem);

See Also
GraphElement.setInPlot(boolean), to adjust plot boundaries to include graph elements.
GraphForm.setInPlot(boolean), to adjust plot boundaries to include graph forms.
LinearScale.setMax(value), for information on how to manually set a maximum value using the API method.
axis.maximum, for information on how to manually set a maximum value using the axis property.
DataSet, to use a Data Block or query as the dataset source.
| << AxisSpec.setGridStyle(value) | © 1996-2013 InetSoft Technology Corporation (v11.5) | AxisSpec.setLabelVisible(boolean) >> |