$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1420070400000,1.99856],[1420156800000,1.99856],[1420243200000,1.99856],[1420329600000,1.99856],[1420416000000,1.99856],[1420502400000,1.99856],[1420588800000,1.98155],[1420675200000,1.98155],[1420761600000,null],[1420848000000,1.96461],[1420934400000,1.96461],[1421020800000,1.96461],[1421107200000,1.96188],[1421193600000,1.95078],[1421280000000,null],[1421366400000,1.95518],[1421452800000,1.95498],[1421539200000,1.95542],[1421625600000,1.95542],[1421712000000,1.94696],[1421798400000,1.94562],[1421884800000,1.93826],[1421971200000,null],[1422057600000,1.94346],[1422144000000,1.94346],[1422230400000,1.94346],[1422316800000,1.89699],[1422403200000,1.90942],[1422489600000,1.9274],[1422576000000,1.94829],[1422662400000,1.9607],[1422748800000,1.9607],[1422835200000,1.9607],[1422921600000,1.94998],[1423008000000,1.961],[1423094400000,2.02202],[1423180800000,2.18523],[1423267200000,null],[1423353600000,2.79047],[1423440000000,2.79047],[1423526400000,3.02092],[1423612800000,2.95798],[1423699200000,3.06299],[1423785600000,3.00229],[1423872000000,3.04892],[1423958400000,3.04892],[1424044800000,3.04892],[1424131200000,3.09191],[1424217600000,3.13759],[1424304000000,3.21225],[1424390400000,3.25813],[1424476800000,3.31433],[1424563200000,3.31433],[1424649600000,3.31433],[1424736000000,3.36379],[1424822400000,3.3415],[1424908800000,3.33728],[1424995200000,3.58756],[1425081600000,3.33732],[1425168000000,3.33732],[1425254400000,3.33732],[1425340800000,3.22207],[1425427200000,2.98238],[1425513600000,2.86183],[1425600000000,2.7805],[1425686400000,2.75068],[1425772800000,2.75068],[1425859200000,2.75068],[1425945600000,2.75068],[1426032000000,2.56953],[1426118400000,2.51974],[1426204800000,2.49986],[1426291200000,2.5171],[1426377600000,2.5171],[1426464000000,2.5171],[1426550400000,2.51488],[1426636800000,2.56588],[1426723200000,2.69984],[1426809600000,2.65513],[1426896000000,2.66826],[1426982400000,2.66826],[1427068800000,2.66826],[1427155200000,2.68222],[1427241600000,2.73821],[1427328000000,2.77696],[1427414400000,2.7751],[1427500800000,2.76685],[1427587200000,2.76685],[1427673600000,2.76685],[1427760000000,2.73126],[1427846400000,2.71594],[1427932800000,2.72904],[1428019200000,2.72468],[1428105600000,2.70096],[1428192000000,2.70096],[1428278400000,2.70096],[1428364800000,2.7175],[1428451200000,2.71997],[1428537600000,2.72845],[1428624000000,2.70274],[1428710400000,2.59145],[1428796800000,2.59145],[1428883200000,2.59145],[1428969600000,2.59145],[1429056000000,2.59769],[1429142400000,2.47482],[1429228800000,2.48047],[1429315200000,2.45066],[1429401600000,2.45066],[1429488000000,2.45066],[1429574400000,2.56546],[1429660800000,2.56674],[1429747200000,2.60441],[1429833600000,2.58774],[1429920000000,2.59035],[1430006400000,2.59035],[1430092800000,2.59035],[1430179200000,2.6486],[1430265600000,2.59318],[1430352000000,2.4973],[1430438400000,2.54125],[1430524800000,2.54125],[1430611200000,2.54125],[1430697600000,2.54125],[1430784000000,2.54125],[1430870400000,2.51851],[1430956800000,2.53708],[1431043200000,2.52033],[1431129600000,2.48576],[1431216000000,2.48576],[1431302400000,2.48576],[1431388800000,2.48576],[1431475200000,2.4901],[1431561600000,2.47488],[1431648000000,2.50121],[1431734400000,2.48713],[1431820800000,2.48713],[1431907200000,2.48713],[1431993600000,2.68457],[1432080000000,2.55123],[1432166400000,2.49008],[1432252800000,2.4858],[1432339200000,2.51549],[1432425600000,2.51549],[1432512000000,2.51549],[1432598400000,2.5102],[1432684800000,2.54815],[1432771200000,null],[1432857600000,2.47623],[1432944000000,2.47986],[1433030400000,2.47986],[1433116800000,2.47986],[1433203200000,2.47986],[1433289600000,2.47724],[1433376000000,2.491],[1433462400000,2.54628],[1433548800000,2.52489],[1433635200000,2.52489],[1433721600000,2.52489],[1433808000000,2.51442],[1433894400000,2.54593],[1433980800000,2.54859],[1434067200000,2.55171],[1434153600000,2.56715],[1434240000000,2.56715],[1434326400000,2.56715],[1434412800000,2.62162],[1434499200000,2.7015],[1434585600000,2.64894],[1434672000000,2.6393],[1434758400000,2.65206],[1434844800000,2.65206],[1434931200000,2.65206],[1435017600000,2.67705],[1435104000000,2.61944],[1435190400000,2.57788],[1435276800000,2.57405],[1435363200000,2.54114],[1435449600000,2.54114],[1435536000000,2.54114],[1435622400000,2.54114],[1435708800000,2.55049],[1435795200000,2.52185],[1435881600000,2.48732],[1435968000000,2.4883],[1436054400000,2.4883],[1436140800000,2.4883],[1436227200000,2.49837],[1436313600000,2.54274],[1436400000000,2.57878],[1436486400000,2.57949],[1436572800000,2.60503],[1436659200000,2.60503],[1436745600000,2.60503],[1436832000000,2.58487],[1436918400000,2.57898],[1437004800000,2.60104],[1437091200000,2.57503],[1437177600000,2.56564],[1437264000000,2.56564],[1437350400000,2.56564],[1437436800000,2.5587],[1437523200000,2.55444],[1437609600000,2.5574],[1437696000000,2.56728],[1437782400000,2.56158],[1437868800000,2.56158],[1437955200000,2.56158],[1438041600000,2.56158],[1438128000000,2.57028],[1438214400000,2.56919],[1438300800000,2.4997],[1438387200000,2.44865],[1438473600000,2.44865],[1438560000000,2.44865],[1438646400000,2.50702],[1438732800000,2.5227],[1438819200000,2.47638],[1438905600000,2.4522],[1438992000000,2.41001],[1439078400000,2.41001],[1439164800000,2.41001],[1439251200000,2.42858],[1439337600000,2.46484],[1439424000000,2.48974],[1439510400000,2.51471],[1439596800000,2.57725],[1439683200000,2.57725],[1439769600000,2.57725],[1439856000000,2.58771],[1439942400000,2.59102],[1440028800000,2.57529],[1440115200000,2.59299],[1440201600000,2.61514],[1440288000000,2.61514],[1440374400000,2.61514],[1440460800000,null],[1440547200000,2.72135],[1440633600000,2.53007],[1440720000000,2.51347],[1440806400000,2.51406],[1440892800000,2.51406],[1440979200000,2.51406],[1441065600000,2.57332],[1441152000000,null],[1441238400000,null],[1441324800000,null],[1441411200000,null],[1441497600000,null],[1441584000000,null],[1441670400000,null],[1441756800000,null],[1441843200000,null],[1441929600000,null],[1442016000000,null],[1442102400000,null],[1442188800000,null],[1442275200000,null],[1442361600000,null],[1442448000000,2.62758],[1442534400000,null],[1442620800000,2.64993],[1442707200000,2.64993],[1442793600000,2.64993],[1442880000000,2.63527],[1442966400000,2.59596],[1443052800000,2.56469],[1443139200000,2.55888],[1443225600000,2.56652],[1443312000000,2.56652],[1443398400000,2.56652],[1443484800000,2.55104],[1443571200000,2.55335],[1443657600000,2.53579],[1443744000000,2.5164],[1443830400000,2.5265],[1443916800000,2.5265],[1444003200000,2.5265],[1444089600000,2.54915],[1444176000000,2.56298],[1444262400000,2.57877],[1444348800000,2.58328],[1444435200000,2.63522],[1444521600000,2.63522],[1444608000000,2.63522],[1444694400000,2.66761],[1444780800000,2.69515],[1444867200000,2.69515],[1444953600000,2.66011],[1445040000000,2.58604],[1445126400000,2.58604],[1445212800000,2.58604],[1445299200000,2.60796],[1445385600000,2.65379],[1445472000000,2.72456],[1445558400000,2.6756],[1445644800000,2.65965],[1445731200000,2.65965],[1445817600000,2.65965],[1445904000000,2.68848],[1445990400000,2.68846],[1446076800000,2.71746],[1446163200000,2.67532],[1446249600000,2.69876],[1446336000000,2.69876],[1446422400000,2.69876],[1446508800000,2.70562],[1446595200000,2.68974],[1446681600000,2.69472],[1446768000000,2.65661],[1446854400000,2.62213],[1446940800000,2.62213],[1447027200000,2.62213],[1447113600000,2.62596],[1447200000000,2.6186],[1447286400000,2.61403],[1447372800000,2.64287],[1447459200000,2.65789],[1447545600000,2.65789],[1447632000000,2.65789],[1447718400000,2.66988],[1447804800000,2.72018],[1447891200000,2.74205],[1447977600000,2.73683],[1448064000000,2.76248],[1448150400000,2.76248],[1448236800000,2.76248],[1448323200000,2.76574],[1448409600000,2.75403],[1448496000000,2.71414],[1448582400000,2.69971],[1448668800000,2.73425],[1448755200000,2.73425],[1448841600000,2.73425],[1448928000000,2.75168],[1449014400000,2.74344],[1449100800000,2.7238],[1449187200000,2.67079],[1449273600000,2.78048],[1449360000000,2.78048],[1449446400000,2.78048],[1449532800000,2.74958],[1449619200000,2.70156],[1449705600000,2.70549],[1449792000000,2.75676],[1449878400000,2.80912],[1449964800000,2.80912],[1450051200000,2.80912],[1450137600000,2.79315],[1450224000000,2.77478],[1450310400000,2.76517],[1450396800000,2.73731],[1450483200000,2.7536],[1450569600000,2.7536],[1450656000000,2.7536],[1450742400000,2.75091],[1450828800000,2.73704],[1450915200000,2.72601],[1451001600000,2.7355],[1451088000000,2.7561],[1451174400000,2.7561],[1451260800000,2.7561],[1451347200000,2.84094],[1451433600000,2.84552]], 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: [[1421280000000, 1.960212],[1421280000000, 1.960212],[1423958400000, 2.904512],[1426377600000, 2.745462],[1429056000000, 2.608215],[1431648000000, 2.513509],[1434326400000, 2.569717],[1436918400000, 2.554811],[1439596800000, 2.522114],[1442275200000, 2.593530],[1444867200000, 2.625711],[1447545600000, 2.692617],[1450137600000, 2.763274]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });