GShape.ImageShape.image

GShape.ImageShape.image

GShape.ImageShape.tile

Specifies the image to use as the fill.

Type

Image object, see getImage()

Note: Report script that modifies 'bindingInfo' should be placed in the onLoad handler.

Example (Report)

Bind a point-type chart to the sample 'All Sales' query, with 'Company' (top 5) on the X-axis, and Sum(Total) on the Y-axis. Add the following script in the onLoad handler.

Chart1.bindingInfo.setShapeField("Employee",Chart.STRING);

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

var shape = new GShape.ImageShape();

shape.image = logo;

var frame = new StaticShapeFrame(shape);

Chart1.bindingInfo.shapeFrame = frame;

 

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 logo = getImage("http://www.inetsoft.com/images/home/logo.gif");

var shape = new GShape.ImageShape();

shape.setImage(logo);

var frame = new StaticShapeFrame(shape)

elem.setShapeFrame(frame);

graph.addElement(elem);

 

See Also

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

<< CR.9.4 GShape.ImageShape © 1996-2013 InetSoft Technology Corporation (v11.5) GShape.ImageShape.tile >>