$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс XDR, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс XDR', data: [[1535760000000,39.5838],[1535846400000,39.5838],[1535932800000,39.5838],[1536019200000,39.769],[1536105600000,39.7473],[1536192000000,39.6721],[1536278400000,39.4869],[1536364800000,39.5703],[1536451200000,39.5703],[1536537600000,39.5703],[1536624000000,39.3828],[1536710400000,39.2502],[1536796800000,39.1417],[1536883200000,39.3716],[1536969600000,39.4889],[1537056000000,39.4889],[1537142400000,39.4889],[1537228800000,39.3914],[1537315200000,39.4478],[1537401600000,39.4307],[1537488000000,39.4013],[1537574400000,39.4326],[1537660800000,39.4326],[1537747200000,39.4326],[1537833600000,39.4764],[1537920000000,39.397],[1538006400000,39.4892],[1538092800000,39.6757],[1538179200000,39.4436],[1538265600000,39.4436]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1535760000000, 39.583783],[1535760000000, 39.583783],[1535846400000, 39.583783],[1535932800000, 39.583783],[1536019200000, 39.769022],[1536105600000, 39.747330],[1536192000000, 39.672073],[1536278400000, 39.486883],[1536364800000, 39.570287],[1536451200000, 39.570287],[1536537600000, 39.570287],[1536624000000, 39.382805],[1536710400000, 39.250155],[1536796800000, 39.141718],[1536883200000, 39.371604],[1536969600000, 39.488901],[1537056000000, 39.488901],[1537142400000, 39.488901],[1537228800000, 39.391392],[1537315200000, 39.447844],[1537401600000, 39.430651],[1537488000000, 39.401311],[1537574400000, 39.432600],[1537660800000, 39.432600],[1537747200000, 39.432600],[1537833600000, 39.476444],[1537920000000, 39.396981],[1538006400000, 39.489250],[1538092800000, 39.675708],[1538179200000, 39.443645],[1538265600000, 39.443645]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });