$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1483228800000,0.091659],[1483315200000,0.091659],[1483401600000,0.091659],[1483488000000,0.091659],[1483574400000,0.090348],[1483660800000,0.090348],[1483747200000,0.093127],[1483833600000,0.093127],[1483920000000,0.093127],[1484006400000,0.093127],[1484092800000,0.093062],[1484179200000,0.092025],[1484265600000,0.094749],[1484352000000,null],[1484438400000,0.095929],[1484524800000,0.095929],[1484611200000,0.095544],[1484697600000,0.095909],[1484784000000,0.095211],[1484870400000,0.094926],[1484956800000,0.094348],[1485043200000,0.094348],[1485129600000,0.094348],[1485216000000,0.094528],[1485302400000,0.094334],[1485388800000,0.094375],[1485475200000,0.093633],[1485561600000,0.0932],[1485648000000,0.0932],[1485734400000,0.0932],[1485820800000,0.092753],[1485907200000,0.093755],[1485993600000,0.094039],[1486080000000,0.094439],[1486166400000,0.093984],[1486252800000,0.093984],[1486339200000,0.093984],[1486425600000,0.094462],[1486512000000,0.093173],[1486598400000,0.092791],[1486684800000,0.093588],[1486771200000,0.093753],[1486857600000,0.093753],[1486944000000,0.093753],[1487030400000,0.09374],[1487116800000,0.093879],[1487203200000,0.09238],[1487289600000,0.093266],[1487376000000,0.093354],[1487462400000,0.093354],[1487548800000,0.093354],[1487635200000,0.093071],[1487721600000,0.092847],[1487808000000,0.092207],[1487894400000,0.092301],[1487980800000,0.092743],[1488067200000,0.092743],[1488153600000,0.092743],[1488240000000,0.093086],[1488326400000,0.093383],[1488412800000,0.092968],[1488499200000,0.092381],[1488585600000,0.09252],[1488672000000,0.09252],[1488758400000,0.09252],[1488844800000,0.09246],[1488931200000,0.092118],[1489017600000,0.092118],[1489104000000,0.091249],[1489190400000,0.091059],[1489276800000,0.091059],[1489363200000,0.091059],[1489449600000,0.091789],[1489536000000,0.091873],[1489622400000,0.09186],[1489708800000,0.093335],[1489795200000,0.09364],[1489881600000,0.09364],[1489968000000,0.09364],[1490054400000,0.093668],[1490140800000,0.094082],[1490227200000,0.094101],[1490313600000,0.094381],[1490400000000,0.0946],[1490486400000,0.0946],[1490572800000,0.0946],[1490659200000,0.095314],[1490745600000,0.09525],[1490832000000,0.093866],[1490918400000,0.093629],[1491004800000,0.093911],[1491091200000,0.093911],[1491177600000,0.093911],[1491264000000,0.093336],[1491350400000,0.093362],[1491436800000,0.09357],[1491523200000,0.093315],[1491609600000,0.092387],[1491696000000,0.092387],[1491782400000,0.092387],[1491868800000,0.091505],[1491955200000,0.091684],[1492041600000,0.09136],[1492128000000,0.091367],[1492214400000,0.091189],[1492300800000,0.091189],[1492387200000,0.091189],[1492473600000,0.091189],[1492560000000,0.091739],[1492646400000,0.091772],[1492732800000,0.091707],[1492819200000,0.091027],[1492905600000,0.091027],[1492992000000,0.091027],[1493078400000,0.0929],[1493164800000,0.093053],[1493251200000,0.092852],[1493337600000,0.092589],[1493424000000,0.092935],[1493510400000,0.092935],[1493596800000,0.092935],[1493683200000,0.092935],[1493769600000,0.092935],[1493856000000,0.092779],[1493942400000,0.092745],[1494028800000,0.093289],[1494115200000,0.093289],[1494201600000,0.093289],[1494288000000,0.093289],[1494374400000,0.093289],[1494460800000,0.092692],[1494547200000,0.092417],[1494633600000,0.09281],[1494720000000,0.09281],[1494806400000,0.09281],[1494892800000,0.093945],[1494979200000,0.094439],[1495065600000,0.094914],[1495152000000,0.094542],[1495238400000,0.095215],[1495324800000,0.095215],[1495411200000,0.095215],[1495497600000,0.095954],[1495584000000,0.095632],[1495670400000,0.095419],[1495756800000,0.095693],[1495843200000,0.095954],[1495929600000,0.095954],[1496016000000,0.095954],[1496102400000,0.095903],[1496188800000,0.095402],[1496275200000,0.096103],[1496361600000,0.095833],[1496448000000,0.095573],[1496534400000,0.095573],[1496620800000,0.095573],[1496707200000,0.095573],[1496793600000,0.096042],[1496880000000,0.095233],[1496966400000,0.095331],[1497052800000,0.095005],[1497139200000,0.095005],[1497225600000,0.095005],[1497312000000,0.095234],[1497398400000,0.094989],[1497484800000,0.095122],[1497571200000,0.094349],[1497657600000,0.094374],[1497744000000,0.094374],[1497830400000,0.094374],[1497916800000,0.094901],[1498003200000,0.093956],[1498089600000,0.093839],[1498176000000,0.094005],[1498262400000,0.094085],[1498348800000,0.094085],[1498435200000,0.094085],[1498521600000,0.094116],[1498608000000,0.095065],[1498694400000,0.095065],[1498780800000,0.096068],[1498867200000,0.096119],[1498953600000,0.096119],[1499040000000,0.096119],[1499126400000,0.095564],[1499212800000,0.095808],[1499299200000,0.096023],[1499385600000,0.095903],[1499472000000,0.096301],[1499558400000,0.096301],[1499644800000,0.096301],[1499731200000,0.096143],[1499817600000,0.096132],[1499904000000,0.096525],[1499990400000,0.09649],[1500076800000,0.096895],[1500163200000,0.096895],[1500249600000,0.096895],[1500336000000,0.097242],[1500422400000,0.097852],[1500508800000,0.097648],[1500595200000,0.097389],[1500681600000,0.098703],[1500768000000,0.098703],[1500854400000,0.098703],[1500940800000,0.098569],[1501027200000,0.098928],[1501113600000,0.098636],[1501200000000,0.099386],[1501286400000,0.099683],[1501372800000,0.099683],[1501459200000,0.099683],[1501545600000,0.099534],[1501632000000,0.100601],[1501718400000,0.100843],[1501804800000,0.101075],[1501891200000,0.10077],[1501977600000,0.10077],[1502064000000,0.10077],[1502150400000,0.100127],[1502236800000,0.099841],[1502323200000,0.099072],[1502409600000,0.098707],[1502496000000,0.098985],[1502582400000,0.098985],[1502668800000,0.098985],[1502755200000,0.099332],[1502841600000,0.098841],[1502928000000,0.098489],[1503014400000,0.098125],[1503100800000,0.098583],[1503187200000,0.098583],[1503273600000,0.098583],[1503360000000,null],[1503446400000,0.098647],[1503532800000,0.099361],[1503619200000,0.099361],[1503705600000,0.099361],[1503792000000,0.099361],[1503878400000,0.099361],[1503964800000,0.100087],[1504051200000,0.100389],[1504137600000,0.099714],[1504224000000,0.099087],[1504310400000,0.1006],[1504396800000,0.1006],[1504483200000,0.1006],[1504569600000,0.100782],[1504656000000,0.10072],[1504742400000,0.101249],[1504828800000,0.10183],[1504915200000,0.102604],[1505001600000,0.102604],[1505088000000,0.102604],[1505174400000,0.101876],[1505260800000,0.101099],[1505347200000,0.101425],[1505433600000,0.100861],[1505520000000,0.101558],[1505606400000,0.101558],[1505692800000,0.101558],[1505779200000,0.100948],[1505865600000,0.101274],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,0.10042],[1506729600000,0.101003],[1506816000000,0.101003],[1506902400000,0.101003],[1506988800000,0.100511],[1507075200000,0.100578],[1507161600000,0.101541],[1507248000000,0.101047],[1507334400000,0.100541],[1507420800000,0.100541],[1507507200000,0.100541],[1507593600000,0.099858],[1507680000000,0.100962],[1507766400000,0.101277],[1507852800000,0.102135],[1507939200000,0.102135],[1508025600000,0.102135],[1508112000000,0.102135],[1508198400000,0.102135],[1508284800000,0.101327],[1508371200000,0.100715],[1508457600000,0.10165],[1508544000000,0.101787],[1508630400000,0.101787],[1508716800000,0.101787],[1508803200000,null],[1508889600000,0.101665],[1508976000000,0.101717],[1509062400000,0.101603],[1509148800000,0.100213],[1509235200000,0.100213],[1509321600000,0.100213],[1509408000000,0.100171],[1509494400000,0.100315],[1509580800000,0.100116],[1509667200000,0.100874],[1509753600000,0.101293],[1509840000000,0.101293],[1509926400000,0.101293],[1510012800000,0.100015],[1510099200000,0.099456],[1510185600000,0.098994],[1510272000000,0.098973],[1510358400000,0.099047],[1510444800000,0.099047],[1510531200000,0.099047],[1510617600000,0.098944],[1510704000000,0.099753],[1510790400000,0.100461],[1510876800000,0.099723],[1510963200000,0.100313],[1511049600000,0.100313],[1511136000000,0.100313],[1511222400000,0.099836],[1511308800000,0.099203],[1511395200000,0.099854],[1511481600000,0.101662],[1511568000000,0.102509],[1511654400000,0.102509],[1511740800000,0.102509],[1511827200000,0.103051],[1511913600000,0.102721],[1512000000000,0.102537],[1512086400000,0.102877],[1512172800000,0.102467],[1512259200000,0.102467],[1512345600000,0.102467],[1512432000000,0.10314],[1512518400000,0.102502],[1512604800000,0.101876],[1512691200000,0.101521],[1512777600000,0.101214],[1512864000000,0.101214],[1512950400000,0.101214],[1513036800000,0.101957],[1513123200000,0.101729],[1513209600000,0.101798],[1513296000000,0.103376],[1513382400000,0.104093],[1513468800000,0.104093],[1513555200000,0.104093],[1513641600000,0.104814],[1513728000000,0.105294],[1513814400000,0.105519],[1513900800000,0.105757],[1513987200000,0.106248],[1514073600000,0.106248],[1514160000000,0.106248],[1514246400000,0.106248],[1514332800000,0.106224],[1514419200000,0.1069],[1514505600000,0.107945],[1514592000000,0.107945]], 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: [[1484438400000, 0.093513],[1484438400000, 0.093513],[1487116800000, 0.093376],[1489536000000, 0.093074],[1492214400000, 0.092290],[1494806400000, 0.094183],[1497484800000, 0.094931],[1500076800000, 0.097334],[1502755200000, 0.099508],[1505433600000, 0.101221],[1508025600000, 0.101164],[1510704000000, 0.100532],[1513296000000, 0.104111]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });