$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1506816000000,3.252],[1506902400000,3.252],[1506988800000,3.25888],[1507075200000,3.28042],[1507161600000,3.31145],[1507248000000,3.30566],[1507334400000,3.28077],[1507420800000,3.28077],[1507507200000,3.28077],[1507593600000,3.27093],[1507680000000,3.29226],[1507766400000,3.29325],[1507852800000,3.29339],[1507939200000,3.29339],[1508025600000,3.29339],[1508112000000,3.29339],[1508198400000,3.29339],[1508284800000,3.25039],[1508371200000,3.23595],[1508457600000,3.2516],[1508544000000,3.25197],[1508630400000,3.25197],[1508716800000,3.25197],[1508803200000,null],[1508889600000,3.25126],[1508976000000,3.25719],[1509062400000,3.24316],[1509148800000,3.20252],[1509235200000,3.20252],[1509321600000,3.20252],[1509408000000,3.2088]], 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: [[1506816000000, 3.252003],[1506816000000, 3.252003],[1506902400000, 3.252003],[1506988800000, 3.258880],[1507075200000, 3.280422],[1507161600000, 3.311453],[1507248000000, 3.305656],[1507334400000, 3.280769],[1507420800000, 3.280769],[1507507200000, 3.280769],[1507593600000, 3.270926],[1507680000000, 3.292261],[1507766400000, 3.293245],[1507852800000, 3.293394],[1507939200000, 3.293394],[1508025600000, 3.293394],[1508112000000, 3.293394],[1508198400000, 3.293394],[1508284800000, 3.250386],[1508371200000, 3.235946],[1508457600000, 3.251598],[1508544000000, 3.251975],[1508630400000, 3.251975],[1508716800000, 3.251975],[1508889600000, 3.251260],[1508976000000, 3.257191],[1509062400000, 3.243157],[1509148800000, 3.202520],[1509235200000, 3.202520],[1509321600000, 3.202520],[1509408000000, 3.208805]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });