$(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: [[1388534400000,11.0415],[1388620800000,11.0415],[1388707200000,11.0415],[1388793600000,10.8977],[1388880000000,10.8977],[1388966400000,10.8977],[1389052800000,10.8977],[1389139200000,10.8977],[1389225600000,10.8657],[1389312000000,10.8801],[1389398400000,10.8601],[1389484800000,10.8601],[1389571200000,10.8601],[1389657600000,10.9136],[1389744000000,10.924],[1389830400000,10.8753],[1389916800000,10.8681],[1390003200000,10.8577],[1390089600000,10.8577],[1390176000000,10.8577],[1390262400000,10.8433],[1390348800000,10.8113],[1390435200000,10.8433],[1390521600000,10.9017],[1390608000000,10.94],[1390694400000,10.94],[1390780800000,10.94],[1390867200000,10.9168],[1390953600000,10.9096],[1391040000000,10.8769],[1391126400000,10.8497]], 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: [[1388534400000, 11.041530],[1388534400000, 11.041530],[1388620800000, 11.041530],[1388707200000, 11.041530],[1388793600000, 10.897656],[1388880000000, 10.897656],[1388966400000, 10.897656],[1389052800000, 10.897656],[1389139200000, 10.897656],[1389225600000, 10.865684],[1389312000000, 10.880072],[1389398400000, 10.860089],[1389484800000, 10.860089],[1389571200000, 10.860089],[1389657600000, 10.913642],[1389744000000, 10.924033],[1389830400000, 10.875276],[1389916800000, 10.868082],[1390003200000, 10.857691],[1390089600000, 10.857691],[1390176000000, 10.857691],[1390262400000, 10.843304],[1390348800000, 10.811332],[1390435200000, 10.843304],[1390521600000, 10.901653],[1390608000000, 10.940019],[1390694400000, 10.940019],[1390780800000, 10.940019],[1390867200000, 10.916839],[1390953600000, 10.909646],[1391040000000, 10.876874],[1391126400000, 10.849698]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });