$(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: [[1020211200000,4.79856],[1020297600000,4.79856],[1020384000000,4.79856],[1020470400000,4.79856],[1020556800000,4.79856],[1020643200000,4.79856],[1020729600000,4.79856],[1020816000000,4.84118],[1020902400000,4.84118],[1020988800000,4.85716],[1021075200000,4.85716],[1021161600000,4.85716],[1021248000000,4.85716],[1021334400000,4.82733],[1021420800000,4.82733],[1021507200000,4.86127],[1021593600000,4.87664],[1021680000000,4.87664],[1021766400000,4.87664],[1021852800000,4.87664],[1021939200000,4.90329],[1022025600000,4.90915],[1022112000000,4.93447],[1022198400000,4.8961],[1022284800000,4.8961],[1022371200000,4.8961],[1022457600000,4.8961],[1022544000000,4.89717],[1022630400000,4.96709],[1022716800000,4.96709],[1022803200000,5.0029]], 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, 4.798560],[1020211200000, 4.798560],[1020297600000, 4.798560],[1020384000000, 4.798560],[1020470400000, 4.798560],[1020556800000, 4.798560],[1020643200000, 4.798560],[1020729600000, 4.798560],[1020816000000, 4.841180],[1020902400000, 4.841180],[1020988800000, 4.857160],[1021075200000, 4.857160],[1021161600000, 4.857160],[1021248000000, 4.857160],[1021334400000, 4.827330],[1021420800000, 4.827330],[1021507200000, 4.861270],[1021593600000, 4.876640],[1021680000000, 4.876640],[1021766400000, 4.876640],[1021852800000, 4.876640],[1021939200000, 4.903290],[1022025600000, 4.909150],[1022112000000, 4.934470],[1022198400000, 4.896100],[1022284800000, 4.896100],[1022371200000, 4.896100],[1022457600000, 4.896100],[1022544000000, 4.897170],[1022630400000, 4.967090],[1022716800000, 4.967090],[1022803200000, 5.002900]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });