$(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: [[1280620800000,2.97805],[1280707200000,2.97805],[1280793600000,2.98815],[1280880000000,3.02175],[1280966400000,3.01813],[1281052800000,3.01302],[1281139200000,3.01093],[1281225600000,null],[1281312000000,3.01093],[1281398400000,3.02845],[1281484800000,3.00102],[1281571200000,2.97429],[1281657600000,2.92265],[1281744000000,2.9247],[1281830400000,2.9247],[1281916800000,2.9247],[1282003200000,2.92984],[1282089600000,2.93864],[1282176000000,2.94321],[1282262400000,2.93327],[1282348800000,2.9047],[1282435200000,null],[1282521600000,null],[1282608000000,2.90459],[1282694400000,2.90459],[1282780800000,2.8822],[1282867200000,2.90048],[1282953600000,2.90395],[1283040000000,2.90395],[1283126400000,2.90395],[1283212800000,2.90064]], 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: [[1280620800000, 2.978050],[1280620800000, 2.978050],[1280707200000, 2.978050],[1280793600000, 2.988147],[1280880000000, 3.021746],[1280966400000, 3.018126],[1281052800000, 3.013022],[1281139200000, 3.010927],[1281312000000, 3.010927],[1281398400000, 3.028446],[1281484800000, 3.001024],[1281571200000, 2.974289],[1281657600000, 2.922645],[1281744000000, 2.924702],[1281830400000, 2.924702],[1281916800000, 2.924702],[1282003200000, 2.929835],[1282089600000, 2.938641],[1282176000000, 2.943211],[1282262400000, 2.933268],[1282348800000, 2.904704],[1282608000000, 2.904593],[1282694400000, 2.904593],[1282780800000, 2.882199],[1282867200000, 2.900480],[1282953600000, 2.903946],[1283040000000, 2.903946],[1283126400000, 2.903946],[1283212800000, 2.900645]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });