$(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: [[1254355200000,5.67457],[1254441600000,5.66853],[1254528000000,5.65716],[1254614400000,5.65716],[1254700800000,5.65716],[1254787200000,5.67632],[1254873600000,5.7125],[1254960000000,5.71854],[1255046400000,5.7591],[1255132800000,5.75375],[1255219200000,5.75375],[1255305600000,5.75375],[1255392000000,5.73197],[1255478400000,5.73431],[1255564800000,5.74274],[1255651200000,5.73073],[1255737600000,5.70783],[1255824000000,5.70783],[1255910400000,5.70783],[1255996800000,5.72471],[1256083200000,5.73982],[1256169600000,5.72474],[1256256000000,5.73232],[1256342400000,5.74015],[1256428800000,5.74015],[1256515200000,5.74015],[1256601600000,5.74035],[1256688000000,5.72978],[1256774400000,5.71557],[1256860800000,5.7218],[1256947200000,5.71618]], 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: [[1254355200000, 5.674570],[1254355200000, 5.674570],[1254441600000, 5.668526],[1254528000000, 5.657162],[1254614400000, 5.657162],[1254700800000, 5.657162],[1254787200000, 5.676323],[1254873600000, 5.712504],[1254960000000, 5.718538],[1255046400000, 5.759101],[1255132800000, 5.753750],[1255219200000, 5.753750],[1255305600000, 5.753750],[1255392000000, 5.731966],[1255478400000, 5.734311],[1255564800000, 5.742738],[1255651200000, 5.730733],[1255737600000, 5.707828],[1255824000000, 5.707828],[1255910400000, 5.707828],[1255996800000, 5.724708],[1256083200000, 5.739818],[1256169600000, 5.724742],[1256256000000, 5.732324],[1256342400000, 5.740155],[1256428800000, 5.740155],[1256515200000, 5.740155],[1256601600000, 5.740347],[1256688000000, 5.729785],[1256774400000, 5.715572],[1256860800000, 5.721803],[1256947200000, 5.716183]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });