$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1514764800000,0.248593],[1514851200000,0.248593],[1514937600000,0.248593],[1515024000000,0.248446],[1515110400000,0.248662],[1515196800000,0.248962],[1515283200000,0.248962],[1515369600000,0.248962],[1515456000000,0.248962],[1515542400000,0.250555],[1515628800000,0.254243],[1515715200000,0.254737],[1515801600000,0.256783],[1515888000000,0.256783],[1515974400000,0.256783],[1516060800000,0.258247],[1516147200000,0.258804],[1516233600000,0.258718],[1516320000000,0.258758],[1516406400000,0.260804],[1516492800000,0.260804],[1516579200000,0.260804],[1516665600000,0.260513],[1516752000000,0.261223],[1516838400000,0.263853],[1516924800000,0.263945],[1517011200000,0.261148],[1517097600000,0.261148],[1517184000000,0.261148],[1517270400000,0.259491],[1517356800000,0.25774]], 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.248593],[1514764800000, 0.248593],[1514851200000, 0.248593],[1514937600000, 0.248593],[1515024000000, 0.248446],[1515110400000, 0.248662],[1515196800000, 0.248962],[1515283200000, 0.248962],[1515369600000, 0.248962],[1515456000000, 0.248962],[1515542400000, 0.250555],[1515628800000, 0.254243],[1515715200000, 0.254737],[1515801600000, 0.256783],[1515888000000, 0.256783],[1515974400000, 0.256783],[1516060800000, 0.258247],[1516147200000, 0.258804],[1516233600000, 0.258718],[1516320000000, 0.258758],[1516406400000, 0.260804],[1516492800000, 0.260804],[1516579200000, 0.260804],[1516665600000, 0.260513],[1516752000000, 0.261223],[1516838400000, 0.263853],[1516924800000, 0.263945],[1517011200000, 0.261148],[1517097600000, 0.261148],[1517184000000, 0.261148],[1517270400000, 0.259491],[1517356800000, 0.257740]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });