$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1072915200000,0.18101],[1073001600000,0.18101],[1073088000000,0.18101],[1073174400000,0.18101],[1073260800000,0.18101],[1073347200000,0.1823],[1073433600000,0.1823],[1073520000000,0.1823],[1073606400000,0.18389],[1073692800000,0.18389],[1073779200000,0.18389],[1073865600000,0.18389],[1073952000000,0.18466],[1074038400000,0.18457],[1074124800000,0.18467],[1074211200000,0.1846],[1074297600000,0.1846],[1074384000000,0.1846],[1074470400000,0.1846],[1074556800000,0.18513],[1074643200000,0.1852],[1074729600000,0.18509],[1074816000000,0.18672],[1074902400000,0.18672],[1074988800000,0.18672],[1075075200000,0.18672],[1075161600000,0.18708],[1075248000000,0.18696],[1075334400000,0.18715],[1075420800000,0.18711],[1075507200000,0.1871]], 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, 0.181010],[1072915200000, 0.181010],[1073001600000, 0.181010],[1073088000000, 0.181010],[1073174400000, 0.181010],[1073260800000, 0.181010],[1073347200000, 0.182300],[1073433600000, 0.182300],[1073520000000, 0.182300],[1073606400000, 0.183890],[1073692800000, 0.183890],[1073779200000, 0.183890],[1073865600000, 0.183890],[1073952000000, 0.184660],[1074038400000, 0.184570],[1074124800000, 0.184670],[1074211200000, 0.184600],[1074297600000, 0.184600],[1074384000000, 0.184600],[1074470400000, 0.184600],[1074556800000, 0.185130],[1074643200000, 0.185200],[1074729600000, 0.185090],[1074816000000, 0.186720],[1074902400000, 0.186720],[1074988800000, 0.186720],[1075075200000, 0.186720],[1075161600000, 0.187080],[1075248000000, 0.186960],[1075334400000, 0.187150],[1075420800000, 0.187110],[1075507200000, 0.187100]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });