class swtChartWrapper::Axis

sys::Obj
  swtChartWrapper::Axis

Source

Axis defines information for an x or y axis.

categories

Str[] categories

Source

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)

Source

For given pixel position on this axis, return its data coordinate.

enableLogScale

Bool enableLogScale

Source

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

Source

The grid manages the internal lines within the plotted area. This field is read only.

pixelCoordinate

Int pixelCoordinate(Float coord)

Source

For given coordinate position, return its pixel value on this axis.

range

Float[] range

Source

The displayed range of points on the axis. There should be two Float numbers in the list, the min and max.

scrollDown

Void scrollDown()

Source

Scroll the axis down.

scrollUp

Void scrollUp()

Source

Scroll the axis up.

tick

AxisTick tick

Source

Retrieve object managing properties for the tick marks on the axis. This field is read only.

title

Title title

Source

The label or title for the axis. This field is read only.

zoomIn

Void zoomIn()

Source

Zoom in on this axis.

zoomInAt

Void zoomInAt(Float coord)

Source

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()

Source

Zoom out on this axis.

zoomOutAt

Void zoomOutAt(Float coord)

Source

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.