Inverted treegraph
const data = [ { id: '0.0', parent: '', name: 'The World' }, { id: '1.3', parent: '0.0', name: 'Asia' }, { id: '1.1', parent: '0.0', name: 'Africa' }, { id: '1.2', parent: '0.0', name: 'America' }, { id: '1.4', parent: '0.0', name: 'Europe' }, { id: '1.5', parent: '0.0', name: 'Oceanic' }, /* Africa */ { id: '2.1', parent: '1.1', name: 'Eastern Africa' }, { id: '2.5', parent: '1.1', name: 'Western Africa' }, { id: '2.3', parent: '1.1', name: 'North Africa' }, { id: '2.2', parent: '1.1', name: 'Central Africa' }, { id: '2.4', parent: '1.1', name: 'South America' }, /* America */ { id: '2.9', parent: '1.2', name: 'South America' }, { id: '2.8', parent: '1.2', name: 'Northern America' }, { id: '2.7', parent: '1.2', name: 'Central America' }, { id: '2.6', parent: '1.2', name: 'Caribbean' }, /* Asia */ { id: '2.13', parent: '1.3', name: 'Southern Asia' }, { id: '2.11', parent: '1.3', name: 'Eastern Asia' }, { id: '2.12', parent: '1.3', name: 'South-Eastern Asia' }, { id: '2.14', parent: '1.3', name: 'Western Asia' }, { id: '2.10', parent: '1.3', name: 'Central Asia' }, /* Europe */ { id: '2.15', parent: '1.4', name: 'Eastern Europe' }, { id: '2.16', parent: '1.4', name: 'Northern Europe' }, { id: '2.17', parent: '1.4', name: 'Southern Europe' }, { id: '2.18', parent: '1.4', name: 'Western Europe' }, /* Oceania */ { id: '2.19', parent: '1.5', name: 'Australia and New Zealand' }, { id: '2.20', parent: '1.5', name: 'Melanesia' }, { id: '2.21', parent: '1.5', name: 'Micronesia' }, { id: '2.22', parent: '1.5', name: 'Polynesia' } ]; Highcharts.chart('container', { chart: { inverted: true, marginBottom: 170 }, title: { text: 'Inverted treegraph', align: 'left' }, series: [ { type: 'treegraph', data, tooltip: { pointFormat: '{point.name}' }, dataLabels: { pointFormat: '{point.name}', style: { whiteSpace: 'nowrap', color: '#000000', textOutline: '3px contrast' }, crop: false }, marker: { radius: 6 }, levels: [ { level: 1, dataLabels: { align: 'left', x: 20 } }, { level: 2, colorByPoint: true, dataLabels: { verticalAlign: 'bottom', y: -20 } }, { level: 3, colorVariation: { key: 'brightness', to: -0.5 }, dataLabels: { verticalAlign: 'top', rotation: 90, y: 20 } } ] } ] });
CoreTrees and networks
Install with NPM
The official Highcharts NPM package comes with support for CommonJS and contains Highcharts, and its Stock, Maps and Gantt packages.
npm install highcharts --save
See more installation optionsDownload our library
The zip archive contains Javascript files and examples. Unzip the zip package and open index.html in your browser to see the examples.
DownloadBuy a license
You can download and try out all Highcharts products for free. Once your project/product is ready for launch, purchase a commercial license.
See License Pricing