StackTextFrame

The StackTextFrame object contains data for a Stacked Chart. To create a StackTextFrame object, call the StackTextFrame constructor.

var frame = new StackTextFrame (elem);

To stylize or reposition text created using a StackTextFrame, use the GraphElement.setTextSpec(spec) and GraphElement.setLabelPlacement(value) fucntions.

Parameter

elem

a GraphElement object

Example

Chart Component Script
var elem = graph.getElement(0); (1)
var frame = new StackTextFrame(elem); (2)
elem.setTextFrame(frame);  (3)
1 Use EGraph.getElement(index) to get a handle to the GraphElement.
2 Create the StackTextFrame object.
3 Use GraphElement.setTextFrame(frame) to add the TextFrame to the element.

StackTextFrame1

Script that modifies the graph or dataset properties should be placed on the Chart component itself. See Add Component Script for more information. This script has access to the Chart data and Chart API methods. Scripted Charts are not good candidates for user-modification, so you should deselect ‘Enable Ad Hoc Editing’ in the Chart Properties dialog box.