$(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: [[1095120000000,1.88532],[1095206400000,1.8817],[1095292800000,1.8817],[1095379200000,1.86806],[1095465600000,1.87412],[1095552000000,1.87412],[1095638400000,1.87412],[1095724800000,1.86897],[1095811200000,1.87285],[1095897600000,1.89488],[1095984000000,1.88743],[1096070400000,1.88686],[1096156800000,1.88686],[1096243200000,1.88686],[1096329600000,1.88447],[1096416000000,1.89051],[1096502400000,1.89365],[1096588800000,1.89571],[1096675200000,null],[1096761600000,null],[1096848000000,1.909],[1096934400000,1.89995],[1097020800000,1.88781],[1097107200000,1.89107],[1097193600000,1.89111],[1097280000000,1.89111],[1097366400000,1.89111],[1097452800000,1.89573],[1097539200000,1.90772],[1097625600000,1.89526],[1097712000000,1.89488],[1097798400000,1.90062],[1097884800000,null],[1097971200000,1.90354],[1098057600000,1.90354],[1098144000000,1.919],[1098230400000,1.91512],[1098316800000,1.92394],[1098403200000,1.93512],[1098489600000,1.94178],[1098576000000,1.94178],[1098662400000,1.94178],[1098748800000,1.96036],[1098835200000,1.96865],[1098921600000,1.96152],[1099008000000,1.95711],[1099094400000,1.95711],[1099180800000,1.95711],[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],[1101859200000,2.03505],[1101945600000,2.0473],[1102032000000,2.05523],[1102118400000,2.03873],[1102204800000,2.03873],[1102291200000,2.03873],[1102377600000,2.0629],[1102464000000,2.06419],[1102550400000,2.05027],[1102636800000,2.04987],[1102723200000,null],[1102809600000,null],[1102896000000,null],[1102982400000,2.03904],[1103068800000,2.04573],[1103155200000,2.04778],[1103241600000,2.0625],[1103328000000,2.03822],[1103414400000,2.03822],[1103500800000,2.03822],[1103587200000,2.04889],[1103673600000,2.0542],[1103760000000,2.05611],[1103846400000,2.06596],[1103932800000,2.0759],[1104019200000,2.0759],[1104105600000,2.0759],[1104192000000,2.07981],[1104278400000,2.09252],[1104364800000,2.09434]], 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: [[1095206400000, 1.881911],[1095206400000, 1.881911],[1097798400000, 1.919234],[1100476800000, 1.995408],[1103068800000, 2.057270]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });