ZoomCharts Documentation

NetChart.settings.style.linkLabel

This section is defined by the type ItemsChartSettingsItemsLayerLinkLabelStyle.

Link text style

Properties

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

Text alignment.

angle: number
Inherited from: BaseSettingsLabelStyle

The angle at which the label are rotated

aspectRatio: number
Default value: 4
Inherited from: BaseSettingsLabelStyle

Ratio between label sizes in different dimensions

Inherited from: BaseSettingsLabelStyle
View section details

Background style including fill color.

borderRadius: number
Default value: 1000
Inherited from: BaseSettingsLabelStyle

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

extra: any
Inherited from: BaseSettingsLabelStyle

Extra data associated with the label

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]

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: 0
Inherited from: BaseSettingsLabelStyle

Margin around label text

maxWidth: number
Inherited from: BaseSettingsLabelStyle

Maximum width of the label.

padding: number
Default value: 0.6
Inherited from: BaseSettingsLabelStyle

Padding between item content and item border.

scale: number

How much larger or smaller the item should be drawn

scaleWithSize: boolean
Default value: false

Whether to apply different scale according to initial size of the link or node.

scaleWithZoom: boolean
Default value: true

Whether to apply the scale if zoom changes. If false, the label size never changes.

text: string
Inherited from: BaseSettingsLabelStyle

Label text.

Inherited from: BaseSettingsLabelStyle
View section details

Text style including fill color and font.

X