$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1254355200000,12.8893],[1254441600000,12.784],[1254528000000,12.6953],[1254614400000,12.6953],[1254700800000,12.6953],[1254787200000,12.7657],[1254873600000,12.734],[1254960000000,12.7256],[1255046400000,12.8534],[1255132800000,12.8025],[1255219200000,12.8025],[1255305600000,12.8025],[1255392000000,12.672],[1255478400000,12.6493],[1255564800000,12.7942],[1255651200000,12.9676],[1255737600000,12.9976],[1255824000000,12.9976],[1255910400000,12.9976],[1255996800000,13.0041],[1256083200000,13.1039],[1256169600000,13.25],[1256256000000,13.2636],[1256342400000,13.0975],[1256428800000,13.0975],[1256515200000,13.0975],[1256601600000,13.0666],[1256688000000,13.1209],[1256774400000,13.0719],[1256860800000,13.1815],[1256947200000,13.236]], 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, 12.889318],[1254355200000, 12.889318],[1254441600000, 12.783977],[1254528000000, 12.695309],[1254614400000, 12.695309],[1254700800000, 12.695309],[1254787200000, 12.765692],[1254873600000, 12.734001],[1254960000000, 12.725585],[1255046400000, 12.853438],[1255132800000, 12.802460],[1255219200000, 12.802460],[1255305600000, 12.802460],[1255392000000, 12.671986],[1255478400000, 12.649251],[1255564800000, 12.794221],[1255651200000, 12.967609],[1255737600000, 12.997634],[1255824000000, 12.997634],[1255910400000, 12.997634],[1255996800000, 13.004097],[1256083200000, 13.103936],[1256169600000, 13.250034],[1256256000000, 13.263559],[1256342400000, 13.097466],[1256428800000, 13.097466],[1256515200000, 13.097466],[1256601600000, 13.066563],[1256688000000, 13.120908],[1256774400000, 13.071919],[1256860800000, 13.181504],[1256947200000, 13.235961]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });