ZoomCharts Documentation

Version: 1.21.13 (2026-02-03)
Switch to Version 2.0 (BETA)

ZoomCharts.Configuration.ItemsChartSettingsNodeItem

Node item.

Inheritance hierarchy

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

Methods

This type does not define any methods.

Properties

align: "center" | "right" | "left"

Text alignment.

angle: number

The angle at which the label are rotated

aspectRatio: number

Ratio between label sizes in different dimensions

Background style including fill color.

borderRadius: number

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

extra: any

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
hoverEffect: boolean
Introduced in version 1.16.0.

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

image: string

Label image.

imageSlicing: [number, number, number, number]

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

ix: number

X offset from node center in units of item half width.

iy: number

Y offset from node center in units of item half height.

lineSpacing: number

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

margin: number

Margin around label text

maxWidth: number

Maximum width of the label.

minNonEllipsisWidth: number

The minimum space, in pixels, that a label must display before shortening the label with ellipsis is considered.

padding: number

Padding between item content and item border.

px: number

X offset from node center. A fraction of node width. Value of -1 places the item at the left edge of the node. Value of 1 places the item at the right edge of the node.

py: number

Y offset from node center. A fraction of node height. Value of -1 places the item at the top edge of the node. Value of 1 places the item at the bottom edge of the node.

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

Label text.

Inherited from: BaseSettingsLabelStyle

Text style including fill color and font.

X offset from node center in pixels.

Y offset from node 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