EGraph.getXTitleSpec()

Returns a TitleSpec object containing title information for the X-axis below the chart. The corresponding “setter” function is EGraph.setXTitleSpec(spec).

Returns

A TitleSpec object

Example

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

EGraphaddsetXTitleSpec

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.