GraphElement.getTextureFrame()
Retrieves the element’s TextureFrame. The corresponding “setter” function is GraphElement.setTextureFrame(frame).
Returns
A TextureFrame object
Example
Chart Component Script
var elem = graph.getElement(0); (1)
var frame = elem.getTextureFrame(); (2)
frame.setField("Customer:Company"); (3)
| 1 | Obtain a handle to the GraphElement object. |
| 2 | Use getTextureFrame to obtain a handle to the TextureFrame object. |
| 3 | Set the desired properties of the TextureFrame object. |
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.
|