$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1414800000000,11.5925],[1414886400000,11.5925],[1414972800000,11.5925],[1415059200000,11.4869],[1415145600000,11.4776],[1415232000000,11.8229],[1415318400000,12.1957],[1415404800000,12.6832],[1415491200000,12.6832],[1415577600000,12.6832],[1415664000000,12.9495],[1415750400000,13.9423],[1415836800000,13.8285],[1415923200000,13.7491],[1416009600000,13.6048],[1416096000000,13.6048],[1416182400000,13.6048],[1416268800000,null],[1416355200000,13.4926],[1416441600000,13.4617],[1416528000000,13.3457],[1416614400000,13.3304],[1416700800000,13.3304],[1416787200000,13.3304],[1416873600000,13.3756],[1416960000000,13.3406],[1417046400000,13.2847],[1417132800000,13.2825],[1417219200000,13.307],[1417305600000,13.307]], 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: [[1414800000000, 11.592491],[1414800000000, 11.592491],[1414886400000, 11.592491],[1414972800000, 11.592491],[1415059200000, 11.486908],[1415145600000, 11.477570],[1415232000000, 11.822876],[1415318400000, 12.195700],[1415404800000, 12.683233],[1415491200000, 12.683233],[1415577600000, 12.683233],[1415664000000, 12.949517],[1415750400000, 13.942314],[1415836800000, 13.828504],[1415923200000, 13.749133],[1416009600000, 13.604781],[1416096000000, 13.604781],[1416182400000, 13.604781],[1416355200000, 13.492621],[1416441600000, 13.461725],[1416528000000, 13.345702],[1416614400000, 13.330405],[1416700800000, 13.330405],[1416787200000, 13.330405],[1416873600000, 13.375648],[1416960000000, 13.340623],[1417046400000, 13.284676],[1417132800000, 13.282485],[1417219200000, 13.306965],[1417305600000, 13.306965]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });