PlotSpec.setXMin(value)

Specifies the X-axis value at which to place the left edge of the background image.

Parameter

value a number

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 = [["Q1","Q2"], [300,200], [500,300]];

graph = new EGraph();

var elem = new PointElement("Q1", "Q2");

elem.setHint(GraphElement.HINT_ALPHA,.8)

var sscale = new LinearScale("Q1");

var qscale = new LinearScale("Q2");

var coord = new RectCoord(sscale,qscale);

var spec = new PlotSpec();

var logo =
getImage("http://www.inetsoft.com/images/home/logo.gif");

spec.setBackgroundImage(logo);

spec.setYMax(150)

spec.setYMin(100)

spec.setXMax(400)

spec.setXMin(100)

coord.setPlotSpec(spec);

graph.setCoordinate(coord);

graph.addElement(elem);

 

See Also

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

<< PlotSpec.setXMax(value) © 1996-2013 InetSoft Technology Corporation (v11.4) PlotSpec.setYMax(value) >>