EGraph.getY2TitleSpec()
Returns a TitleSpec object containing title information for the Y-axis on the right of the Chart. The corresponding “setter” function is EGraph.setY2TitleSpec(spec).
Returns
A TitleSpec object
Example
Chart Component Script
var spec = Chart1.graph.getY2TitleSpec();
alert(spec.getLabel());

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.
|