Responsive chart
// Data retrieved from https://www.ssb.no/statbank/table/10467/ const chart = Highcharts.chart('container', { chart: { type: 'column' }, title: { text: 'Born persons, by girls\' name' }, subtitle: { text: 'Resize the frame or click buttons to change appearance' }, legend: { align: 'right', verticalAlign: 'middle', layout: 'vertical' }, xAxis: { categories: ['2021', '2022', '2023'], labels: { x: -10 } }, yAxis: { allowDecimals: false, title: { text: 'Amount' } }, series: [{ name: 'Ava', data: [34, 39, 53] }, { name: 'Dina', data: [27, 21, 22] }, { name: 'Malin', data: [41, 34, 32] }], responsive: { rules: [{ condition: { maxWidth: 500 }, chartOptions: { legend: { align: 'center', verticalAlign: 'bottom', layout: 'horizontal' }, yAxis: { labels: { align: 'left', x: 0, y: -5 }, title: { text: null } }, subtitle: { text: null }, credits: { enabled: false } } }] } }); document.getElementById('small').addEventListener('click', function () { chart.setSize(400); }); document.getElementById('large').addEventListener('click', function () { chart.setSize(600); }); document.getElementById('auto').addEventListener('click', function () { chart.setSize(null); });
CoreDynamic charts
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