$(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: [[1491004800000,3.03067],[1491091200000,3.03067],[1491177600000,3.03067],[1491264000000,3.02811],[1491350400000,3.00566],[1491436800000,3.0286],[1491523200000,3.01426],[1491609600000,2.98796],[1491696000000,2.98796],[1491782400000,2.98796],[1491868800000,2.96468],[1491955200000,2.97664],[1492041600000,2.98281],[1492128000000,2.98024],[1492214400000,2.97445],[1492300800000,2.97445],[1492387200000,2.97445],[1492473600000,2.97445],[1492560000000,2.98993],[1492646400000,2.98655],[1492732800000,2.98848],[1492819200000,2.96698],[1492905600000,2.96698],[1492992000000,2.96698],[1493078400000,3.01963],[1493164800000,3.02101],[1493251200000,3.02947],[1493337600000,3.00181],[1493424000000,3.01409],[1493510400000,3.01409]], 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: [[1491004800000, 3.030669],[1491004800000, 3.030669],[1491091200000, 3.030669],[1491177600000, 3.030669],[1491264000000, 3.028112],[1491350400000, 3.005660],[1491436800000, 3.028602],[1491523200000, 3.014256],[1491609600000, 2.987960],[1491696000000, 2.987960],[1491782400000, 2.987960],[1491868800000, 2.964680],[1491955200000, 2.976640],[1492041600000, 2.982810],[1492128000000, 2.980239],[1492214400000, 2.974454],[1492300800000, 2.974454],[1492387200000, 2.974454],[1492473600000, 2.974454],[1492560000000, 2.989926],[1492646400000, 2.986553],[1492732800000, 2.988484],[1492819200000, 2.966981],[1492905600000, 2.966981],[1492992000000, 2.966981],[1493078400000, 3.019632],[1493164800000, 3.021011],[1493251200000, 3.029472],[1493337600000, 3.001812],[1493424000000, 3.014088],[1493510400000, 3.014088]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });