$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1383264000000,12.2936],[1383350400000,null],[1383436800000,12.2433],[1383523200000,12.2433],[1383609600000,12.2395],[1383696000000,12.2452],[1383782400000,12.2507],[1383868800000,12.2486],[1383955200000,12.224],[1384041600000,12.224],[1384128000000,12.224],[1384214400000,12.1993],[1384300800000,12.1795],[1384387200000,12.2003],[1384473600000,12.2059],[1384560000000,12.2123],[1384646400000,12.2123],[1384732800000,12.2123],[1384819200000,12.2371],[1384905600000,12.2322],[1384992000000,12.2491],[1385078400000,12.2189],[1385164800000,12.2369],[1385251200000,12.2369],[1385337600000,12.2369],[1385424000000,12.237],[1385510400000,12.2454],[1385596800000,12.2709],[1385683200000,12.2709],[1385769600000,12.2709]], 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.293557],[1383264000000, 12.293557],[1383436800000, 12.243260],[1383523200000, 12.243260],[1383609600000, 12.239510],[1383696000000, 12.245248],[1383782400000, 12.250747],[1383868800000, 12.248551],[1383955200000, 12.224030],[1384041600000, 12.224030],[1384128000000, 12.224030],[1384214400000, 12.199328],[1384300800000, 12.179513],[1384387200000, 12.200278],[1384473600000, 12.205905],[1384560000000, 12.212320],[1384646400000, 12.212320],[1384732800000, 12.212320],[1384819200000, 12.237074],[1384905600000, 12.232243],[1384992000000, 12.249058],[1385078400000, 12.218873],[1385164800000, 12.236924],[1385251200000, 12.236924],[1385337600000, 12.236924],[1385424000000, 12.236999],[1385510400000, 12.245361],[1385596800000, 12.270909],[1385683200000, 12.270909],[1385769600000, 12.270909]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });