class swtChartWrapper::Axis
sys::Obj swtChartWrapper::Axis
Axis defines information for an x or y axis.
- categories
-
Str[] categories
List of category labels for the axis. Setting the category labels automatically enables the category view. The number of categories must equal the number of x-points in the displayed series.
- dataCoordinate
-
Float dataCoordinate(Int coord)
For given pixel position on this axis, return its data coordinate.
- enableLogScale
-
Bool enableLogScale
Determines if the axis is displayed using a log scale. Note, cannot be used with category labels. Throws an error if minimum value for this axis is less than 0. Defaults to false.
- grid
-
Grid grid
The grid manages the internal lines within the plotted area. This field is read only.
- pixelCoordinate
-
Int pixelCoordinate(Float coord)
For given coordinate position, return its pixel value on this axis.
- range
-
Float[] range
The displayed range of points on the axis. There should be two Float numbers in the list, the min and max.
- scrollDown
-
Void scrollDown()
Scroll the axis down.
- scrollUp
-
Void scrollUp()
Scroll the axis up.
- tick
-
AxisTick tick
Retrieve object managing properties for the tick marks on the axis. This field is read only.
- title
-
Title title
The label or title for the axis. This field is read only.
- zoomIn
-
Void zoomIn()
Zoom in on this axis.
- zoomInAt
-
Zoom in on this axis at given coordinate. The point of the chart at the given coordinate is kept
fixed
, and the axis is expanded around it. - zoomOut
-
Void zoomOut()
Zoom out on this axis.
- zoomOutAt
-
Zoom out on this axis at given coordinate. The point of the chart at the given coordinate is kept
fixed
, and the axis is shrunk around it.