$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1235865600000,2.81971],[1235952000000,2.81971],[1236038400000,2.809],[1236124800000,2.81324],[1236211200000,2.79986],[1236297600000,2.79986],[1236384000000,2.82283],[1236470400000,2.82283],[1236556800000,2.82283],[1236643200000,2.82283],[1236729600000,null],[1236816000000,2.85137],[1236902400000,2.85048],[1236988800000,2.87791],[1237075200000,2.87791],[1237161600000,2.87791],[1237248000000,2.90846],[1237334400000,2.88616],[1237420800000,2.92809],[1237507200000,3.04873],[1237593600000,3.02153],[1237680000000,3.02153],[1237766400000,3.02153],[1237852800000,3.02353],[1237939200000,3.01216],[1238025600000,3.00926],[1238112000000,3.03446],[1238198400000,2.96488],[1238284800000,2.96488],[1238371200000,2.96488],[1238457600000,2.94214]], 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: [[1235865600000, 2.819706],[1235865600000, 2.819706],[1235952000000, 2.819706],[1236038400000, 2.809001],[1236124800000, 2.813239],[1236211200000, 2.799858],[1236297600000, 2.799858],[1236384000000, 2.822828],[1236470400000, 2.822828],[1236556800000, 2.822828],[1236643200000, 2.822828],[1236816000000, 2.851373],[1236902400000, 2.850481],[1236988800000, 2.877911],[1237075200000, 2.877911],[1237161600000, 2.877911],[1237248000000, 2.908463],[1237334400000, 2.886162],[1237420800000, 2.928087],[1237507200000, 3.048734],[1237593600000, 3.021527],[1237680000000, 3.021527],[1237766400000, 3.021527],[1237852800000, 3.023535],[1237939200000, 3.012161],[1238025600000, 3.009262],[1238112000000, 3.034462],[1238198400000, 2.964884],[1238284800000, 2.964884],[1238371200000, 2.964884],[1238457600000, 2.942137]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });