$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1254355200000,7.46085],[1254441600000,7.46381],[1254528000000,7.34368],[1254614400000,7.34368],[1254700800000,7.34368],[1254787200000,7.46028],[1254873600000,7.53599],[1254960000000,7.57101],[1255046400000,7.57101],[1255132800000,7.67291],[1255219200000,7.67291],[1255305600000,7.67291],[1255392000000,7.75627],[1255478400000,7.77398],[1255564800000,7.77338],[1255651200000,7.72231],[1255737600000,7.66632],[1255824000000,7.66632],[1255910400000,7.66632],[1255996800000,7.69806],[1256083200000,7.7361],[1256169600000,7.57037],[1256256000000,7.62865],[1256342400000,7.5998],[1256428800000,7.5998],[1256515200000,7.5998],[1256601600000,7.56893],[1256688000000,7.51973],[1256774400000,7.46719],[1256860800000,7.45692],[1256947200000,7.41577]], 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, 7.460855],[1254355200000, 7.460855],[1254441600000, 7.463807],[1254528000000, 7.343679],[1254614400000, 7.343679],[1254700800000, 7.343679],[1254787200000, 7.460279],[1254873600000, 7.535993],[1254960000000, 7.571011],[1255046400000, 7.571012],[1255132800000, 7.672912],[1255219200000, 7.672912],[1255305600000, 7.672912],[1255392000000, 7.756273],[1255478400000, 7.773985],[1255564800000, 7.773381],[1255651200000, 7.722313],[1255737600000, 7.666317],[1255824000000, 7.666317],[1255910400000, 7.666317],[1255996800000, 7.698055],[1256083200000, 7.736099],[1256169600000, 7.570366],[1256256000000, 7.628653],[1256342400000, 7.599795],[1256428800000, 7.599795],[1256515200000, 7.599795],[1256601600000, 7.568925],[1256688000000, 7.519732],[1256774400000, 7.467194],[1256860800000, 7.456918],[1256947200000, 7.415772]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });