$(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: [[1049155200000,5.81194],[1049241600000,5.8098],[1049328000000,5.70898],[1049414400000,5.71858],[1049500800000,5.71858],[1049587200000,5.71858],[1049673600000,5.71858],[1049760000000,5.68615],[1049846400000,5.72978],[1049932800000,5.76339],[1050019200000,5.72605],[1050105600000,5.72605],[1050192000000,5.72605],[1050278400000,5.72712],[1050364800000,5.75219],[1050451200000,5.75219],[1050537600000,5.77992],[1050624000000,5.82462],[1050710400000,5.82462],[1050796800000,5.82462],[1050883200000,5.82462],[1050969600000,5.85182],[1051056000000,5.85182],[1051142400000,5.83731],[1051228800000,5.85278],[1051315200000,5.85278],[1051401600000,5.85278],[1051488000000,5.85278],[1051574400000,5.85278],[1051660800000,5.93683]], 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: [[1049155200000, 5.811940],[1049155200000, 5.811940],[1049241600000, 5.809800],[1049328000000, 5.708980],[1049414400000, 5.718580],[1049500800000, 5.718580],[1049587200000, 5.718580],[1049673600000, 5.718580],[1049760000000, 5.686150],[1049846400000, 5.729780],[1049932800000, 5.763390],[1050019200000, 5.726050],[1050105600000, 5.726050],[1050192000000, 5.726050],[1050278400000, 5.727120],[1050364800000, 5.752190],[1050451200000, 5.752190],[1050537600000, 5.779920],[1050624000000, 5.824620],[1050710400000, 5.824620],[1050796800000, 5.824620],[1050883200000, 5.824620],[1050969600000, 5.851820],[1051056000000, 5.851820],[1051142400000, 5.837310],[1051228800000, 5.852780],[1051315200000, 5.852780],[1051401600000, 5.852780],[1051488000000, 5.852780],[1051574400000, 5.852780],[1051660800000, 5.936830]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });