$(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: [[1375315200000,12.1473],[1375401600000,12.1716],[1375488000000,12.1113],[1375574400000,null],[1375660800000,12.1113],[1375747200000,12.2607],[1375833600000,12.2607],[1375920000000,12.3724],[1376006400000,12.3882],[1376092800000,12.4096],[1376179200000,12.4096],[1376265600000,12.4096],[1376352000000,12.3628],[1376438400000,12.3584],[1376524800000,12.389],[1376611200000,12.4555],[1376697600000,12.4965],[1376784000000,12.4965],[1376870400000,12.4965],[1376956800000,12.5054],[1377043200000,12.521],[1377129600000,12.5422],[1377216000000,12.4543],[1377302400000,12.4254],[1377388800000,12.4254],[1377475200000,12.4254],[1377561600000,12.4254],[1377648000000,12.3836],[1377734400000,12.359],[1377820800000,12.4032],[1377907200000,12.388]], 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: [[1375315200000, 12.147347],[1375315200000, 12.147347],[1375401600000, 12.171577],[1375488000000, 12.111273],[1375660800000, 12.111273],[1375747200000, 12.260712],[1375833600000, 12.260703],[1375920000000, 12.372388],[1376006400000, 12.388223],[1376092800000, 12.409635],[1376179200000, 12.409635],[1376265600000, 12.409635],[1376352000000, 12.362805],[1376438400000, 12.358440],[1376524800000, 12.388963],[1376611200000, 12.455516],[1376697600000, 12.496527],[1376784000000, 12.496527],[1376870400000, 12.496527],[1376956800000, 12.505404],[1377043200000, 12.521027],[1377129600000, 12.542155],[1377216000000, 12.454329],[1377302400000, 12.425389],[1377388800000, 12.425389],[1377475200000, 12.425389],[1377561600000, 12.425389],[1377648000000, 12.383626],[1377734400000, 12.358963],[1377820800000, 12.403221],[1377907200000, 12.388003]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });