$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1183248000000,4.10786],[1183334400000,4.10786],[1183420800000,4.16127],[1183507200000,4.15015],[1183593600000,4.15333],[1183680000000,4.1613],[1183766400000,4.13887],[1183852800000,4.13887],[1183939200000,4.13887],[1184025600000,4.14824],[1184112000000,4.16923],[1184198400000,4.20034],[1184284800000,4.20112],[1184371200000,4.19803],[1184457600000,4.19803],[1184544000000,4.19803],[1184630400000,4.20355],[1184716800000,4.20101],[1184803200000,4.19889],[1184889600000,4.20808],[1184976000000,4.19405],[1185062400000,4.19405],[1185148800000,4.19405],[1185235200000,4.19624],[1185321600000,4.19686],[1185408000000,4.1658],[1185494400000,4.1727],[1185580800000,4.17171],[1185667200000,4.17171],[1185753600000,4.17171]], 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, 4.107863],[1183248000000, 4.107863],[1183334400000, 4.107863],[1183420800000, 4.161273],[1183507200000, 4.150154],[1183593600000, 4.153334],[1183680000000, 4.161300],[1183766400000, 4.138875],[1183852800000, 4.138875],[1183939200000, 4.138875],[1184025600000, 4.148236],[1184112000000, 4.169232],[1184198400000, 4.200342],[1184284800000, 4.201122],[1184371200000, 4.198028],[1184457600000, 4.198028],[1184544000000, 4.198028],[1184630400000, 4.203555],[1184716800000, 4.201012],[1184803200000, 4.198887],[1184889600000, 4.208080],[1184976000000, 4.194052],[1185062400000, 4.194052],[1185148800000, 4.194052],[1185235200000, 4.196239],[1185321600000, 4.196855],[1185408000000, 4.165795],[1185494400000, 4.172704],[1185580800000, 4.171713],[1185667200000, 4.171713],[1185753600000, 4.171713]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });