$(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: [[1183248000000,0.19538],[1183334400000,0.19538],[1183420800000,0.19628],[1183507200000,0.19682],[1183593600000,0.19678],[1183680000000,0.1967],[1183766400000,0.19627],[1183852800000,0.19627],[1183939200000,0.19627],[1184025600000,0.19649],[1184112000000,0.19682],[1184198400000,0.19776],[1184284800000,0.19791],[1184371200000,0.19809],[1184457600000,0.19809],[1184544000000,0.19809],[1184630400000,0.19825],[1184716800000,0.19838],[1184803200000,0.19851],[1184889600000,0.19865],[1184976000000,0.19871],[1185062400000,0.19871],[1185148800000,0.19871],[1185235200000,0.19893],[1185321600000,0.19885],[1185408000000,0.19872],[1185494400000,0.19805],[1185580800000,0.19807],[1185667200000,0.19807],[1185753600000,0.19807]], 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: [[1183248000000, 0.195380],[1183248000000, 0.195380],[1183334400000, 0.195380],[1183420800000, 0.196280],[1183507200000, 0.196820],[1183593600000, 0.196780],[1183680000000, 0.196700],[1183766400000, 0.196270],[1183852800000, 0.196270],[1183939200000, 0.196270],[1184025600000, 0.196490],[1184112000000, 0.196820],[1184198400000, 0.197760],[1184284800000, 0.197910],[1184371200000, 0.198090],[1184457600000, 0.198090],[1184544000000, 0.198090],[1184630400000, 0.198250],[1184716800000, 0.198380],[1184803200000, 0.198510],[1184889600000, 0.198650],[1184976000000, 0.198710],[1185062400000, 0.198710],[1185148800000, 0.198710],[1185235200000, 0.198930],[1185321600000, 0.198850],[1185408000000, 0.198720],[1185494400000, 0.198050],[1185580800000, 0.198070],[1185667200000, 0.198070],[1185753600000, 0.198070]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });