API / Configuration / ChartAxisLabels

Defined in: src/types/chart/axis.ts:9

Properties

Property Type Description
autoRotation? boolean For horizontal axes, enable label rotation to prevent overlapping labels. If there is enough space, labels are not rotated. As the chart gets narrower, it will start rotating the labels -45 degrees. Does not apply to html labels.
dateFormat? string -
enabled? boolean Enable or disable the axis labels.
html? boolean Allows to use any html-tags to display labels content. Supports only for axis with type "category". Default false
margin? number The label's pixel distance from the perimeter of the plot area. Default 10
maxWidth? string | number The maximum width of the axis labels(absolute or relative to the chart area). If more than that, it collapses into three points.
numberFormat? FormatNumberOptions -
padding? number The pixel padding for axis labels, to ensure white space between them. Default 5
rotation? number Rotation of the labels in degrees. Does not apply to html labels. Default 0
style? Partial<BaseTextStyle> -