Javascript examples for highcharts:Zoom
Reset zoom
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.js"></script> <script type="text/javascript"> $(function () {/* w w w . ja va2s .c om*/ (function (H) { H.wrap(H.seriesTypes.bubble.prototype, 'drawPoints', function (p) { var series = this; H.each(series.points, function (point, i) { point.shapeArgs.y -= point.shapeArgs.r; }); p.call(this); }); })(Highcharts); $('#container').highcharts({ chart: { type: 'bubble', zoomType: 'xy' }, title: { text: 'Highcharts Bubbles' }, series: [{ data: [ [1, 100, 50], [1, 40, 10] ] }] }); }); </script> </head> <body> <script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/highcharts-more.js"></script> <script src="https://code.highcharts.com/modules/exporting.js"></script> <div id="container" style="height: 400px; min-width: 310px; max-width: 600px; margin: 0 auto"></div> </body> </html>