$(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: [[1072915200000,5.3315],[1073001600000,5.3315],[1073088000000,5.3315],[1073174400000,5.3315],[1073260800000,5.3315],[1073347200000,5.3313],[1073433600000,5.3313],[1073520000000,5.3313],[1073606400000,5.3312],[1073692800000,5.3312],[1073779200000,5.3312],[1073865600000,5.3312],[1073952000000,5.3312],[1074038400000,5.3312],[1074124800000,5.3312],[1074211200000,5.3312],[1074297600000,5.3311],[1074384000000,5.3311],[1074470400000,5.3311],[1074556800000,5.3311],[1074643200000,5.3311],[1074729600000,5.3311],[1074816000000,5.3311],[1074902400000,5.3311],[1074988800000,5.3311],[1075075200000,5.3311],[1075161600000,5.3311],[1075248000000,5.3311],[1075334400000,5.3311],[1075420800000,5.3311],[1075507200000,5.3311]], 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: [[1072915200000, 5.331500],[1072915200000, 5.331500],[1073001600000, 5.331500],[1073088000000, 5.331500],[1073174400000, 5.331500],[1073260800000, 5.331500],[1073347200000, 5.331300],[1073433600000, 5.331300],[1073520000000, 5.331300],[1073606400000, 5.331200],[1073692800000, 5.331200],[1073779200000, 5.331200],[1073865600000, 5.331200],[1073952000000, 5.331200],[1074038400000, 5.331200],[1074124800000, 5.331200],[1074211200000, 5.331200],[1074297600000, 5.331100],[1074384000000, 5.331100],[1074470400000, 5.331100],[1074556800000, 5.331100],[1074643200000, 5.331100],[1074729600000, 5.331100],[1074816000000, 5.331100],[1074902400000, 5.331100],[1074988800000, 5.331100],[1075075200000, 5.331100],[1075161600000, 5.331100],[1075248000000, 5.331100],[1075334400000, 5.331100],[1075420800000, 5.331100],[1075507200000, 5.331100]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });