highcharts-tree
Why?
Tree chart for Highcharts.
Forked from https://github.com/skorunka/highcharts.tree. This Repo has not been updated for a long time, So I forked it, fixed some bugs, add some feature
Require
Highcharts 5.0.0+
Install from npm
npm i --save highcharts-tree
Usage
Follow the three steps:
;// 1. import;// 2. initiate plugin;const chartConfig = chart: type: "tree" config: // tree chart config width: 0 // set 0 to auto size height: 0 // set 0 to auto size series: data: id: 1 content: title: "title 1" data: "data" "text" children: id: 2 content: title: "title 2" data: "data" id: 3 content: title: "title 3"data: "data" title: text: "Title" ;// 3. createHighcharts;
Styled Mode
highcharts version >= 7.0.0
;;; // 1. import css file ; const chartConfig = chart: styledMode: true // 2. use styled mode // ... // ...;Highcharts;
more css selector see highcharts-tree.scss
config
Type Checking
;;Highcharts.chartidSelector, chartConfig;
Demo
Screenshot
Changelog
see release