$(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: [[1470009600000,2.88143],[1470096000000,2.88714],[1470182400000,2.90825],[1470268800000,2.92119],[1470355200000,2.90494],[1470441600000,2.91165],[1470528000000,2.91165],[1470614400000,2.91165],[1470700800000,2.88898],[1470787200000,2.89788],[1470873600000,2.92739],[1470960000000,2.93878],[1471046400000,2.96337],[1471132800000,2.96337],[1471219200000,2.96337],[1471305600000,2.96812],[1471392000000,2.99417],[1471478400000,2.97943],[1471564800000,3.00721],[1471651200000,3.01384],[1471737600000,3.01384],[1471824000000,3.01384],[1471910400000,3.01547],[1471996800000,3.03085],[1472083200000,3.03085],[1472169600000,3.01157],[1472256000000,3.02671],[1472342400000,3.02671],[1472428800000,3.02671],[1472515200000,2.99883],[1472601600000,3.01537]], 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: [[1470009600000, 2.881431],[1470009600000, 2.881431],[1470096000000, 2.887140],[1470182400000, 2.908253],[1470268800000, 2.921187],[1470355200000, 2.904935],[1470441600000, 2.911648],[1470528000000, 2.911648],[1470614400000, 2.911648],[1470700800000, 2.888980],[1470787200000, 2.897884],[1470873600000, 2.927390],[1470960000000, 2.938783],[1471046400000, 2.963373],[1471132800000, 2.963373],[1471219200000, 2.963373],[1471305600000, 2.968122],[1471392000000, 2.994168],[1471478400000, 2.979429],[1471564800000, 3.007206],[1471651200000, 3.013845],[1471737600000, 3.013845],[1471824000000, 3.013845],[1471910400000, 3.015469],[1471996800000, 3.030847],[1472083200000, 3.030847],[1472169600000, 3.011572],[1472256000000, 3.026714],[1472342400000, 3.026714],[1472428800000, 3.026714],[1472515200000, 2.998827],[1472601600000, 3.015370]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });