Javascript examples for highcharts:Chart Data
Draw only part of data in charts
<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() {//from w w w. j a v a 2 s . c om $('#container').highcharts('Chart', { title : { text : 'AAPL Stock Price' }, scrollbar:{ enabled:true }, xAxis:{ min:0, max:5 }, series : [{ name : 'AAPL', data : [1,2,3,4,5,6,7,8,9] }] }); }); </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>