Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Chart.js scale for hierarchical tree-like data structure

License

NotificationsYou must be signed in to change notification settings

sgratzl/chartjs-plugin-hierarchical

Repository files navigation

datavisynNPM PackageGithub Actions

Chart.js module for adding a new categorical scale which mimics a hierarchical tree.

hierarchy

Related Plugins

Check out also my other chart.js plugins:

Install

npm install --save chart.js chartjs-plugin-hierarchical

Usage

seeExamples

or at thisOpen in CodePen

Scale

a new scale typehierarchical.

Styling

Thehierarchical axis scale has the following styling options

seeIHierarchicalScaleOptions

Data structure

seeILabelNode andIValueNode

ESM and Tree Shaking

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 setChart.register(HierarchicalScale);...

Development Environment

npm i -g yarnyarn installyarn sdks vscode

Common commands

yarn compileyarntestyarn lintyarn fixyarn buildyarn docs

developed bydatavisyn.

About

Chart.js scale for hierarchical tree-like data structure

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp