$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1254355200000,8.004],[1254441600000,8.009],[1254528000000,8.01],[1254614400000,8.01],[1254700800000,8.01],[1254787200000,8.01],[1254873600000,8.01],[1254960000000,8.01],[1255046400000,8.01],[1255132800000,8.01],[1255219200000,8.01],[1255305600000,8.01],[1255392000000,8.01],[1255478400000,8.0062],[1255564800000,7.998],[1255651200000,7.98],[1255737600000,7.97],[1255824000000,7.97],[1255910400000,7.97],[1255996800000,7.97],[1256083200000,7.98],[1256169600000,7.993],[1256256000000,8.005],[1256342400000,7.998],[1256428800000,7.998],[1256515200000,7.998],[1256601600000,7.9988],[1256688000000,8.0076],[1256774400000,8.0076],[1256860800000,8],[1256947200000,7.993]], 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, 8.004000],[1254355200000, 8.004000],[1254441600000, 8.009000],[1254528000000, 8.010000],[1254614400000, 8.010000],[1254700800000, 8.010000],[1254787200000, 8.010000],[1254873600000, 8.010000],[1254960000000, 8.010000],[1255046400000, 8.010000],[1255132800000, 8.010000],[1255219200000, 8.010000],[1255305600000, 8.010000],[1255392000000, 8.010000],[1255478400000, 8.006200],[1255564800000, 7.998000],[1255651200000, 7.980000],[1255737600000, 7.970000],[1255824000000, 7.970000],[1255910400000, 7.970000],[1255996800000, 7.970000],[1256083200000, 7.980000],[1256169600000, 7.993000],[1256256000000, 8.005000],[1256342400000, 7.998000],[1256428800000, 7.998000],[1256515200000, 7.998000],[1256601600000, 7.998800],[1256688000000, 8.007600],[1256774400000, 8.007600],[1256860800000, 8.000000],[1256947200000, 7.993000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });