$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1414800000000,10.1306],[1414886400000,10.1306],[1414972800000,10.1306],[1415059200000,10.0674],[1415145600000,10.0474],[1415232000000,10.4628],[1415318400000,10.771],[1415404800000,11.2009],[1415491200000,11.2009],[1415577600000,11.2009],[1415664000000,11.4268],[1415750400000,12.2334],[1415836800000,12.171],[1415923200000,12.0638],[1416009600000,11.9344],[1416096000000,11.9344],[1416182400000,11.9344],[1416268800000,null],[1416355200000,11.7587],[1416441600000,11.7127],[1416528000000,11.6141],[1416614400000,11.5938],[1416700800000,11.5938],[1416787200000,11.5938],[1416873600000,11.6108],[1416960000000,11.5117],[1417046400000,11.4887],[1417132800000,11.5013],[1417219200000,11.5305],[1417305600000,11.5305]], 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, 10.130563],[1414800000000, 10.130563],[1414886400000, 10.130563],[1414972800000, 10.130563],[1415059200000, 10.067354],[1415145600000, 10.047416],[1415232000000, 10.462839],[1415318400000, 10.770982],[1415404800000, 11.200869],[1415491200000, 11.200869],[1415577600000, 11.200869],[1415664000000, 11.426804],[1415750400000, 12.233412],[1415836800000, 12.171010],[1415923200000, 12.063838],[1416009600000, 11.934419],[1416096000000, 11.934419],[1416182400000, 11.934419],[1416355200000, 11.758723],[1416441600000, 11.712696],[1416528000000, 11.614116],[1416614400000, 11.593787],[1416700800000, 11.593787],[1416787200000, 11.593787],[1416873600000, 11.610823],[1416960000000, 11.511740],[1417046400000, 11.488718],[1417132800000, 11.501287],[1417219200000, 11.530458],[1417305600000, 11.530458]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });