Tree

@nivo/treeexperimentalhierarchytree

Nivo tree graph, supporting dendograms as well.

While it's part of the nivo internals, and not formally documented, you should be able to use the useTree hook directly in order to build a fully custom graph, this hook takes a config object which is very close to the component's props.

Actions Logs
Start interacting with the chart to log actions
Base
objectrequired

The hierarchical data object.

string | Functionoptionaldefault:'id'

The key or function to use to retrieve nodes identity.

'tree' | 'dendogram'optionaldefault:'dendogram'

Type of tree diagram.

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

Defines the diagram layout.

numberrequired

Chart width.

numberrequired

Chart height.

numberoptionaldefault:'Depends on device'

Adjust pixel ratio, useful for HiDPI screens.

supportsvgcanvas
objectoptional
px
px
px
px

Chart margin.

Style
Labels
Customization
Interactivity
Accessibility
Motion