public class XAxis extends BaseOption
The X axis or category axis. Normally this is the horizontal axis, though if the chart is inverted this is the vertical axis. In case of multiple axes, the xAxis node is an array of configuration objects.
See the Axis object for programmatic access to the axis.
Copyright (c) 2018 Powerbuilt Systems. All rights reserved.Constructor and Description |
---|
XAxis() |
Modifier and Type | Method and Description |
---|---|
Number |
getTickPixelInterval()
If tickInterval is
null this option sets the approximate pixel interval of the tick marks. |
AxisType |
getType()
The type of axis.
|
XAxis |
setTickPixelInterval(Number tickPixelInterval)
If tickInterval is
null this option sets the approximate pixel interval of the tick marks. |
XAxis |
setType(AxisType type)
The type of axis.
|
Number |
tickPixelInterval()
If tickInterval is
null this option sets the approximate pixel interval of the tick marks. |
XAxis |
tickPixelInterval(Number tickPixelInterval)
If tickInterval is
null this option sets the approximate pixel interval of the tick marks. |
AxisType |
type()
The type of axis.
|
XAxis |
type(AxisType type)
The type of axis.
|
set_hcNulledOption
public Number tickPixelInterval()
If tickInterval is null
this option sets the approximate pixel interval of the tick marks. Not applicable to categorized axis.
The tick interval is also influenced by the minTickInterval option, that, by default prevents ticks from being denser than the data points.
public XAxis tickPixelInterval(Number tickPixelInterval)
If tickInterval is null
this option sets the approximate pixel interval of the tick marks. Not applicable to categorized axis.
The tick interval is also influenced by the minTickInterval option, that, by default prevents ticks from being denser than the data points.
tickPixelInterval
- the value for the tickPixelInterval optionpublic Number getTickPixelInterval()
If tickInterval is null
this option sets the approximate pixel interval of the tick marks. Not applicable to categorized axis.
The tick interval is also influenced by the minTickInterval option, that, by default prevents ticks from being denser than the data points.
public XAxis setTickPixelInterval(Number tickPixelInterval)
If tickInterval is null
this option sets the approximate pixel interval of the tick marks. Not applicable to categorized axis.
The tick interval is also influenced by the minTickInterval option, that, by default prevents ticks from being denser than the data points.
tickPixelInterval
- the value for the tickPixelInterval optionpublic AxisType type()
The type of axis. Can be one of linear
, logarithmic
, datetime
or category
. In a datetime axis, the numbers are given in milliseconds, and tick marks are placed on appropriate values like full hours or days. In a category axis, the point names of the chart's series are used for categories, if not a categories array is defined.
public XAxis type(AxisType type)
The type of axis. Can be one of linear
, logarithmic
, datetime
or category
. In a datetime axis, the numbers are given in milliseconds, and tick marks are placed on appropriate values like full hours or days. In a category axis, the point names of the chart's series are used for categories, if not a categories array is defined.
type
- the value for the type optionpublic AxisType getType()
The type of axis. Can be one of linear
, logarithmic
, datetime
or category
. In a datetime axis, the numbers are given in milliseconds, and tick marks are placed on appropriate values like full hours or days. In a category axis, the point names of the chart's series are used for categories, if not a categories array is defined.
public XAxis setType(AxisType type)
The type of axis. Can be one of linear
, logarithmic
, datetime
or category
. In a datetime axis, the numbers are given in milliseconds, and tick marks are placed on appropriate values like full hours or days. In a category axis, the point names of the chart's series are used for categories, if not a categories array is defined.
type
- the value for the type optionCopyright © 2022. All rights reserved.