$(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: [[1228089600000,0.24914],[1228176000000,0.25561],[1228262400000,0.25838],[1228348800000,0.26438],[1228435200000,0.26331],[1228521600000,0.26199],[1228608000000,0.26199],[1228694400000,0.26199],[1228780800000,0.26421],[1228867200000,0.26533],[1228953600000,0.26821],[1229040000000,0.26805],[1229126400000,0.26874],[1229212800000,0.26874],[1229299200000,0.26874],[1229385600000,0.27516],[1229472000000,0.28036],[1229558400000,0.28579],[1229644800000,0.28537],[1229731200000,0.28407],[1229817600000,0.28407],[1229904000000,0.28407],[1229990400000,0.27872],[1230076800000,0.27492],[1230163200000,0.27226],[1230249600000,0.27168],[1230336000000,0.26546],[1230422400000,0.26546],[1230508800000,0.26546],[1230595200000,0.26343],[1230681600000,0.26208]], 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: [[1228089600000, 0.249140],[1228089600000, 0.249140],[1228176000000, 0.255610],[1228262400000, 0.258380],[1228348800000, 0.264380],[1228435200000, 0.263310],[1228521600000, 0.261990],[1228608000000, 0.261990],[1228694400000, 0.261990],[1228780800000, 0.264210],[1228867200000, 0.265330],[1228953600000, 0.268210],[1229040000000, 0.268050],[1229126400000, 0.268740],[1229212800000, 0.268740],[1229299200000, 0.268740],[1229385600000, 0.275160],[1229472000000, 0.280360],[1229558400000, 0.285790],[1229644800000, 0.285370],[1229731200000, 0.284070],[1229817600000, 0.284070],[1229904000000, 0.284070],[1229990400000, 0.278720],[1230076800000, 0.274920],[1230163200000, 0.272260],[1230249600000, 0.271680],[1230336000000, 0.265460],[1230422400000, 0.265460],[1230508800000, 0.265460],[1230595200000, 0.263430],[1230681600000, 0.262080]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });