$(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: [[1370044800000,7.73835],[1370131200000,7.73835],[1370217600000,7.73835],[1370304000000,7.72746],[1370390400000,7.7457],[1370476800000,7.73148],[1370563200000,7.75018],[1370649600000,7.81156],[1370736000000,7.81156],[1370822400000,7.81156],[1370908800000,7.84686],[1370995200000,7.80426],[1371081600000,7.86738],[1371168000000,7.8596],[1371254400000,7.86238],[1371340800000,7.86238],[1371427200000,7.86238],[1371513600000,7.86852],[1371600000000,7.84],[1371686400000,7.83692],[1371772800000,7.72893],[1371859200000,7.68681],[1371945600000,7.68681],[1372032000000,7.68681],[1372118400000,7.68681],[1372204800000,7.62382],[1372291200000,7.62699],[1372377600000,7.65974],[1372464000000,7.65974],[1372550400000,7.65974]], 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: [[1370044800000, 7.738347],[1370044800000, 7.738347],[1370131200000, 7.738347],[1370217600000, 7.738347],[1370304000000, 7.727458],[1370390400000, 7.745696],[1370476800000, 7.731478],[1370563200000, 7.750179],[1370649600000, 7.811555],[1370736000000, 7.811555],[1370822400000, 7.811555],[1370908800000, 7.846863],[1370995200000, 7.804258],[1371081600000, 7.867378],[1371168000000, 7.859596],[1371254400000, 7.862384],[1371340800000, 7.862384],[1371427200000, 7.862384],[1371513600000, 7.868515],[1371600000000, 7.839999],[1371686400000, 7.836916],[1371772800000, 7.728928],[1371859200000, 7.686811],[1371945600000, 7.686811],[1372032000000, 7.686811],[1372118400000, 7.686811],[1372204800000, 7.623824],[1372291200000, 7.626993],[1372377600000, 7.659738],[1372464000000, 7.659738],[1372550400000, 7.659738]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });