$(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: [[1262736000000,5.72532],[1262822400000,5.72094],[1262908800000,5.72094],[1262995200000,5.72094],[1263081600000,5.72094],[1263168000000,5.72094],[1263254400000,5.75738],[1263340800000,5.75298],[1263427200000,5.76784],[1263513600000,5.76788],[1263600000000,5.75507],[1263686400000,5.75507],[1263772800000,5.75507],[1263859200000,5.75854],[1263945600000,5.75263],[1264032000000,5.72452],[1264118400000,5.71116],[1264204800000,5.70587],[1264291200000,5.70587],[1264377600000,5.70587],[1264464000000,5.7204],[1264550400000,5.70008],[1264636800000,5.69859],[1264723200000,5.70804],[1264809600000,5.69708],[1264896000000,5.69708]], 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: [[1262736000000, 5.725319],[1262736000000, 5.725319],[1262822400000, 5.720942],[1262908800000, 5.720942],[1262995200000, 5.720942],[1263081600000, 5.720942],[1263168000000, 5.720942],[1263254400000, 5.757377],[1263340800000, 5.752984],[1263427200000, 5.767839],[1263513600000, 5.767876],[1263600000000, 5.755066],[1263686400000, 5.755066],[1263772800000, 5.755066],[1263859200000, 5.758540],[1263945600000, 5.752631],[1264032000000, 5.724522],[1264118400000, 5.711160],[1264204800000, 5.705869],[1264291200000, 5.705869],[1264377600000, 5.705869],[1264464000000, 5.720404],[1264550400000, 5.700081],[1264636800000, 5.698587],[1264723200000, 5.708036],[1264809600000, 5.697080],[1264896000000, 5.697080]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });