$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1136246400000,1.54339],[1136332800000,1.54339],[1136419200000,1.54339],[1136505600000,1.60702],[1136592000000,1.60254],[1136678400000,1.60254],[1136764800000,1.60254],[1136851200000,1.60254],[1136937600000,1.60883],[1137024000000,1.61741],[1137110400000,1.61836],[1137196800000,1.59413],[1137283200000,1.59413],[1137369600000,1.59413],[1137456000000,1.60569],[1137542400000,1.59076],[1137628800000,1.58828],[1137715200000,1.5871],[1137801600000,1.58785],[1137888000000,1.58785],[1137974400000,1.58785],[1138060800000,1.61392],[1138147200000,1.61331],[1138233600000,1.63038],[1138320000000,1.6165],[1138406400000,1.60711],[1138492800000,1.60711],[1138579200000,1.60711],[1138665600000,1.59781],[1138752000000,null],[1138838400000,null],[1138924800000,null],[1139011200000,null],[1139097600000,null],[1139184000000,1.58666],[1139270400000,1.58666],[1139356800000,1.58414],[1139443200000,1.57848],[1139529600000,1.58663],[1139616000000,1.60027],[1139702400000,1.60027],[1139788800000,1.60027],[1139875200000,1.58306],[1139961600000,1.58468],[1140048000000,1.59288],[1140134400000,1.59123],[1140220800000,1.59102],[1140307200000,1.59102],[1140393600000,1.59102],[1140480000000,1.5998],[1140566400000,1.59175],[1140652800000,1.57275],[1140739200000,1.59204],[1140825600000,1.58718],[1140912000000,1.58718],[1140998400000,1.58718],[1141084800000,1.58845],[1141171200000,1.58333],[1141257600000,1.59923],[1141344000000,1.5949],[1141430400000,1.59676],[1141516800000,1.59676],[1141603200000,1.59676],[1141689600000,1.58959],[1141776000000,1.5601],[1141862400000,1.5601],[1141948800000,1.55292],[1142035200000,1.54126],[1142121600000,1.54126],[1142208000000,1.54126],[1142294400000,1.53173],[1142380800000,1.53608],[1142467200000,1.56262],[1142553600000,1.56551],[1142640000000,1.60383],[1142726400000,1.60383],[1142812800000,1.60383],[1142899200000,1.58234],[1142985600000,1.57394],[1143072000000,1.55747],[1143158400000,1.56881],[1143244800000,1.54686],[1143331200000,1.54686],[1143417600000,1.54686],[1143504000000,1.55517],[1143590400000,1.54923],[1143676800000,1.53203],[1143763200000,1.55583],[1143849600000,1.55042],[1143936000000,1.55042],[1144022400000,1.55042],[1144108800000,1.5563],[1144195200000,1.56259],[1144281600000,1.55848],[1144368000000,1.5655],[1144454400000,1.55235],[1144540800000,1.55235],[1144627200000,1.55235],[1144713600000,1.53749],[1144800000000,1.5539],[1144886400000,1.55987],[1144972800000,1.54713],[1145059200000,1.54713],[1145145600000,1.54713],[1145232000000,1.54713],[1145318400000,1.54713],[1145404800000,1.57565],[1145491200000,1.59959],[1145577600000,1.60091],[1145664000000,1.60108],[1145750400000,1.60108],[1145836800000,1.60108],[1145923200000,1.60108],[1146009600000,1.62139],[1146096000000,1.61413],[1146182400000,1.61837],[1146268800000,1.63398],[1146355200000,1.63398],[1146441600000,1.63398],[1146528000000,1.63398],[1146614400000,1.63398],[1146700800000,1.6708],[1146787200000,1.66504],[1146873600000,1.67958],[1146960000000,1.67958],[1147046400000,1.67958],[1147132800000,1.67958],[1147219200000,1.67958],[1147305600000,1.6821],[1147392000000,1.67972],[1147478400000,1.6822],[1147564800000,1.6822],[1147651200000,1.6822],[1147737600000,1.64611],[1147824000000,1.65497],[1147910400000,1.67368],[1147996800000,1.62419],[1148083200000,1.63547],[1148169600000,1.63547],[1148256000000,1.63547],[1148342400000,1.6253],[1148428800000,1.64566],[1148515200000,1.63874],[1148601600000,1.62975],[1148688000000,1.6436],[1148774400000,1.6436],[1148860800000,1.6436],[1148947200000,1.64261],[1149033600000,1.64883],[1149120000000,1.65071],[1149206400000,1.63311],[1149292800000,1.651],[1149379200000,1.651],[1149465600000,1.651],[1149552000000,1.65464],[1149638400000,1.63902],[1149724800000,1.63331],[1149811200000,1.62321],[1149897600000,1.61414],[1149984000000,1.61414],[1150070400000,1.61414],[1150156800000,1.61414],[1150243200000,1.57371],[1150329600000,1.57885],[1150416000000,1.57793],[1150502400000,1.57669],[1150588800000,1.57669],[1150675200000,1.57669],[1150761600000,1.56458],[1150848000000,1.55746],[1150934400000,1.55722],[1151020800000,1.55068],[1151107200000,1.53621],[1151193600000,1.53621],[1151280000000,1.53621],[1151366400000,1.55188],[1151452800000,1.56164],[1151539200000,1.56164],[1151625600000,1.55009],[1151712000000,1.5834],[1151798400000,1.5834],[1151884800000,1.5834],[1151971200000,1.59855],[1152057600000,1.60931],[1152144000000,1.60521],[1152230400000,1.59184],[1152316800000,1.60161],[1152403200000,1.60161],[1152489600000,1.60161],[1152576000000,1.58908],[1152662400000,1.59821],[1152748800000,1.58797],[1152835200000,1.58591],[1152921600000,1.58274],[1153008000000,1.58274],[1153094400000,1.58274],[1153180800000,1.56759],[1153267200000,1.5717],[1153353600000,1.56739],[1153440000000,1.6179],[1153526400000,1.61722],[1153612800000,1.61722],[1153699200000,1.61722],[1153785600000,1.61785],[1153872000000,1.63176],[1153958400000,1.61964],[1154044800000,1.63861],[1154131200000,1.62619],[1154217600000,1.62619],[1154304000000,1.62619],[1154390400000,1.63783],[1154476800000,1.63947],[1154563200000,1.64306],[1154649600000,1.64519],[1154736000000,1.65195],[1154822400000,1.65195],[1154908800000,1.65195],[1154995200000,1.67607],[1155081600000,1.67438],[1155168000000,1.68151],[1155254400000,1.67612],[1155340800000,1.66819],[1155427200000,1.66819],[1155513600000,1.66819],[1155600000000,1.65646],[1155686400000,1.65396],[1155772800000,1.66344],[1155859200000,1.67981],[1155945600000,1.66294],[1156032000000,1.66294],[1156118400000,1.66294],[1156204800000,1.67173],[1156291200000,1.65878],[1156377600000,1.65708],[1156464000000,1.65708],[1156550400000,1.65708],[1156636800000,1.65708],[1156723200000,1.65708],[1156809600000,1.64278],[1156896000000,1.63706],[1156982400000,1.63515],[1157068800000,1.64807],[1157155200000,1.63099],[1157241600000,1.63099],[1157328000000,1.63099],[1157414400000,1.63413],[1157500800000,1.63451],[1157587200000,1.6332],[1157673600000,1.61675],[1157760000000,1.6141],[1157846400000,1.6141],[1157932800000,1.6141],[1158019200000,1.61268],[1158105600000,1.61249],[1158192000000,1.61513],[1158278400000,1.62164],[1158364800000,1.62031],[1158451200000,1.62031],[1158537600000,1.62031],[1158624000000,1.62814],[1158710400000,1.61379],[1158796800000,1.6213],[1158883200000,1.62904],[1158969600000,1.62693],[1159056000000,1.62693],[1159142400000,1.62693],[1159228800000,1.62398],[1159315200000,1.61963],[1159401600000,1.61013],[1159488000000,1.61369],[1159574400000,1.60988],[1159660800000,1.60988],[1159747200000,1.60988],[1159833600000,1.61733],[1159920000000,1.63121],[1160006400000,1.62549],[1160092800000,1.6321],[1160179200000,1.62739],[1160265600000,1.62739],[1160352000000,1.62739],[1160438400000,1.62327],[1160524800000,1.61961],[1160611200000,1.62009],[1160697600000,1.61771],[1160784000000,1.63159],[1160870400000,1.63159],[1160956800000,1.63159],[1161043200000,1.6283],[1161129600000,1.62345],[1161216000000,1.62445],[1161302400000,1.63352],[1161388800000,1.6482],[1161475200000,1.6482],[1161561600000,1.6482],[1161648000000,1.63696],[1161734400000,1.63349],[1161820800000,1.63503],[1161907200000,1.64714],[1161993600000,1.65156],[1162080000000,1.65156],[1162166400000,1.65156],[1162252800000,1.65054],[1162339200000,1.65539],[1162425600000,1.66756],[1162512000000,1.66727],[1162598400000,1.66774],[1162684800000,1.66774],[1162771200000,1.66774],[1162857600000,1.67643],[1162944000000,1.68202],[1163030400000,1.68154],[1163116800000,1.69051],[1163203200000,1.69502],[1163289600000,1.69502],[1163376000000,1.69502],[1163462400000,1.69168],[1163548800000,1.69785],[1163635200000,1.69486],[1163721600000,1.70243],[1163808000000,1.69809],[1163894400000,1.69809],[1163980800000,1.69809],[1164067200000,1.70233],[1164153600000,1.70412],[1164240000000,1.71221],[1164326400000,1.71188],[1164412800000,1.72569],[1164499200000,1.72569],[1164585600000,1.72569],[1164672000000,1.73189],[1164758400000,1.73041],[1164844800000,1.73739],[1164931200000,1.74901],[1165017600000,1.75747],[1165104000000,1.75747],[1165190400000,1.75747],[1165276800000,1.76133],[1165363200000,1.76512],[1165449600000,1.75891],[1165536000000,1.76232],[1165622400000,1.75049],[1165708800000,1.75049],[1165795200000,1.75049],[1165881600000,1.7455],[1165968000000,1.75355],[1166054400000,1.76248],[1166140800000,1.75407],[1166227200000,1.74503],[1166313600000,1.74503],[1166400000000,1.74503],[1166486400000,1.74172],[1166572800000,1.74344],[1166659200000,1.75493],[1166745600000,1.74944],[1166832000000,1.74347],[1166918400000,1.74347],[1167004800000,1.74347],[1167091200000,1.74347],[1167177600000,1.74347],[1167264000000,1.731],[1167350400000,1.73668],[1167436800000,1.73606]], 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.596655],[1137283200000, 1.596655],[1139961600000, 1.589331],[1142380800000, 1.567003],[1145059200000, 1.574681],[1147651200000, 1.655200],[1150329600000, 1.592264],[1152921600000, 1.601033],[1155600000000, 1.658304],[1158278400000, 1.622505],[1160870400000, 1.632118],[1163548800000, 1.696579],[1166140800000, 1.749395]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });