TimeScale.setIncrement(value)

Specifies an integer increment at which to place labels on the TimeScale axis. The integer value designates the increment in terms of the prevailing time unit, e.g., Weeks, Months, Quarters, etc. The corresponding “getter” function is getIncrement().

Parameter

value

an integer

Example

Chart Component Script
graph.getScale("Order Date").setIncrement(12) (1)
1 Set increment to 12 weeks.

TimeScaleSetIncrement

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.