CR.7.34 ThermoShapeFrame
The ThermoShapeFrame object contains the shape styles for two-dimensional “thermometer” elements. To create a ThermoShapeFrame object, call the ThermoShapeFrame constructor.
var frame = new ThermoShapeFrame("Height", "Weight");
You can pass a pair of field names (e.g., 'Height', 'Weight') to the constructor, or specify this later using the inherited MultiShapeFrame.setFields(arr) property. The dimensions are specified in the order [level, width].
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","Height","Weight"], ["NJ", 200,50,1], ["NY", 300,30,4]];
graph = new EGraph();
var frame = new ThermoShapeFrame();
var elem = new PointElement("State", "Quantity");
var hscale = new LinearScale()
var wscale = new LinearScale()
hscale.setMin(0);
hscale.setMax(100);
wscale.setMin(0);
wscale.setMax(5);
frame.setFields(["Height", "Weight"]);
frame.setScales([hscale, wscale]);
elem.setShapeFrame(frame);
graph.addElement(elem);

Full Name
inetsoft.graph.aesthetic.ThermoShapeFrame
Inherits from
MultiShapeFrame: setFields, setScales
VisualFrame: setField, setLegendSpec, setScale, setScaleOption
See Also
DataSet, to use a Data Block or query as the dataset source.
| << VineShapeFrame.setStartAngle(value) | © 1996-2013 InetSoft Technology Corporation (v11.4) | CR.7.35 StarShapeFrame >> |