EGraph.getYTitleSpec()

Returns a TitleSpec object containing title information for the Y-axis on the left of the Chart. The corresponding “setter” function is EGraph.setYTitleSpec(spec).

Returns

A TitleSpec object

Example

Chart Component Script
var spec = Chart1.graph.getYTitleSpec();
alert(spec.getLabel());

EGraphaddsetYTitleSpec

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.