$(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: [[1525132800000,3.00616],[1525219200000,3.00616],[1525305600000,2.95782],[1525392000000,2.96184],[1525478400000,2.9783],[1525564800000,2.9783],[1525651200000,2.9783],[1525737600000,2.96922],[1525824000000,2.97079],[1525910400000,2.97079],[1525996800000,3.0161],[1526083200000,3.0462],[1526169600000,3.0462],[1526256000000,3.0462],[1526342400000,3.04727],[1526428800000,3.02603],[1526515200000,3.00124],[1526601600000,3.003],[1526688000000,2.98865],[1526774400000,2.98865],[1526860800000,2.98865],[1526947200000,2.99076],[1527033600000,3.00988],[1527120000000,2.96739],[1527206400000,2.98669],[1527292800000,2.99538],[1527379200000,2.99538],[1527465600000,2.99538],[1527552000000,2.99538],[1527638400000,2.92374],[1527724800000,2.9578]], 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: [[1525132800000, 3.006156],[1525132800000, 3.006156],[1525219200000, 3.006156],[1525305600000, 2.957823],[1525392000000, 2.961838],[1525478400000, 2.978298],[1525564800000, 2.978298],[1525651200000, 2.978298],[1525737600000, 2.969225],[1525824000000, 2.970790],[1525910400000, 2.970790],[1525996800000, 3.016098],[1526083200000, 3.046203],[1526169600000, 3.046203],[1526256000000, 3.046203],[1526342400000, 3.047270],[1526428800000, 3.026028],[1526515200000, 3.001245],[1526601600000, 3.003001],[1526688000000, 2.988650],[1526774400000, 2.988650],[1526860800000, 2.988650],[1526947200000, 2.990758],[1527033600000, 3.009880],[1527120000000, 2.967393],[1527206400000, 2.986685],[1527292800000, 2.995382],[1527379200000, 2.995382],[1527465600000, 2.995382],[1527552000000, 2.995382],[1527638400000, 2.923745],[1527724800000, 2.957803]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });