$(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: [[1099267200000,1.95711],[1099353600000,1.9613],[1099440000000,1.95257],[1099526400000,1.95329],[1099612800000,null],[1099699200000,null],[1099785600000,null],[1099872000000,null],[1099958400000,null],[1100044800000,1.97886],[1100131200000,1.97886],[1100217600000,1.98055],[1100304000000,1.98719],[1100390400000,1.98719],[1100476800000,1.98719],[1100563200000,1.99684],[1100649600000,1.99092],[1100736000000,1.99549],[1100822400000,2.0062],[1100908800000,1.991],[1100995200000,1.991],[1101081600000,1.991],[1101168000000,2.00325],[1101254400000,1.99767],[1101340800000,2.01427],[1101427200000,2.02604],[1101513600000,2.04045],[1101600000000,2.04045],[1101686400000,2.04045],[1101772800000,2.03607]], 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: [[1099267200000, 1.957110],[1099267200000, 1.957110],[1099353600000, 1.961300],[1099440000000, 1.952570],[1099526400000, 1.953290],[1100044800000, 1.978855],[1100131200000, 1.978855],[1100217600000, 1.980554],[1100304000000, 1.987192],[1100390400000, 1.987192],[1100476800000, 1.987192],[1100563200000, 1.996839],[1100649600000, 1.990920],[1100736000000, 1.995487],[1100822400000, 2.006201],[1100908800000, 1.990995],[1100995200000, 1.990995],[1101081600000, 1.990995],[1101168000000, 2.003247],[1101254400000, 1.997666],[1101340800000, 2.014273],[1101427200000, 2.026040],[1101513600000, 2.040454],[1101600000000, 2.040454],[1101686400000, 2.040454],[1101772800000, 2.036069]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });