Chart.js scale for hierarchical tree-like data structure
TypeScript
58
388 commits
updated Oct 4, 2025
Chart.js module for adding a new categorical scale which mimics a hierarchical tree.

Check out also my other chart.js plugins:
npm install --save chart.js chartjs-plugin-hierarchical
see Examples
a new scale type hierarchical.
The hierarchical axis scale has the following styling options
see ILabelNode and IValueNode
The ESM build of the library supports tree shaking thus having no side effects. As a consequence the chart.js library won't be automatically manipulated nor new controllers automatically registered. One has to manually import and register them.
import { Chart } from 'chart.js';
import { HierarchicalScale } from 'chartjs-plugin-hierarchical';
// register scale in chart.js and ensure the defaults are set
Chart.register(HierarchicalScale);
...
npm i -g yarn
yarn install
yarn sdks vscode
yarn compile
yarn test
yarn lint
yarn fix
yarn build
yarn docs
developed by datavisyn.
Overall
Maintained
Code review
Latest release
Releases this year
Chart.js scale for hierarchical tree-like data structure
TypeScript
58
388 commits
updated Oct 4, 2025
Chart.js module for adding a new categorical scale which mimics a hierarchical tree.

Check out also my other chart.js plugins:
npm install --save chart.js chartjs-plugin-hierarchical
see Examples
a new scale type hierarchical.
The hierarchical axis scale has the following styling options
see ILabelNode and IValueNode
The ESM build of the library supports tree shaking thus having no side effects. As a consequence the chart.js library won't be automatically manipulated nor new controllers automatically registered. One has to manually import and register them.
import { Chart } from 'chart.js';
import { HierarchicalScale } from 'chartjs-plugin-hierarchical';
// register scale in chart.js and ensure the defaults are set
Chart.register(HierarchicalScale);
...
npm i -g yarn
yarn install
yarn sdks vscode
yarn compile
yarn test
yarn lint
yarn fix
yarn build
yarn docs
developed by datavisyn.
Overall
Maintained
Code review
Latest release
Releases this year