$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1459468800000,29.8494],[1459555200000,29.8472],[1459641600000,29.8472],[1459728000000,29.8472],[1459814400000,29.5819],[1459900800000,29.642],[1459987200000,29.4259],[1460073600000,29.3206],[1460160000000,29.1232],[1460246400000,null],[1460332800000,null],[1460419200000,29.1249],[1460505600000,29.1204],[1460592000000,28.7912],[1460678400000,28.8587],[1460764800000,28.746],[1460851200000,28.746],[1460937600000,28.746],[1461024000000,28.8131],[1461110400000,28.8605],[1461196800000,28.9156],[1461283200000,28.8118],[1461369600000,28.5445],[1461456000000,28.5445],[1461542400000,28.5445],[1461628800000,28.5418],[1461715200000,28.5582],[1461801600000,28.5006],[1461888000000,28.6069],[1461974400000,28.7366]], 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, 29.849437],[1459468800000, 29.849437],[1459555200000, 29.847209],[1459641600000, 29.847209],[1459728000000, 29.847209],[1459814400000, 29.581891],[1459900800000, 29.642008],[1459987200000, 29.425906],[1460073600000, 29.320585],[1460160000000, 29.123196],[1460419200000, 29.124912],[1460505600000, 29.120366],[1460592000000, 28.791232],[1460678400000, 28.858725],[1460764800000, 28.746037],[1460851200000, 28.746037],[1460937600000, 28.746037],[1461024000000, 28.813074],[1461110400000, 28.860537],[1461196800000, 28.915592],[1461283200000, 28.811785],[1461369600000, 28.544548],[1461456000000, 28.544548],[1461542400000, 28.544548],[1461628800000, 28.541761],[1461715200000, 28.558157],[1461801600000, 28.500621],[1461888000000, 28.606859],[1461974400000, 28.736594]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });