IcicleHtml

@nivo/iciclehierarchy

A HTML implementation of the Icicle component.

SVG can be pretty limited when it comes to rendering text, images... So if you want to render more complex content, you can use the HTML version.

Also web developers are used to HTML, CSS and JS, so this version might be more familiar if customization is needed.

roll the dice
Actions Logs
Start interacting with the chart to log actions
Base
readonly Datum[]required

Hierarchical chart data.

PropertyAccessor<Datum, string>optionaldefault:'id'

Id accessor.

PropertyAccessor<Datum, number>optionaldefault:'value'

Value accessor

NodesSortingoptional

Define how to sort the nodes.

string | (value: number) => string | numberoptional
open editor

Optional formatter for values.

'top' | 'right' | 'bottom' | 'left'optionaldefault:'bottom'
bottom

Chart orientation.

numberoptionaldefault:1
px

Horizontal spacing between nodes.

numberoptionaldefault:1
px

Vertical spacing between nodes.

numberrequired

Chart width for non-responsive component.

numberoptional

Chart default width for responsive component.

numberrequired

Chart height for non-responsive component.

numberoptional

Chart default height for responsive component.

number (ms)optional

Debounce width/height updates for responsive component.

(dimensions: { width: number; height: number }) => voidoptional

A callback for when responsive component is resized.

objectoptional
px
px
px
px

Chart margin.

Ref<SVGSVGElement | HTMLCanvasElement>optional

Ref to the chart's container. Used on this page to generate/download the chart's image via html-to-image.

supportsvghtmlapi
Style
Labels
Customization
Interactivity
Accessibility
Motion