$(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: [[1459468800000,3.23561],[1459555200000,3.22976],[1459641600000,3.22976],[1459728000000,3.22976],[1459814400000,3.19828],[1459900800000,3.20246],[1459987200000,3.17678],[1460073600000,3.16723],[1460160000000,3.13395],[1460246400000,null],[1460332800000,null],[1460419200000,3.13795],[1460505600000,3.16052],[1460592000000,3.13767],[1460678400000,3.1512],[1460764800000,3.1279],[1460851200000,3.1279],[1460937600000,3.1279],[1461024000000,3.13363],[1461110400000,3.14477],[1461196800000,3.15524],[1461283200000,3.137],[1461369600000,3.12369],[1461456000000,3.12369],[1461542400000,3.12369],[1461628800000,3.11693],[1461715200000,3.11958],[1461801600000,3.11098],[1461888000000,3.11747],[1461974400000,3.13414]], 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: [[1459468800000, 3.235606],[1459468800000, 3.235606],[1459555200000, 3.229763],[1459641600000, 3.229763],[1459728000000, 3.229763],[1459814400000, 3.198284],[1459900800000, 3.202464],[1459987200000, 3.176783],[1460073600000, 3.167225],[1460160000000, 3.133953],[1460419200000, 3.137953],[1460505600000, 3.160516],[1460592000000, 3.137667],[1460678400000, 3.151204],[1460764800000, 3.127901],[1460851200000, 3.127901],[1460937600000, 3.127901],[1461024000000, 3.133627],[1461110400000, 3.144774],[1461196800000, 3.155243],[1461283200000, 3.137001],[1461369600000, 3.123685],[1461456000000, 3.123685],[1461542400000, 3.123685],[1461628800000, 3.116934],[1461715200000, 3.119576],[1461801600000, 3.110980],[1461888000000, 3.117472],[1461974400000, 3.134138]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });