ZoomCharts Documentation

Version: 1.21.1 (2024-11-08)

ZoomCharts.Configuration.ItemsChartSettingsLinkItem

Link item.

Inheritance hierarchy

This type inherits from ItemsChartSettingsItemsLayerItemStyle. Through this type it also inherits members from ItemsChartSettingsItemsLayerLabelStyle and BaseSettingsLabelStyle.

Methods

This type does not define any methods.

Properties

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

Text alignment.

angle: number
Inherited from: BaseSettingsLabelStyle

The angle at which the label are rotated

aspectRatio: number
Inherited from: BaseSettingsLabelStyle

Ratio between label sizes in different dimensions

Inherited from: BaseSettingsLabelStyle

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

extra: any
Inherited from: BaseSettingsLabelStyle

Extra data associated with the label

fontSizeScaleRoundingFunction: (fontSize: number) => number

If scaling by font size, how to round the scaled font. Mainly useful for optimizing font cache usage.

Parameters
fontSize: number
Return value
Data type: number
forceNoWrap: boolean
Inherited from: BaseSettingsLabelStyle
hoverEffect: boolean
Introduced in version 1.16.0.

Whether to enlarge the item when its parent is being hovered.

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

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

lx: number

Offset from link center along link direction. In pixels.

ly: number

Offset from link center perpendicular to link direction. In pixels.

margin: number
Inherited from: BaseSettingsLabelStyle

Margin around label text

maxWidth: number
Inherited from: BaseSettingsLabelStyle

Maximum width of the label.

padding: number
Inherited from: BaseSettingsLabelStyle

Padding between item content and item border.

px: number

Offset from link center along link direction. A fraction of link length. Value of -1 places the item at the start of the link. Value of 1 places the item at the end of the link.

py: number

Offset from link center perpendicularly to link direction. A fraction of link radius.

scale: number

How much larger or smaller the item should be drawn

scaleByFontSize: boolean

Whether to apply scaling by changing the font size. Only necessary when using subpixel font sizes with large scaling factors, as otherwise the browser would have skipped calculating the font because it was too small to be seen.

scaleWithSize: boolean

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

scaleWithZoom: boolean

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

Text style including fill color and font.

width: number

How wide should the item be relative to the link length. 1 equals link length, 0 or not given uses default size calculation

X offset from link center in pixels.

Y offset from link center in pixels.

zIndex: number
Introduced in version 1.16.0.

Governs the order of item drawing. Items with negative zIndex will be drawn beneath its parent.

X