$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1470009600000,2.89904],[1470096000000,2.92926],[1470182400000,2.94444],[1470268800000,2.9494],[1470355200000,2.9354],[1470441600000,2.94327],[1470528000000,2.94327],[1470614400000,2.94327],[1470700800000,2.92537],[1470787200000,2.9383],[1470873600000,2.99823],[1470960000000,3.00301],[1471046400000,3.04952],[1471132800000,3.04952],[1471219200000,3.04952],[1471305600000,3.06028],[1471392000000,3.0732],[1471478400000,3.04809],[1471564800000,3.08435],[1471651200000,3.075],[1471737600000,3.075],[1471824000000,3.075],[1471910400000,3.06538],[1471996800000,3.08952],[1472083200000,3.08952],[1472169600000,3.0825],[1472256000000,3.10531],[1472342400000,3.10531],[1472428800000,3.10531],[1472515200000,3.07026],[1472601600000,3.08469]], 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.899036],[1470009600000, 2.899036],[1470096000000, 2.929260],[1470182400000, 2.944436],[1470268800000, 2.949396],[1470355200000, 2.935399],[1470441600000, 2.943266],[1470528000000, 2.943266],[1470614400000, 2.943266],[1470700800000, 2.925374],[1470787200000, 2.938300],[1470873600000, 2.998226],[1470960000000, 3.003008],[1471046400000, 3.049524],[1471132800000, 3.049524],[1471219200000, 3.049524],[1471305600000, 3.060285],[1471392000000, 3.073199],[1471478400000, 3.048094],[1471564800000, 3.084348],[1471651200000, 3.074998],[1471737600000, 3.074998],[1471824000000, 3.074998],[1471910400000, 3.065382],[1471996800000, 3.089523],[1472083200000, 3.089523],[1472169600000, 3.082502],[1472256000000, 3.105309],[1472342400000, 3.105309],[1472428800000, 3.105309],[1472515200000, 3.070264],[1472601600000, 3.084688]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });