AxisSpec.setAllTicks(Boolean)
Specifies whether tick marks are displayed for labels that have been suppressed by the setAbbreviate() option. When abbreviation is enabled, some labels are dropped to conserve space; this property controls whether tick marks remain visible at those positions. Note: There is no corresponding “getter” function.
Parameter
- Boolean
-
true: show ticks for abbreviated (suppressed) labels
false: hide ticks for abbreviated (suppressed) labels
Example
Chart Component Script
var spec = new AxisSpec();
spec.setAbbreviate(true);
spec.setAllTicks(true); (1)
| 1 | Show ticks even for labels dropped by abbreviation. |
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.
|
|
To change the property on a Chart that was previously created with the Chart Editor, use EGraph.getCoordinate() ①, RectCoord.getXScale() ②, and Scale.getAxisSpec() ③ to obtain a handle to the desired Coordinate object, Scale object, and so on. For example:
|