$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1514764800000,33.4954],[1514851200000,33.4954],[1514937600000,33.4954],[1515024000000,33.5328],[1515110400000,33.7981],[1515196800000,33.9709],[1515283200000,33.9709],[1515369600000,33.9709],[1515456000000,33.9709],[1515542400000,33.6521],[1515628800000,33.9719],[1515715200000,34.1832],[1515801600000,34.6349],[1515888000000,34.6349],[1515974400000,34.6349],[1516060800000,35.0725],[1516147200000,35.0421],[1516233600000,34.9813],[1516320000000,35.2093],[1516406400000,35.3493],[1516492800000,35.3493],[1516579200000,35.3493],[1516665600000,35.3411],[1516752000000,35.3565],[1516838400000,35.6545],[1516924800000,35.6642],[1517011200000,35.5031],[1517097600000,35.5031],[1517184000000,35.5031],[1517270400000,34.9664],[1517356800000,34.7897]], 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: [[1514764800000, 33.495424],[1514764800000, 33.495424],[1514851200000, 33.495424],[1514937600000, 33.495424],[1515024000000, 33.532796],[1515110400000, 33.798126],[1515196800000, 33.970910],[1515283200000, 33.970910],[1515369600000, 33.970910],[1515456000000, 33.970910],[1515542400000, 33.652111],[1515628800000, 33.971913],[1515715200000, 34.183211],[1515801600000, 34.634916],[1515888000000, 34.634916],[1515974400000, 34.634916],[1516060800000, 35.072521],[1516147200000, 35.042100],[1516233600000, 34.981281],[1516320000000, 35.209253],[1516406400000, 35.349322],[1516492800000, 35.349322],[1516579200000, 35.349322],[1516665600000, 35.341137],[1516752000000, 35.356522],[1516838400000, 35.654501],[1516924800000, 35.664229],[1517011200000, 35.503086],[1517097600000, 35.503086],[1517184000000, 35.503086],[1517270400000, 34.966361],[1517356800000, 34.789719]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });