$(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: [[1275350400000,11.4931],[1275436800000,11.5406],[1275523200000,11.6186],[1275609600000,11.6343],[1275696000000,11.5452],[1275782400000,11.5452],[1275868800000,11.5452],[1275955200000,11.4877],[1276041600000,11.4212],[1276128000000,11.5143],[1276214400000,11.5559],[1276300800000,11.5754],[1276387200000,11.5754],[1276473600000,11.5754],[1276560000000,11.6694],[1276646400000,11.6601],[1276732800000,11.6924],[1276819200000,11.7165],[1276905600000,11.7131],[1276992000000,11.7131],[1277078400000,11.7131],[1277164800000,11.7518],[1277251200000,11.6266],[1277337600000,11.795],[1277424000000,11.8491],[1277510400000,11.8035],[1277596800000,11.8035],[1277683200000,11.8035],[1277769600000,11.8035],[1277856000000,11.9015]], 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: [[1275350400000, 11.493137],[1275350400000, 11.493137],[1275436800000, 11.540624],[1275523200000, 11.618571],[1275609600000, 11.634268],[1275696000000, 11.545215],[1275782400000, 11.545215],[1275868800000, 11.545215],[1275955200000, 11.487659],[1276041600000, 11.421228],[1276128000000, 11.514273],[1276214400000, 11.555873],[1276300800000, 11.575414],[1276387200000, 11.575414],[1276473600000, 11.575414],[1276560000000, 11.669428],[1276646400000, 11.660128],[1276732800000, 11.692444],[1276819200000, 11.716493],[1276905600000, 11.713058],[1276992000000, 11.713058],[1277078400000, 11.713058],[1277164800000, 11.751766],[1277251200000, 11.626581],[1277337600000, 11.795012],[1277424000000, 11.849122],[1277510400000, 11.803494],[1277596800000, 11.803494],[1277683200000, 11.803494],[1277769600000, 11.803494],[1277856000000, 11.901479]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });