ZoomCharts Documentation

Version: 1.21.1 (2024-11-08)

FacetChart.settings.facetAxis.labels

This section is defined by the type FacetChartSettingsFacetAxisLabels.

Facet axis name settings.

Properties

align: "center" | "right" | "left"
Default value: "left"
Inherited from: BaseSettingsLabelStyle

Text alignment.

allowOverflow: boolean
Default value: false
Introduced in version 1.15.0.

Specifies if labels with angle that is not multiple of 90 (either horizontal or vertical) are allowed to overflow the left and right sides of the facet axis.

In the simple case this setting allows the first label with angle -45 degrees to be rendered under the value axis, giving it slightly more space.

angle: number
Default value: 0
Inherited from: BaseSettingsLabelStyle

The angle at which the label are rotated

aspectRatio: number
Default value: 3
Inherited from: BaseSettingsLabelStyle

Ratio between label sizes in different dimensions

Inherited from: BaseSettingsLabelStyle
View section details

Background style including fill color.

borderRadius: number
Inherited from: BaseSettingsLabelStyle

Radius of item border. Similar to CSS border radius property. Zero radius will show a rectangle

enabled: boolean
Default value: true
extra: any
Inherited from: BaseSettingsLabelStyle

Extra data associated with the label

forceNoWrap: boolean
Inherited from: BaseSettingsLabelStyle
image: string
Inherited from: BaseSettingsLabelStyle

Label image.

imageSlicing: [number, number, number, number]
Inherited from: BaseSettingsLabelStyle

Slicing to use tiled images. Array of 4 values: [left, top, width, height]

interLabelSpacing: number
Default value: 0.6
lineSpacing: number
Default value: 0.2
Inherited from: BaseSettingsLabelStyle

Vertical space between the lines of text. In multiples of text line height.

margin: number
Default value: 4
Inherited from: BaseSettingsLabelStyle

Margin around label text

maxWidth: number
Inherited from: BaseSettingsLabelStyle

Maximum width of the label.

padding: number
Default value: 0
Inherited from: BaseSettingsLabelStyle

Padding between item content and item border.

text: string
Inherited from: BaseSettingsLabelStyle
Introduced in version 1.12.0.

The default text displayed for each value when the data item does not define a specific text.

Inherited from: BaseSettingsLabelStyle
View section details

Text style including fill color and font.

X