CR.5.6 AreaElement
The AreaElement object contains the visual elements for an area chart. To create a new AreaElement object, call the AreaElement constructor.
var elem = new AreaElement("State", "Quantity");
You can pass a set of field names (e.g., 'State', 'Quantity') to the constructor, or specify these later using the addDim() and addVar() methods.
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();
elem = new AreaElement("State", "Quantity");
graph.addElement(elem);

Full Name
inetsoft.graph.element.AreaElement
See Also
DataSet, to use a Data Block or query as the dataset source.
| << CR.5.5 PointElement | © 1996-2013 InetSoft Technology Corporation (v11.5) | CR.6 Chart Coordinates & Scaling >> |