$(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: [[1136246400000,1.73498],[1136332800000,1.73498],[1136419200000,1.73498],[1136505600000,1.76876],[1136592000000,1.76876],[1136678400000,1.76876],[1136764800000,1.76876],[1136851200000,1.76876],[1136937600000,1.76364],[1137024000000,1.76382],[1137110400000,1.77635],[1137196800000,1.76555],[1137283200000,1.76555],[1137369600000,1.76555],[1137456000000,1.77723],[1137542400000,1.77492],[1137628800000,1.77299],[1137715200000,1.76759],[1137801600000,1.7666],[1137888000000,1.7666],[1137974400000,1.7666],[1138060800000,1.79059],[1138147200000,1.79715],[1138233600000,1.79505],[1138320000000,1.7939],[1138406400000,1.78527],[1138492800000,1.78527],[1138579200000,1.78527],[1138665600000,1.77069],[1138752000000,null],[1138838400000,null],[1138924800000,null],[1139011200000,null],[1139097600000,null],[1139184000000,1.75445],[1139270400000,1.75445],[1139356800000,1.75232],[1139443200000,1.75086],[1139529600000,1.75122],[1139616000000,1.75171],[1139702400000,1.75171],[1139788800000,1.75171],[1139875200000,1.74072],[1139961600000,1.74228],[1140048000000,1.74228],[1140134400000,1.74228],[1140220800000,1.74258],[1140307200000,1.74258],[1140393600000,1.74258],[1140480000000,1.74801],[1140566400000,1.74252],[1140652800000,1.74192],[1140739200000,1.74072],[1140825600000,1.74276],[1140912000000,1.74276],[1140998400000,1.74276],[1141084800000,1.73438],[1141171200000,1.73307],[1141257600000,1.74583],[1141344000000,1.74565],[1141430400000,1.75848],[1141516800000,1.75848],[1141603200000,1.75848],[1141689600000,1.76524],[1141776000000,1.74831],[1141862400000,1.74831],[1141948800000,1.74686],[1142035200000,1.74686],[1142121600000,1.74686],[1142208000000,1.74686],[1142294400000,1.74318],[1142380800000,1.75062],[1142467200000,1.75927],[1142553600000,1.76395],[1142640000000,1.77986],[1142726400000,1.77986],[1142812800000,1.77986],[1142899200000,1.78244],[1142985600000,1.77536],[1143072000000,1.7679],[1143158400000,1.76475],[1143244800000,1.75007],[1143331200000,1.75007],[1143417600000,1.75007],[1143504000000,1.76081],[1143590400000,1.7575],[1143676800000,1.75695],[1143763200000,1.76321],[1143849600000,1.77492],[1143936000000,1.77492],[1144022400000,1.77492],[1144108800000,1.76191],[1144195200000,1.76191],[1144281600000,1.79536],[1144368000000,1.79741],[1144454400000,1.78269],[1144540800000,1.78269],[1144627200000,1.78269],[1144713600000,1.76958],[1144800000000,1.77045],[1144886400000,1.77338],[1144972800000,1.76885],[1145059200000,1.76885],[1145145600000,1.76885],[1145232000000,1.76885],[1145318400000,1.76885],[1145404800000,1.79195],[1145491200000,1.8057],[1145577600000,1.8057],[1145664000000,1.80117],[1145750400000,1.80117],[1145836800000,1.80117],[1145923200000,1.80117],[1146009600000,1.81726],[1146096000000,1.81726],[1146182400000,1.81565],[1146268800000,1.83364],[1146355200000,1.83364],[1146441600000,1.83364],[1146528000000,1.83364],[1146614400000,1.83364],[1146700800000,1.84607],[1146787200000,1.84168],[1146873600000,1.85572],[1146960000000,1.85572],[1147046400000,1.85572],[1147132800000,1.85572],[1147219200000,1.85572],[1147305600000,1.86903],[1147392000000,1.85982],[1147478400000,1.88878],[1147564800000,1.88878],[1147651200000,1.88878],[1147737600000,1.87591],[1147824000000,1.87459],[1147910400000,1.8841],[1147996800000,1.86772],[1148083200000,1.86728],[1148169600000,1.86728],[1148256000000,1.86728],[1148342400000,1.86523],[1148428800000,1.8781],[1148515200000,1.87956],[1148601600000,1.86552],[1148688000000,1.87166],[1148774400000,1.87166],[1148860800000,1.87166],[1148947200000,1.86596],[1149033600000,1.87781],[1149120000000,1.88205],[1149206400000,1.86274],[1149292800000,1.8743],[1149379200000,1.8743],[1149465600000,1.8743],[1149552000000,1.89521],[1149638400000,1.87898],[1149724800000,1.8705],[1149811200000,1.8626],[1149897600000,1.85148],[1149984000000,1.85148],[1150070400000,1.85148],[1150156800000,1.85148],[1150243200000,1.83861],[1150329600000,1.83744],[1150416000000,1.84431],[1150502400000,1.85031],[1150588800000,1.85031],[1150675200000,1.85031],[1150761600000,1.84154],[1150848000000,1.83495],[1150934400000,1.84753],[1151020800000,1.84022],[1151107200000,1.82852],[1151193600000,1.82852],[1151280000000,1.82852],[1151366400000,1.83715],[1151452800000,1.83803],[1151539200000,1.83803],[1151625600000,1.83247],[1151712000000,1.85938],[1151798400000,1.85938],[1151884800000,1.85938],[1151971200000,1.87064],[1152057600000,1.87079],[1152144000000,1.87123],[1152230400000,1.8626],[1152316800000,1.86889],[1152403200000,1.86889],[1152489600000,1.86889],[1152576000000,1.86508],[1152662400000,1.86274],[1152748800000,1.8607],[1152835200000,1.85631],[1152921600000,1.85251],[1153008000000,1.85251],[1153094400000,1.85251],[1153180800000,1.83422],[1153267200000,1.83276],[1153353600000,1.82559],[1153440000000,1.84914],[1153526400000,1.85455],[1153612800000,1.85455],[1153699200000,1.85455],[1153785600000,1.84768],[1153872000000,1.84812],[1153958400000,1.84095],[1154044800000,1.86289],[1154131200000,1.85221],[1154217600000,1.85221],[1154304000000,1.85221],[1154390400000,1.86728],[1154476800000,1.86611],[1154563200000,1.87181],[1154649600000,1.86932],[1154736000000,1.87093],[1154822400000,1.87093],[1154908800000,1.87093],[1154995200000,1.87942],[1155081600000,1.87781],[1155168000000,1.88366],[1155254400000,1.88044],[1155340800000,1.86845],[1155427200000,1.86845],[1155513600000,1.86845],[1155600000000,1.86011],[1155686400000,1.86113],[1155772800000,1.87108],[1155859200000,1.88366],[1155945600000,1.8724],[1156032000000,1.8724],[1156118400000,1.8724],[1156204800000,1.88951],[1156291200000,1.87386],[1156377600000,1.87386],[1156464000000,1.87386],[1156550400000,1.87386],[1156636800000,1.87386],[1156723200000,1.87386],[1156809600000,1.8721],[1156896000000,1.87327],[1156982400000,1.87474],[1157068800000,1.87956],[1157155200000,1.87459],[1157241600000,1.87459],[1157328000000,1.87459],[1157414400000,1.87971],[1157500800000,1.87357],[1157587200000,1.87108],[1157673600000,1.86201],[1157760000000,1.85938],[1157846400000,1.85938],[1157932800000,1.85938],[1158019200000,1.85938],[1158105600000,1.85879],[1158192000000,1.85411],[1158278400000,1.86084],[1158364800000,1.85382],[1158451200000,1.85382],[1158537600000,1.85382],[1158624000000,1.85236],[1158710400000,1.85075],[1158796800000,1.85397],[1158883200000,1.86201],[1158969600000,1.87459],[1159056000000,1.87459],[1159142400000,1.87459],[1159228800000,1.86742],[1159315200000,1.85675],[1159401600000,1.85514],[1159488000000,1.85938],[1159574400000,1.85163],[1159660800000,1.85163],[1159747200000,1.85163],[1159833600000,1.85528],[1159920000000,1.86289],[1160006400000,1.85514],[1160092800000,1.86055],[1160179200000,1.85221],[1160265600000,1.85221],[1160352000000,1.85221],[1160438400000,1.84329],[1160524800000,1.83378],[1160611200000,1.83451],[1160697600000,1.83276],[1160784000000,1.83554],[1160870400000,1.83554],[1160956800000,1.83554],[1161043200000,1.83042],[1161129600000,1.83174],[1161216000000,1.83451],[1161302400000,1.83715],[1161388800000,1.84549],[1161475200000,1.84549],[1161561600000,1.84549],[1161648000000,1.83642],[1161734400000,1.83422],[1161820800000,1.83993],[1161907200000,1.8506],[1161993600000,1.85499],[1162080000000,1.85499],[1162166400000,1.85499],[1162252800000,1.85996],[1162339200000,1.85689],[1162425600000,1.86582],[1162512000000,1.86728],[1162598400000,1.86625],[1162684800000,1.86625],[1162771200000,1.86625],[1162857600000,1.85777],[1162944000000,1.86552],[1163030400000,1.86859],[1163116800000,1.87152],[1163203200000,1.88146],[1163289600000,1.88146],[1163376000000,1.88146],[1163462400000,1.87649],[1163548800000,1.87561],[1163635200000,1.87093],[1163721600000,1.87269],[1163808000000,1.8683],[1163894400000,1.8683],[1163980800000,1.8683],[1164067200000,1.8781],[1164153600000,1.87415],[1164240000000,1.88468],[1164326400000,1.89448],[1164412800000,1.91276],[1164499200000,1.91276],[1164585600000,1.91276],[1164672000000,1.91803],[1164758400000,1.92285],[1164844800000,1.92432],[1164931200000,1.93061],[1165017600000,1.93704],[1165104000000,1.93704],[1165190400000,1.93704],[1165276800000,1.94655],[1165363200000,1.94977],[1165449600000,1.94143],[1165536000000,1.94479],[1165622400000,1.94172],[1165708800000,1.94172],[1165795200000,1.94172],[1165881600000,1.92724],[1165968000000,1.93704],[1166054400000,1.94011],[1166140800000,1.92944],[1166227200000,1.91686],[1166313600000,1.91686],[1166400000000,1.91686],[1166486400000,1.91525],[1166572800000,1.92446],[1166659200000,1.93105],[1166745600000,1.92739],[1166832000000,1.92944],[1166918400000,1.92944],[1167004800000,1.92944],[1167091200000,1.92944],[1167177600000,1.92944],[1167264000000,1.92461],[1167350400000,1.92666],[1167436800000,1.92622]], 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: [[1137283200000, 1.770515],[1137283200000, 1.770515],[1139961600000, 1.745633],[1142380800000, 1.757581],[1145059200000, 1.789085],[1147651200000, 1.864961],[1150329600000, 1.851589],[1152921600000, 1.855614],[1155600000000, 1.872901],[1158278400000, 1.863187],[1160870400000, 1.845197],[1163548800000, 1.881069],[1166140800000, 1.931889]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });