Javascript examples for highcharts:Line Chart
Hide the line chart inside the Highstocks Scrollbar
<html> <head> <title>Highcharts Stock Demo</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .highcharts-navigator-series {// ww w. j a v a 2 s.co m display: none; } </style> </head> <body> <script src="https://code.highcharts.com/stock/highstock.js"></script> <div id="container" style="height: 400px; min-width: 600px"></div> <script type="text/javascript"> var data = []; for (let i = 0; i < 1001; i++) { data.push([i, Math.floor((Math.random() * 100) + 1)]) } Highcharts.stockChart('container', { navigator: { enabled: false }, xAxis: { labels: { format: '{value} m' } }, rangeSelector: { buttons: [{ type: 'millisecond', count: 10, text: '10m' }, { type: 'millisecond', count: 50, text: '50m' }, { type: 'millisecond', count: 100, text: '100m' }, { type: 'millisecond', count: 200, text: '200m' }, { type: 'millisecond', count: 500, text: '500m' }, { type: 'millisecond', count: 1000, text: '1km' }] }, series: [{ data: data }] }); </script> </body> </html>