$(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: [[1383264000000,12.8243],[1383350400000,null],[1383436800000,12.7542],[1383523200000,12.7542],[1383609600000,12.7665],[1383696000000,12.8356],[1383782400000,12.8575],[1383868800000,12.8382],[1383955200000,12.8529],[1384041600000,12.8529],[1384128000000,12.8529],[1384214400000,12.7739],[1384300800000,12.7101],[1384387200000,12.7665],[1384473600000,12.8285],[1384560000000,12.843],[1384646400000,12.843],[1384732800000,12.843],[1384819200000,12.8805],[1384905600000,12.8708],[1384992000000,12.9077],[1385078400000,12.896],[1385164800000,12.9494],[1385251200000,12.9494],[1385337600000,12.9494],[1385424000000,12.9393],[1385510400000,12.9168],[1385596800000,13.0295],[1385683200000,13.0554],[1385769600000,13.0643]], 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: [[1383264000000, 12.824337],[1383264000000, 12.824337],[1383436800000, 12.754235],[1383523200000, 12.754235],[1383609600000, 12.766492],[1383696000000, 12.835599],[1383782400000, 12.857477],[1383868800000, 12.838174],[1383955200000, 12.852916],[1384041600000, 12.852916],[1384128000000, 12.852916],[1384214400000, 12.773922],[1384300800000, 12.710072],[1384387200000, 12.766531],[1384473600000, 12.828519],[1384560000000, 12.842996],[1384646400000, 12.842996],[1384732800000, 12.842996],[1384819200000, 12.880470],[1384905600000, 12.870779],[1384992000000, 12.907695],[1385078400000, 12.896011],[1385164800000, 12.949350],[1385251200000, 12.949350],[1385337600000, 12.949350],[1385424000000, 12.939315],[1385510400000, 12.916757],[1385596800000, 13.029534],[1385683200000, 13.055441],[1385769600000, 13.064272]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });