Javascript examples for highcharts:Bar Chart
Draggable date range in bar chart
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script type="text/javascript"> $(function() {// w w w. j a va 2s .co m $.getJSON('https://www.highcharts.com/samples/data/jsonp.php?filename=aapl-c.json&callback=?', function(data) { // Create the chart window.chart = new Highcharts.StockChart({ chart : { renderTo : 'container', type:'column' }, rangeSelector : { selected : 1 }, navigator:{ series:{ type:'column' } }, title : { text : 'AAPL Stock Price' }, series : [{ name : 'AAPL', data : [3,4,65,6,6,34,535,43,23,42,41,421,123,13,213,21,321,3,123,123], tooltip: { valueDecimals: 2 } }] }); }); }); </script> </head> <body> <script src="https://code.highcharts.com/stock/highstock.js"></script> <script src="https://code.highcharts.com/stock/modules/exporting.js"></script> <div id="container" style="height: 500px; min-width: 500px"></div> </body> </html>