$(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: [[1483228800000,0.232896],[1483315200000,0.232896],[1483401600000,0.232896],[1483488000000,0.232896],[1483574400000,0.227159],[1483660800000,0.227159],[1483747200000,0.232944],[1483833600000,0.232944],[1483920000000,0.232944],[1484006400000,0.232944],[1484092800000,0.233868],[1484179200000,0.23315],[1484265600000,0.239149],[1484352000000,null],[1484438400000,0.241967],[1484524800000,0.241967],[1484611200000,0.242893],[1484697600000,0.243763],[1484784000000,0.242192],[1484870400000,0.23951],[1484956800000,0.238115],[1485043200000,0.238115],[1485129600000,0.238115],[1485216000000,0.240608],[1485302400000,0.240204],[1485388800000,0.240001],[1485475200000,0.237892],[1485561600000,0.236111],[1485648000000,0.236111],[1485734400000,0.236111],[1485820800000,0.236757],[1485907200000,0.238839],[1485993600000,0.238294],[1486080000000,0.24026],[1486166400000,0.239398],[1486252800000,0.239398],[1486339200000,0.239398],[1486425600000,0.242799],[1486512000000,0.240591],[1486598400000,0.240407],[1486684800000,0.240714],[1486771200000,0.239686],[1486857600000,0.239686],[1486944000000,0.239686],[1487030400000,0.238824],[1487116800000,0.240197],[1487203200000,0.235761],[1487289600000,0.237688],[1487376000000,0.239697],[1487462400000,0.239697],[1487548800000,0.239697],[1487635200000,0.238865],[1487721600000,0.237912],[1487808000000,0.238712],[1487894400000,0.238458],[1487980800000,0.240419],[1488067200000,0.240419],[1488153600000,0.240419],[1488240000000,0.24095],[1488326400000,0.24224],[1488412800000,0.238897],[1488499200000,0.236891],[1488585600000,0.237122],[1488672000000,0.237122],[1488758400000,0.237122],[1488844800000,0.23742],[1488931200000,0.236401],[1489017600000,0.236401],[1489104000000,0.234736],[1489190400000,0.232273],[1489276800000,0.232273],[1489363200000,0.232273],[1489449600000,0.234391],[1489536000000,0.234193],[1489622400000,0.234481],[1489708800000,0.238072],[1489795200000,0.237818],[1489881600000,0.237818],[1489968000000,0.237818],[1490054400000,0.23855],[1490140800000,0.238563],[1490227200000,0.242295],[1490313600000,0.244508],[1490400000000,0.244051],[1490486400000,0.244051],[1490572800000,0.244051],[1490659200000,0.24654],[1490745600000,0.245747],[1490832000000,0.243876],[1490918400000,0.242601],[1491004800000,0.241647],[1491091200000,0.241647],[1491177600000,0.241647],[1491264000000,0.242844],[1491350400000,0.24572],[1491436800000,0.244732],[1491523200000,0.244483],[1491609600000,0.243738],[1491696000000,0.243738],[1491782400000,0.243738],[1491868800000,0.242015],[1491955200000,0.243272],[1492041600000,0.245239],[1492128000000,0.246157],[1492214400000,0.245679],[1492300800000,0.245679],[1492387200000,0.245679],[1492473600000,0.245679],[1492560000000,0.246652],[1492646400000,0.245737],[1492732800000,0.245392],[1492819200000,0.24502],[1492905600000,0.24502],[1492992000000,0.24502],[1493078400000,0.241795],[1493164800000,0.241023],[1493251200000,0.238675],[1493337600000,0.238234],[1493424000000,0.238429],[1493510400000,0.238429],[1493596800000,0.238429],[1493683200000,0.238429],[1493769600000,0.238429],[1493856000000,0.236474],[1493942400000,0.234701],[1494028800000,0.235679],[1494115200000,0.235679],[1494201600000,0.235679],[1494288000000,0.235679],[1494374400000,0.235679],[1494460800000,0.232471],[1494547200000,0.232046],[1494633600000,0.232543],[1494720000000,0.232543],[1494806400000,0.232543],[1494892800000,0.233387],[1494979200000,0.232615],[1495065600000,0.235285],[1495152000000,0.23871],[1495238400000,0.237062],[1495324800000,0.237062],[1495411200000,0.237062],[1495497600000,0.236589],[1495584000000,0.236724],[1495670400000,0.234915],[1495756800000,0.235113],[1495843200000,0.237146],[1495929600000,0.237146],[1496016000000,0.237146],[1496102400000,0.236996],[1496188800000,0.237509],[1496275200000,0.237322],[1496361600000,0.236677],[1496448000000,0.235797],[1496534400000,0.235797],[1496620800000,0.235797],[1496707200000,0.235797],[1496793600000,0.239997],[1496880000000,0.239409],[1496966400000,0.237238],[1497052800000,0.236528],[1497139200000,0.236528],[1497225600000,0.236528],[1497312000000,0.237258],[1497398400000,0.236238],[1497484800000,0.235836],[1497571200000,0.23619],[1497657600000,0.233722],[1497744000000,0.233722],[1497830400000,0.233722],[1497916800000,0.234535],[1498003200000,0.233759],[1498089600000,0.233544],[1498176000000,0.233911],[1498262400000,0.233874],[1498348800000,0.233874],[1498435200000,0.233874],[1498521600000,0.233148],[1498608000000,0.233142],[1498694400000,0.233142],[1498780800000,0.231642],[1498867200000,0.232469],[1498953600000,0.232469],[1499040000000,0.232469],[1499126400000,0.230057],[1499212800000,0.229739],[1499299200000,0.230026],[1499385600000,0.22998],[1499472000000,0.228794],[1499558400000,0.228794],[1499644800000,0.228794],[1499731200000,0.227812],[1499817600000,0.227225],[1499904000000,0.228158],[1499990400000,0.22953],[1500076800000,0.230048],[1500163200000,0.230048],[1500249600000,0.230048],[1500336000000,0.230955],[1500422400000,0.231441],[1500508800000,0.231895],[1500595200000,0.230986],[1500681600000,0.232353],[1500768000000,0.232353],[1500854400000,0.232353],[1500940800000,0.233002],[1501027200000,0.231975],[1501113600000,0.231386],[1501200000000,0.232412],[1501286400000,0.233155],[1501372800000,0.233155],[1501459200000,0.233155],[1501545600000,0.23377],[1501632000000,0.233987],[1501718400000,0.233944],[1501804800000,0.234516],[1501891200000,0.234716],[1501977600000,0.234716],[1502064000000,0.234716],[1502150400000,0.232593],[1502236800000,0.233293],[1502323200000,0.234406],[1502409600000,0.234097],[1502496000000,0.235426],[1502582400000,0.235426],[1502668800000,0.235426],[1502755200000,0.233884],[1502841600000,0.231839],[1502928000000,0.230724],[1503014400000,0.231619],[1503100800000,0.233758],[1503187200000,0.233758],[1503273600000,0.233758],[1503360000000,null],[1503446400000,0.232729],[1503532800000,0.234179],[1503619200000,0.234179],[1503705600000,0.234179],[1503792000000,0.234179],[1503878400000,0.234179],[1503964800000,0.233448],[1504051200000,0.234226],[1504137600000,0.232233],[1504224000000,0.232269],[1504310400000,0.233773],[1504396800000,0.233773],[1504483200000,0.233773],[1504569600000,0.236151],[1504656000000,0.2374],[1504742400000,0.238604],[1504828800000,0.238825],[1504915200000,0.242811],[1505001600000,0.242811],[1505088000000,0.242811],[1505174400000,0.239321],[1505260800000,0.237138],[1505347200000,0.23705],[1505433600000,0.236363],[1505520000000,0.236023],[1505606400000,0.236023],[1505692800000,0.236023],[1505779200000,0.235034],[1505865600000,0.234402],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,0.235641],[1506729600000,0.236249],[1506816000000,0.236249],[1506902400000,0.236249],[1506988800000,0.23625],[1507075200000,0.23639],[1507161600000,0.238541],[1507248000000,0.238305],[1507334400000,0.236742],[1507420800000,0.236742],[1507507200000,0.236742],[1507593600000,0.235627],[1507680000000,0.236618],[1507766400000,0.236505],[1507852800000,0.237215],[1507939200000,0.237215],[1508025600000,0.237215],[1508112000000,0.237215],[1508198400000,0.237215],[1508284800000,0.236039],[1508371200000,0.234107],[1508457600000,0.235471],[1508544000000,0.234495],[1508630400000,0.234495],[1508716800000,0.234495],[1508803200000,null],[1508889600000,0.234166],[1508976000000,0.234718],[1509062400000,0.235733],[1509148800000,0.235356],[1509235200000,0.235356],[1509321600000,0.235356],[1509408000000,0.236322],[1509494400000,0.236833],[1509580800000,0.235379],[1509667200000,0.235979],[1509753600000,0.236639],[1509840000000,0.236639],[1509926400000,0.236639],[1510012800000,0.235237],[1510099200000,0.234264],[1510185600000,0.234692],[1510272000000,0.234441],[1510358400000,0.233969],[1510444800000,0.233969],[1510531200000,0.233969],[1510617600000,0.233773],[1510704000000,0.233476],[1510790400000,0.234957],[1510876800000,0.234115],[1510963200000,0.235323],[1511049600000,0.235323],[1511136000000,0.235323],[1511222400000,0.236129],[1511308800000,0.23541],[1511395200000,0.237886],[1511481600000,0.241486],[1511568000000,0.241722],[1511654400000,0.241722],[1511740800000,0.241722],[1511827200000,0.241718],[1511913600000,0.24157],[1512000000000,0.241601],[1512086400000,0.241787],[1512172800000,0.240494],[1512259200000,0.240494],[1512345600000,0.240494],[1512432000000,0.241139],[1512518400000,0.241296],[1512604800000,0.241736],[1512691200000,0.240539],[1512777600000,0.23887],[1512864000000,0.23887],[1512950400000,0.23887],[1513036800000,0.239483],[1513123200000,0.239453],[1513209600000,0.240628],[1513296000000,0.2434],[1513382400000,0.246327],[1513468800000,0.246327],[1513555200000,0.246327],[1513641600000,0.247829],[1513728000000,0.247449],[1513814400000,0.245984],[1513900800000,0.245444],[1513987200000,0.24656],[1514073600000,0.24656],[1514160000000,0.24656],[1514246400000,0.24656],[1514332800000,0.246504],[1514419200000,0.246805],[1514505600000,0.248593],[1514592000000,0.248593]], 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.236476],[1484438400000, 0.236476],[1487116800000, 0.239531],[1489536000000, 0.238729],[1492214400000, 0.243425],[1494806400000, 0.235725],[1497484800000, 0.235285],[1500076800000, 0.230872],[1502755200000, 0.233797],[1505433600000, 0.236921],[1508025600000, 0.236105],[1510704000000, 0.236730],[1513296000000, 0.243825]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });