ChartAxisProps
Represents a chart axis with configurable properties for data type, appearance, and behavior.
Props
The following table outlines the props for the ChartAxisProps:
| Name | Type | Default | Description |
|---|---|---|---|
| columnIndex | number | 0 | Specifies the index of the column to which the axis is assigned when the chart area is divided using |
| crossAt | null | Defines the configuration for where and how the axis line intersects with another axis. This includes the intersection value, the target axis, and whether overlapping of axis elements is allowed. | |
| desiredIntervals | number | null | Specifies the desired number of intervals for the axis. The actual number may vary depending on the available space and data range. |
| indexed | boolean | false | When set to |
| interval | number | null | Specifies the interval between axis labels or ticks. |
| intervalType | 'Auto' | Defines how intervals are calculated and displayed on a date-time axis. Available options:
| |
| inverted | boolean | false | When set to |
| lineStyle | {width: 1, color: '', dashArray: ''} | Customizes the appearance of the axis line.
Accepts an | |
| logBase | number | 10 | Sets the base value for a logarithmic axis.
|
| maxLabelDensity | number | 3 | Specifies the maximum number of labels per 100 pixels of axis length. |
| maximum | Object | null | Sets the maximum value of the axis range. Defines the upper bound of the axis and controls the visible data range. |
| minimum | Object | null | Sets the minimum value of the axis range. Defines the lower bound of the axis and controls the visible data range. |
| minorTicksPerInterval | number | 0 | Specifies the number of minor ticks per interval. |
| name | string | '' | A unique identifier for the axis.
To associate an axis with a series, set this name in the series' |
| opposedPosition | boolean | false | When set to |
| plotOffset | {left: 0, right: 0, top: 0, bottom: 0} | Sets padding around the chart area in pixels. | |
| rangePadding | 'Auto' | Controls how padding is applied to the axis range. Available options:
| |
| rowIndex | number | 0 | Specifies the index of the row to which the axis is assigned when the chart area is divided using |
| skeleton | string | '' | Specifies the skeleton format used for processing date-time values. |
| skeletonType | 'DateTime' | Specifies the format type used for date-time formatting. Available options:
| |
| span | number | 1 | Specifies how many columns or rows the axis should span in the chart layout. |
| startFromZero | boolean | true | When set to |
| tickPosition | 'Outside' | Determines the position of axis ticks relative to the axis line. Available options:
| |
| valueType | 'Double' | Specifies the type of data the axis represents to ensure appropriate rendering. Available options:
| |
| visible | boolean | true | When set to |
| zoomFactor | number | 1 | Scales the axis by the specified factor.
For example, a
|
| zoomPosition | number | 0 | Sets the position of the zoomed axis within the zoomed range. Value ranges from 0 to 1. |