$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1020211200000,5.327],[1020297600000,5.327],[1020384000000,5.327],[1020470400000,5.327],[1020556800000,5.327],[1020643200000,5.327],[1020729600000,5.327],[1020816000000,5.327],[1020902400000,5.327],[1020988800000,5.327],[1021075200000,5.327],[1021161600000,5.327],[1021248000000,5.327],[1021334400000,5.327],[1021420800000,5.327],[1021507200000,5.328],[1021593600000,5.3285],[1021680000000,5.3285],[1021766400000,5.3285],[1021852800000,5.3285],[1021939200000,5.3285],[1022025600000,5.3285],[1022112000000,5.3288],[1022198400000,5.3288],[1022284800000,5.3288],[1022371200000,5.3288],[1022457600000,5.3288],[1022544000000,5.3288],[1022630400000,5.3295],[1022716800000,5.3295],[1022803200000,5.3296]], 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: [[1020211200000, 5.327000],[1020211200000, 5.327000],[1020297600000, 5.327000],[1020384000000, 5.327000],[1020470400000, 5.327000],[1020556800000, 5.327000],[1020643200000, 5.327000],[1020729600000, 5.327000],[1020816000000, 5.327000],[1020902400000, 5.327000],[1020988800000, 5.327000],[1021075200000, 5.327000],[1021161600000, 5.327000],[1021248000000, 5.327000],[1021334400000, 5.327000],[1021420800000, 5.327000],[1021507200000, 5.328000],[1021593600000, 5.328500],[1021680000000, 5.328500],[1021766400000, 5.328500],[1021852800000, 5.328500],[1021939200000, 5.328500],[1022025600000, 5.328500],[1022112000000, 5.328800],[1022198400000, 5.328800],[1022284800000, 5.328800],[1022371200000, 5.328800],[1022457600000, 5.328800],[1022544000000, 5.328800],[1022630400000, 5.329500],[1022716800000, 5.329500],[1022803200000, 5.329600]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });