$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1420070400000,0.130872],[1420156800000,0.130872],[1420243200000,0.130872],[1420329600000,0.130872],[1420416000000,0.130872],[1420502400000,0.130872],[1420588800000,0.131478],[1420675200000,0.131478],[1420761600000,null],[1420848000000,0.131448],[1420934400000,0.131448],[1421020800000,0.131448],[1421107200000,0.132199],[1421193600000,0.132416],[1421280000000,null],[1421366400000,0.13512],[1421452800000,0.135524],[1421539200000,0.136218],[1421625600000,0.136218],[1421712000000,0.135629],[1421798400000,0.134319],[1421884800000,0.133051],[1421971200000,null],[1422057600000,0.134215],[1422144000000,0.134215],[1422230400000,0.134215],[1422316800000,0.134],[1422403200000,0.134387],[1422489600000,0.134821],[1422576000000,0.135367],[1422662400000,0.13702],[1422748800000,0.13702],[1422835200000,0.13702],[1422921600000,0.137167],[1423008000000,0.138051],[1423094400000,0.142574],[1423180800000,0.15319],[1423267200000,null],[1423353600000,0.196985],[1423440000000,0.196985],[1423526400000,0.212745],[1423612800000,0.20945],[1423699200000,0.214398],[1423785600000,0.209573],[1423872000000,0.216331],[1423958400000,0.216331],[1424044800000,0.216331],[1424131200000,0.218864],[1424217600000,0.222313],[1424304000000,0.225587],[1424390400000,0.229284],[1424476800000,0.23408],[1424563200000,0.23408],[1424649600000,0.23408],[1424736000000,0.239173],[1424822400000,0.237646],[1424908800000,0.234711],[1424995200000,0.252368],[1425081600000,0.233533],[1425168000000,0.233533],[1425254400000,0.233533],[1425340800000,0.225203],[1425427200000,0.20723],[1425513600000,0.198503],[1425600000000,0.19291],[1425686400000,0.190419],[1425772800000,0.190419],[1425859200000,0.190419],[1425945600000,0.190419],[1426032000000,0.179765],[1426118400000,0.177631],[1426204800000,0.177665],[1426291200000,0.178822],[1426377600000,0.178822],[1426464000000,0.178822],[1426550400000,0.179236],[1426636800000,0.183542],[1426723200000,0.192212],[1426809600000,0.193058],[1426896000000,0.191764],[1426982400000,0.191764],[1427068800000,0.191764],[1427155200000,0.191512],[1427241600000,0.194279],[1427328000000,0.197073],[1427414400000,0.196871],[1427500800000,0.19745],[1427587200000,0.19745],[1427673600000,0.19745],[1427760000000,0.196687],[1427846400000,0.195668],[1427932800000,0.195335],[1428019200000,0.196472],[1428105600000,0.194761],[1428192000000,0.194761],[1428278400000,0.194761],[1428364800000,0.195954],[1428451200000,0.195634],[1428537600000,0.196302],[1428624000000,0.195398],[1428710400000,0.189965],[1428796800000,0.189965],[1428883200000,0.189965],[1428969600000,0.189965],[1429056000000,0.191202],[1429142400000,0.182139],[1429228800000,0.179964],[1429315200000,0.177281],[1429401600000,0.177281],[1429488000000,0.177281],[1429574400000,0.1869],[1429660800000,0.186579],[1429747200000,0.188533],[1429833600000,0.187619],[1429920000000,0.187861],[1430006400000,0.187861],[1430092800000,0.187861],[1430179200000,0.191757],[1430265600000,0.186995],[1430352000000,0.176492],[1430438400000,0.177848],[1430524800000,0.177848],[1430611200000,0.177848],[1430697600000,0.177848],[1430784000000,0.177848],[1430870400000,0.17543],[1430956800000,0.175434],[1431043200000,0.173892],[1431129600000,0.171267],[1431216000000,0.171267],[1431302400000,0.171267],[1431388800000,0.171267],[1431475200000,0.172003],[1431561600000,0.17186],[1431648000000,0.172554],[1431734400000,0.172684],[1431820800000,0.172684],[1431907200000,0.172684],[1431993600000,0.184779],[1432080000000,0.176841],[1432166400000,0.172131],[1432252800000,0.170797],[1432339200000,0.1723],[1432425600000,0.1723],[1432512000000,0.1723],[1432598400000,0.17393],[1432684800000,0.17459],[1432771200000,null],[1432857600000,0.169431],[1432944000000,0.170137],[1433030400000,0.170137],[1433116800000,0.170137],[1433203200000,0.170137],[1433289600000,0.168986],[1433376000000,0.168915],[1433462400000,0.169298],[1433548800000,0.168513],[1433635200000,0.168513],[1433721600000,0.168513],[1433808000000,0.168439],[1433894400000,0.170632],[1433980800000,0.17203],[1434067200000,0.169975],[1434153600000,0.170255],[1434240000000,0.170255],[1434326400000,0.170255],[1434412800000,0.173678],[1434499200000,0.179444],[1434585600000,0.174698],[1434672000000,0.173816],[1434758400000,0.175629],[1434844800000,0.175629],[1434931200000,0.175629],[1435017600000,0.176657],[1435104000000,0.173857],[1435190400000,0.170927],[1435276800000,0.171472],[1435363200000,0.169876],[1435449600000,0.169876],[1435536000000,0.169876],[1435622400000,0.169876],[1435708800000,0.17154],[1435795200000,0.170658],[1435881600000,0.169942],[1435968000000,0.171006],[1436054400000,0.171006],[1436140800000,0.171006],[1436227200000,0.173262],[1436313600000,0.177179],[1436400000000,0.180921],[1436486400000,0.179829],[1436572800000,0.179088],[1436659200000,0.179088],[1436745600000,0.179088],[1436832000000,0.178047],[1436918400000,0.178379],[1437004800000,0.179021],[1437091200000,0.177116],[1437177600000,0.177558],[1437264000000,0.177558],[1437350400000,0.177558],[1437436800000,0.177329],[1437523200000,0.177042],[1437609600000,0.177786],[1437696000000,0.177856],[1437782400000,0.177938],[1437868800000,0.177938],[1437955200000,0.177938],[1438041600000,0.177938],[1438128000000,0.178064],[1438214400000,0.178367],[1438300800000,0.173767],[1438387200000,0.16994],[1438473600000,0.16994],[1438560000000,0.16994],[1438646400000,0.174784],[1438732800000,0.175108],[1438819200000,0.173557],[1438905600000,0.172028],[1438992000000,0.16913],[1439078400000,0.16913],[1439164800000,0.16913],[1439251200000,0.170514],[1439337600000,0.171217],[1439424000000,0.172303],[1439510400000,0.171953],[1439596800000,0.175238],[1439683200000,0.175238],[1439769600000,0.175238],[1439856000000,0.176826],[1439942400000,0.17774],[1440028800000,0.177432],[1440115200000,0.177885],[1440201600000,0.180101],[1440288000000,0.180101],[1440374400000,0.180101],[1440460800000,null],[1440547200000,0.188846],[1440633600000,0.179024],[1440720000000,0.177364],[1440806400000,0.175321],[1440892800000,0.175321],[1440979200000,0.175321],[1441065600000,0.179722],[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,0.180896],[1442534400000,null],[1442620800000,0.181278],[1442707200000,0.181278],[1442793600000,0.181278],[1442880000000,0.181454],[1442966400000,0.181304],[1443052800000,0.179484],[1443139200000,0.179419],[1443225600000,0.178654],[1443312000000,0.178654],[1443398400000,0.178654],[1443484800000,0.179782],[1443571200000,0.179487],[1443657600000,0.177129],[1443744000000,0.176642],[1443830400000,0.175809],[1443916800000,0.175809],[1444003200000,0.175809],[1444089600000,0.176485],[1444176000000,0.176699],[1444262400000,0.17711],[1444348800000,0.177663],[1444435200000,0.178734],[1444521600000,0.178734],[1444608000000,0.178734],[1444694400000,0.181636],[1444780800000,0.183214],[1444867200000,0.183214],[1444953600000,0.183479],[1445040000000,0.178885],[1445126400000,0.178885],[1445212800000,0.178885],[1445299200000,0.181086],[1445385600000,0.183666],[1445472000000,0.188339],[1445558400000,0.186036],[1445644800000,0.187009],[1445731200000,0.187009],[1445817600000,0.187009],[1445904000000,0.189267],[1445990400000,0.190058],[1446076800000,0.190206],[1446163200000,0.189222],[1446249600000,0.19064],[1446336000000,0.19064],[1446422400000,0.19064],[1446508800000,0.190877],[1446595200000,0.190472],[1446681600000,0.190559],[1446768000000,0.188088],[1446854400000,0.185831],[1446940800000,0.185831],[1447027200000,0.185831],[1447113600000,0.184256],[1447200000000,0.184722],[1447286400000,0.184885],[1447372800000,0.186333],[1447459200000,0.187985],[1447545600000,0.187985],[1447632000000,0.187985],[1447718400000,0.188508],[1447804800000,0.192895],[1447891200000,0.193743],[1447977600000,0.193593],[1448064000000,0.195268],[1448150400000,0.195268],[1448236800000,0.195268],[1448323200000,0.195402],[1448409600000,0.195436],[1448496000000,0.193664],[1448582400000,0.192538],[1448668800000,0.194759],[1448755200000,0.194759],[1448841600000,0.194759],[1448928000000,0.194553],[1449014400000,0.193552],[1449100800000,0.192004],[1449187200000,0.187248],[1449273600000,0.192286],[1449360000000,0.192286],[1449446400000,0.192286],[1449532800000,0.190014],[1449619200000,0.186457],[1449705600000,0.18688],[1449792000000,0.192314],[1449878400000,0.196413],[1449964800000,0.196413],[1450051200000,0.196413],[1450137600000,0.197316],[1450224000000,0.193826],[1450310400000,0.193074],[1450396800000,0.191711],[1450483200000,0.193882],[1450569600000,0.193882],[1450656000000,0.193882],[1450742400000,0.193771],[1450828800000,0.19144],[1450915200000,0.190296],[1451001600000,0.190694],[1451088000000,0.192131],[1451174400000,0.192131],[1451260800000,0.192131],[1451347200000,0.197636],[1451433600000,0.197571]], 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, 0.133267],[1421280000000, 0.133267],[1423958400000, 0.204810],[1426377600000, 0.194072],[1429056000000, 0.188950],[1431648000000, 0.173774],[1434326400000, 0.171526],[1436918400000, 0.176478],[1439596800000, 0.174859],[1442275200000, 0.180096],[1444867200000, 0.182036],[1447545600000, 0.190626],[1450137600000, 0.193021]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });