$(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: [[1519862400000,3.24408],[1519948800000,3.20793],[1520035200000,3.21429],[1520121600000,3.21429],[1520208000000,3.21429],[1520294400000,3.20521],[1520380800000,3.21124],[1520467200000,3.16467],[1520553600000,3.16467],[1520640000000,3.16467],[1520726400000,3.16467],[1520812800000,3.16467],[1520899200000,3.14017],[1520985600000,3.15835],[1521072000000,3.17779],[1521158400000,3.21202],[1521244800000,3.21623],[1521331200000,3.21623],[1521417600000,3.21623],[1521504000000,3.22697],[1521590400000,3.21065],[1521676800000,3.20062],[1521763200000,3.19506],[1521849600000,3.18093],[1521936000000,3.18093],[1522022400000,3.18093],[1522108800000,3.20477],[1522195200000,3.18695],[1522281600000,3.18456],[1522368000000,3.18002],[1522454400000,3.15169]], 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: [[1519862400000, 3.244083],[1519862400000, 3.244083],[1519948800000, 3.207930],[1520035200000, 3.214290],[1520121600000, 3.214290],[1520208000000, 3.214290],[1520294400000, 3.205206],[1520380800000, 3.211243],[1520467200000, 3.164672],[1520553600000, 3.164672],[1520640000000, 3.164672],[1520726400000, 3.164672],[1520812800000, 3.164672],[1520899200000, 3.140165],[1520985600000, 3.158346],[1521072000000, 3.177788],[1521158400000, 3.212019],[1521244800000, 3.216225],[1521331200000, 3.216225],[1521417600000, 3.216225],[1521504000000, 3.226971],[1521590400000, 3.210649],[1521676800000, 3.200619],[1521763200000, 3.195059],[1521849600000, 3.180930],[1521936000000, 3.180930],[1522022400000, 3.180930],[1522108800000, 3.204773],[1522195200000, 3.186953],[1522281600000, 3.184555],[1522368000000, 3.180016],[1522454400000, 3.151689]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });