$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1177977600000,10.0985],[1178064000000,10.0985],[1178150400000,10.0985],[1178236800000,10.0682],[1178323200000,10.0297],[1178409600000,10.0297],[1178496000000,10.0297],[1178582400000,10.0771],[1178668800000,10.0644],[1178755200000,10.0644],[1178841600000,10.0355],[1178928000000,9.99623],[1179014400000,9.99623],[1179100800000,9.99623],[1179187200000,9.99817],[1179273600000,9.98275],[1179360000000,10.0093],[1179446400000,9.98111],[1179532800000,9.95158],[1179619200000,9.95158],[1179705600000,9.95158],[1179792000000,9.94539],[1179878400000,9.96593],[1179964800000,10.0272],[1180051200000,10.0358],[1180137600000,10.0188],[1180224000000,10.0188],[1180310400000,10.0188],[1180396800000,10.0188],[1180483200000,10.0354],[1180569600000,9.97366]], 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: [[1177977600000, 10.098520],[1177977600000, 10.098520],[1178064000000, 10.098520],[1178150400000, 10.098520],[1178236800000, 10.068197],[1178323200000, 10.029738],[1178409600000, 10.029738],[1178496000000, 10.029738],[1178582400000, 10.077056],[1178668800000, 10.064369],[1178755200000, 10.064369],[1178841600000, 10.035456],[1178928000000, 9.996228],[1179014400000, 9.996228],[1179100800000, 9.996228],[1179187200000, 9.998166],[1179273600000, 9.982755],[1179360000000, 10.009301],[1179446400000, 9.981107],[1179532800000, 9.951579],[1179619200000, 9.951579],[1179705600000, 9.951579],[1179792000000, 9.945389],[1179878400000, 9.965926],[1179964800000, 10.027156],[1180051200000, 10.035821],[1180137600000, 10.018753],[1180224000000, 10.018753],[1180310400000, 10.018753],[1180396800000, 10.018753],[1180483200000, 10.035371],[1180569600000, 9.973657]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });