$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1262736000000,11.5319],[1262822400000,11.4585],[1262908800000,11.4585],[1262995200000,11.4585],[1263081600000,11.4585],[1263168000000,11.4585],[1263254400000,11.6086],[1263340800000,11.5825],[1263427200000,11.6562],[1263513600000,11.5923],[1263600000000,11.5009],[1263686400000,11.5009],[1263772800000,11.5009],[1263859200000,11.4969],[1263945600000,11.4311],[1264032000000,11.3134],[1264118400000,11.2653],[1264204800000,11.3199],[1264291200000,11.3199],[1264377600000,11.3199],[1264464000000,11.3321],[1264550400000,11.2748],[1264636800000,11.261],[1264723200000,11.2009],[1264809600000,11.1714],[1264896000000,11.1714]], 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: [[1262736000000, 11.531937],[1262736000000, 11.531937],[1262822400000, 11.458475],[1262908800000, 11.458475],[1262995200000, 11.458475],[1263081600000, 11.458475],[1263168000000, 11.458475],[1263254400000, 11.608598],[1263340800000, 11.582483],[1263427200000, 11.656225],[1263513600000, 11.592277],[1263600000000, 11.500925],[1263686400000, 11.500925],[1263772800000, 11.500925],[1263859200000, 11.496924],[1263945600000, 11.431053],[1264032000000, 11.313373],[1264118400000, 11.265264],[1264204800000, 11.319873],[1264291200000, 11.319873],[1264377600000, 11.319873],[1264464000000, 11.332121],[1264550400000, 11.274761],[1264636800000, 11.260977],[1264723200000, 11.200880],[1264809600000, 11.171403],[1264896000000, 11.171403]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });