$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1183248000000,6.78619],[1183334400000,6.78619],[1183420800000,6.86194],[1183507200000,6.8685],[1183593600000,6.87709],[1183680000000,6.8882],[1183766400000,6.86598],[1183852800000,6.86598],[1183939200000,6.86598],[1184025600000,6.87861],[1184112000000,6.90133],[1184198400000,6.94527],[1184284800000,6.96294],[1184371200000,6.95991],[1184457600000,6.95991],[1184544000000,6.95991],[1184630400000,6.95941],[1184716800000,6.95435],[1184803200000,6.9584],[1184889600000,6.9791],[1184976000000,6.97051],[1185062400000,6.97051],[1185148800000,6.97051],[1185235200000,6.97961],[1185321600000,6.98567],[1185408000000,6.94022],[1185494400000,6.92961],[1185580800000,6.89375],[1185667200000,6.89375],[1185753600000,6.89375]], 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, 6.786190],[1183248000000, 6.786190],[1183334400000, 6.786190],[1183420800000, 6.861940],[1183507200000, 6.868505],[1183593600000, 6.877090],[1183680000000, 6.888200],[1183766400000, 6.865980],[1183852800000, 6.865980],[1183939200000, 6.865980],[1184025600000, 6.878605],[1184112000000, 6.901330],[1184198400000, 6.945265],[1184284800000, 6.962940],[1184371200000, 6.959910],[1184457600000, 6.959910],[1184544000000, 6.959910],[1184630400000, 6.959405],[1184716800000, 6.954355],[1184803200000, 6.958395],[1184889600000, 6.979100],[1184976000000, 6.970515],[1185062400000, 6.970515],[1185148800000, 6.970515],[1185235200000, 6.979605],[1185321600000, 6.985665],[1185408000000, 6.940215],[1185494400000, 6.929610],[1185580800000, 6.893755],[1185667200000, 6.893755],[1185753600000, 6.893755]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });