Javascript examples for highcharts:Chart Drilldown
Keep Drilldown Same Size
<html> <head> <title>Highcharts Demo</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #container {/*from ww w.j a va 2 s . c om*/ min-width: 310px; max-width: 800px; height: 400px; margin: 0 auto } </style> </head> <body> <script src="https://code.highcharts.com/stock/highstock.js"></script> <script src="https://code.highcharts.com/modules/drilldown.js"></script> <div id="container"></div> <script type="text/javascript"> Highcharts.chart('container', { chart: { events: { drilldown: function() { this.update({ scrollbar: { enabled: true } }, false); }, drillupall: function() { this.update({ scrollbar: { enabled: false } }, false); } } }, xAxis: { min: 0, max: 2 }, series: [{ type: 'column', data: [{ y: 1, drilldown: 'randomName' }, { y: 1, drilldown: 'randomName' }, { y: 1, drilldown: 'randomName' }] }], drilldown: { series: [{ type: 'column', id: 'randomName', data: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ] }] } }); </script> </body> </html>