$(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: [[1241136000000,11.442],[1241222400000,11.442],[1241308800000,null],[1241395200000,11.442],[1241481600000,11.442],[1241568000000,11.6495],[1241654400000,11.5765],[1241740800000,11.6541],[1241827200000,11.5664],[1241913600000,11.5664],[1242000000000,11.5664],[1242086400000,11.5664],[1242172800000,11.7249],[1242259200000,11.5446],[1242345600000,11.5129],[1242432000000,11.5705],[1242518400000,11.5705],[1242604800000,11.5705],[1242691200000,11.6536],[1242777600000,11.796],[1242864000000,11.8133],[1242950400000,11.9319],[1243036800000,12.1183],[1243123200000,12.1183],[1243209600000,12.1183],[1243296000000,12.1206],[1243382400000,12.0965],[1243468800000,12.1654],[1243555200000,12.134],[1243641600000,12.3045],[1243728000000,12.3045]], 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: [[1241136000000, 11.442044],[1241136000000, 11.442044],[1241222400000, 11.442044],[1241395200000, 11.442044],[1241481600000, 11.442044],[1241568000000, 11.649520],[1241654400000, 11.576504],[1241740800000, 11.654071],[1241827200000, 11.566421],[1241913600000, 11.566421],[1242000000000, 11.566421],[1242086400000, 11.566421],[1242172800000, 11.724894],[1242259200000, 11.544577],[1242345600000, 11.512920],[1242432000000, 11.570528],[1242518400000, 11.570528],[1242604800000, 11.570528],[1242691200000, 11.653617],[1242777600000, 11.796035],[1242864000000, 11.813325],[1242950400000, 11.931890],[1243036800000, 12.118295],[1243123200000, 12.118295],[1243209600000, 12.118295],[1243296000000, 12.120568],[1243382400000, 12.096467],[1243468800000, 12.165371],[1243555200000, 12.134034],[1243641600000, 12.304458],[1243728000000, 12.304458]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });