$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1514764800000,0.107945],[1514851200000,0.107945],[1514937600000,0.107945],[1515024000000,0.108419],[1515110400000,0.109546],[1515196800000,0.11002],[1515283200000,0.11002],[1515369600000,0.11002],[1515456000000,0.11002],[1515542400000,0.10878],[1515628800000,0.109615],[1515715200000,0.110472],[1515801600000,0.112182],[1515888000000,0.112182],[1515974400000,0.112182],[1516060800000,0.11354],[1516147200000,0.113497],[1516233600000,0.113292],[1516320000000,0.114127],[1516406400000,0.114325],[1516492800000,0.114325],[1516579200000,0.114325],[1516665600000,0.114132],[1516752000000,0.114005],[1516838400000,0.115383],[1516924800000,0.115288],[1517011200000,0.1146],[1517097600000,0.1146],[1517184000000,0.1146],[1517270400000,0.113035],[1517356800000,0.112088]], 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, 0.107945],[1514764800000, 0.107945],[1514851200000, 0.107945],[1514937600000, 0.107945],[1515024000000, 0.108419],[1515110400000, 0.109546],[1515196800000, 0.110020],[1515283200000, 0.110020],[1515369600000, 0.110020],[1515456000000, 0.110020],[1515542400000, 0.108780],[1515628800000, 0.109615],[1515715200000, 0.110472],[1515801600000, 0.112182],[1515888000000, 0.112182],[1515974400000, 0.112182],[1516060800000, 0.113540],[1516147200000, 0.113497],[1516233600000, 0.113292],[1516320000000, 0.114127],[1516406400000, 0.114325],[1516492800000, 0.114325],[1516579200000, 0.114325],[1516665600000, 0.114132],[1516752000000, 0.114005],[1516838400000, 0.115383],[1516924800000, 0.115288],[1517011200000, 0.114600],[1517097600000, 0.114600],[1517184000000, 0.114600],[1517270400000, 0.113035],[1517356800000, 0.112088]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });