$(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: [[1530403200000,2.9547],[1530489600000,2.9547],[1530576000000,2.92202],[1530662400000,2.9749],[1530748800000,3.00255],[1530835200000,3.02322],[1530921600000,2.99804],[1531008000000,2.99804],[1531094400000,2.99804],[1531180800000,3.01769],[1531267200000,2.99682],[1531353600000,2.99554],[1531440000000,2.95855],[1531526400000,2.94365],[1531612800000,2.94365],[1531699200000,2.94365],[1531785600000,2.97237],[1531872000000,2.98026],[1531958400000,2.96168],[1532044800000,2.96203],[1532131200000,2.97018],[1532217600000,2.97018],[1532304000000,2.97018],[1532390400000,2.9944],[1532476800000,3.01306],[1532563200000,3.02422],[1532649600000,3.03926],[1532736000000,3.02012],[1532822400000,3.02012],[1532908800000,3.02012],[1532995200000,3.04974]], 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: [[1530403200000, 2.954699],[1530403200000, 2.954699],[1530489600000, 2.954699],[1530576000000, 2.922024],[1530662400000, 2.974902],[1530748800000, 3.002546],[1530835200000, 3.023224],[1530921600000, 2.998039],[1531008000000, 2.998039],[1531094400000, 2.998039],[1531180800000, 3.017693],[1531267200000, 2.996818],[1531353600000, 2.995541],[1531440000000, 2.958554],[1531526400000, 2.943653],[1531612800000, 2.943653],[1531699200000, 2.943653],[1531785600000, 2.972372],[1531872000000, 2.980261],[1531958400000, 2.961676],[1532044800000, 2.962029],[1532131200000, 2.970185],[1532217600000, 2.970185],[1532304000000, 2.970185],[1532390400000, 2.994400],[1532476800000, 3.013060],[1532563200000, 3.024224],[1532649600000, 3.039264],[1532736000000, 3.020119],[1532822400000, 3.020119],[1532908800000, 3.020119],[1532995200000, 3.049744]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });