$(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: [[1514764800000,0.248593],[1514851200000,0.248593],[1514937600000,0.248593],[1515024000000,0.248446],[1515110400000,0.248662],[1515196800000,0.248962],[1515283200000,0.248962],[1515369600000,0.248962],[1515456000000,0.248962],[1515542400000,0.250555],[1515628800000,0.254243],[1515715200000,0.254737],[1515801600000,0.256783],[1515888000000,0.256783],[1515974400000,0.256783],[1516060800000,0.258247],[1516147200000,0.258804],[1516233600000,0.258718],[1516320000000,0.258758],[1516406400000,0.260804],[1516492800000,0.260804],[1516579200000,0.260804],[1516665600000,0.260513],[1516752000000,0.261223],[1516838400000,0.263853],[1516924800000,0.263945],[1517011200000,0.261148],[1517097600000,0.261148],[1517184000000,0.261148],[1517270400000,0.259491],[1517356800000,0.25774],[1517443200000,0.255786],[1517529600000,0.254154],[1517616000000,0.253874],[1517702400000,0.253874],[1517788800000,0.253874],[1517875200000,0.252518],[1517961600000,0.250845],[1518048000000,0.248148],[1518134400000,0.24743],[1518220800000,0.248589],[1518307200000,0.248589],[1518393600000,0.248589],[1518480000000,0.247049],[1518566400000,0.247918],[1518652800000,0.24859],[1518739200000,0.251153],[1518825600000,0.254205],[1518912000000,0.254205],[1518998400000,0.254205],[1519084800000,0.253492],[1519171200000,0.252613],[1519257600000,0.250945],[1519344000000,0.252783],[1519430400000,0.252844],[1519516800000,0.252844],[1519603200000,0.252844],[1519689600000,0.252828],[1519776000000,0.251567],[1519862400000,0.250461],[1519948800000,0.249726],[1520035200000,0.251761],[1520121600000,0.251761],[1520208000000,0.251761],[1520294400000,0.250665],[1520380800000,0.248041],[1520467200000,0.246563],[1520553600000,0.246563],[1520640000000,0.246563],[1520726400000,0.246563],[1520812800000,0.246563],[1520899200000,0.24338],[1520985600000,0.242451],[1521072000000,0.244188],[1521158400000,0.247694],[1521244800000,0.248967],[1521331200000,0.248967],[1521417600000,0.248967],[1521504000000,0.249063],[1521590400000,0.246995],[1521676800000,0.247424],[1521763200000,0.249202],[1521849600000,0.249941],[1521936000000,0.249941],[1522022400000,0.249941],[1522108800000,0.250221],[1522195200000,0.248448],[1522281600000,0.248763],[1522368000000,0.249365],[1522454400000,0.247144],[1522540800000,0.247144],[1522627200000,0.247144],[1522713600000,0.245771],[1522800000000,0.247831],[1522886400000,0.247187],[1522972800000,0.243468],[1523059200000,0.242472],[1523145600000,0.242472],[1523232000000,0.242472],[1523318400000,0.242472],[1523404800000,0.24273],[1523491200000,0.242754],[1523577600000,0.242525],[1523664000000,0.242597],[1523750400000,0.242597],[1523836800000,0.242597],[1523923200000,0.24307],[1524009600000,0.243526],[1524096000000,0.243878],[1524182400000,0.244378],[1524268800000,0.243358],[1524355200000,0.243358],[1524441600000,0.243358],[1524528000000,0.24152],[1524614400000,0.240523],[1524700800000,0.240627],[1524787200000,0.24021],[1524873600000,0.239622],[1524960000000,0.239622],[1525046400000,0.239622],[1525132800000,0.239622],[1525219200000,0.239622],[1525305600000,0.238201],[1525392000000,0.239707],[1525478400000,0.241506],[1525564800000,0.241506],[1525651200000,0.241506],[1525737600000,0.240419],[1525824000000,0.240417],[1525910400000,0.240417],[1525996800000,0.238911],[1526083200000,0.239686],[1526169600000,0.239686],[1526256000000,0.239686],[1526342400000,0.239004],[1526428800000,0.238176],[1526515200000,0.237878],[1526601600000,0.236613],[1526688000000,0.23571],[1526774400000,0.23571],[1526860800000,0.23571],[1526947200000,0.234422],[1527033600000,0.235259],[1527120000000,0.237433],[1527206400000,0.238353],[1527292800000,0.239035],[1527379200000,0.239035],[1527465600000,0.239035],[1527552000000,0.239035],[1527638400000,0.239634],[1527724800000,0.239833],[1527811200000,0.24001],[1527897600000,0.23855],[1527984000000,0.23855],[1528070400000,0.23855],[1528156800000,0.238805],[1528243200000,0.238424],[1528329600000,0.237555],[1528416000000,0.237808],[1528502400000,0.238812],[1528588800000,0.238812],[1528675200000,0.238812],[1528761600000,0.237322],[1528848000000,0.236499],[1528934400000,0.23635],[1529020800000,0.238139],[1529107200000,0.237826],[1529193600000,0.237826],[1529280000000,0.237826],[1529366400000,0.238371],[1529452800000,0.2406],[1529539200000,null],[1529625600000,0.23788],[1529712000000,0.238216],[1529798400000,0.238216],[1529884800000,0.238216],[1529971200000,0.238851],[1530057600000,0.238906],[1530144000000,0.238773],[1530230400000,0.238773],[1530316800000,0.238773],[1530403200000,0.238773],[1530489600000,0.238773],[1530576000000,0.236941],[1530662400000,0.237649],[1530748800000,0.239265],[1530835200000,0.238915],[1530921600000,0.23797],[1531008000000,0.23797],[1531094400000,0.23797],[1531180800000,0.237661],[1531267200000,0.235601],[1531353600000,0.23579],[1531440000000,0.233178],[1531526400000,0.233084],[1531612800000,0.233084],[1531699200000,0.233084],[1531785600000,0.233304],[1531872000000,0.232893],[1531958400000,0.233278],[1532044800000,0.234206],[1532131200000,0.2357],[1532217600000,0.2357],[1532304000000,0.2357],[1532390400000,0.238043],[1532476800000,0.239261],[1532563200000,0.239806],[1532649600000,0.240357],[1532736000000,0.240698],[1532822400000,0.240698],[1532908800000,0.240698],[1532995200000,0.240857],[1533081600000,null],[1533168000000,0.241074],[1533254400000,0.242445],[1533340800000,0.242808],[1533427200000,0.242808],[1533513600000,0.242808],[1533600000000,0.24338],[1533686400000,0.243248],[1533772800000,0.242744],[1533859200000,0.243948],[1533945600000,0.245633],[1534032000000,0.245633],[1534118400000,0.245633],[1534204800000,0.247251],[1534291200000,0.247743],[1534377600000,0.247282],[1534464000000,0.249654],[1534550400000,0.252718],[1534636800000,0.252718],[1534723200000,0.252718],[1534809600000,0.250532],[1534896000000,0.250936],[1534982400000,0.252903],[1535068800000,0.251354],[1535155200000,0.251354],[1535241600000,0.251354],[1535328000000,0.251354],[1535414400000,0.251153],[1535500800000,0.252618],[1535587200000,0.252708],[1535673600000,0.253716],[1535760000000,0.255014],[1535846400000,0.255014],[1535932800000,0.255014],[1536019200000,0.255323],[1536105600000,0.256171],[1536192000000,0.254752],[1536278400000,0.253466],[1536364800000,0.255008],[1536451200000,0.255008],[1536537600000,0.255008],[1536624000000,0.253859],[1536710400000,0.252429],[1536796800000,0.251438],[1536883200000,0.252031],[1536969600000,0.251678],[1537056000000,0.251678],[1537142400000,0.251678],[1537228800000,0.250988],[1537315200000,0.250958],[1537401600000,0.250556],[1537488000000,0.250235],[1537574400000,0.249163],[1537660800000,0.249163],[1537747200000,0.249163],[1537833600000,0.249662],[1537920000000,0.248891],[1538006400000,0.249086],[1538092800000,0.250691],[1538179200000,0.249373],[1538265600000,0.249373],[1538352000000,0.249373],[1538438400000,0.247589],[1538524800000,0.248283],[1538611200000,0.248756],[1538697600000,0.246797],[1538784000000,0.246618],[1538870400000,0.246618],[1538956800000,0.246618],[1539043200000,0.247785],[1539129600000,0.248058],[1539216000000,0.24728],[1539302400000,0.24917],[1539388800000,0.248666],[1539475200000,0.248666],[1539561600000,0.248666],[1539648000000,0.248666],[1539734400000,0.249096],[1539820800000,0.248692],[1539907200000,0.249198],[1539993600000,0.250482],[1540080000000,0.250482],[1540166400000,0.250482],[1540252800000,0.248983],[1540339200000,0.250931],[1540425600000,0.250307],[1540512000000,0.252186],[1540598400000,0.252244],[1540684800000,0.252244],[1540771200000,0.252244],[1540857600000,0.250917],[1540944000000,0.249677],[1541030400000,0.248341],[1541116800000,0.249613],[1541203200000,0.249199],[1541289600000,0.249199],[1541376000000,0.249199],[1541462400000,0.24729],[1541548800000,0.247065],[1541635200000,0.246464],[1541721600000,0.2456],[1541808000000,0.244823],[1541894400000,0.244823],[1541980800000,0.244823],[1542067200000,0.245192],[1542153600000,0.245002],[1542240000000,0.24446],[1542326400000,0.244997],[1542412800000,0.245313],[1542499200000,0.245313],[1542585600000,0.245313],[1542672000000,0.246155],[1542758400000,0.247071],[1542844800000,0.24557],[1542931200000,0.245641],[1543017600000,0.24638],[1543104000000,0.24638],[1543190400000,0.24638],[1543276800000,0.246317],[1543363200000,0.247456],[1543449600000,0.248298],[1543536000000,0.25063],[1543622400000,0.248533],[1543708800000,0.248533],[1543795200000,0.248533],[1543881600000,0.24806],[1543968000000,0.249369],[1544054400000,0.247553],[1544140800000,0.247158],[1544227200000,0.246486],[1544313600000,0.246486],[1544400000000,0.246486],[1544486400000,0.246409],[1544572800000,0.244931],[1544659200000,0.245209],[1544745600000,0.245526],[1544832000000,0.245174],[1544918400000,0.245174],[1545004800000,0.245174],[1545091200000,0.246229],[1545177600000,0.247791],[1545264000000,0.246751],[1545350400000,0.246821],[1545436800000,0.246599],[1545523200000,0.246599],[1545609600000,0.246599],[1545696000000,0.246599],[1545782400000,0.246599],[1545868800000,0.245964],[1545955200000,0.247626],[1546041600000,0.250903],[1546128000000,0.250903]], 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: [[1515974400000, 0.255992],[1515974400000, 0.255992],[1518652800000, 0.251656],[1521072000000, 0.248324],[1523750400000, 0.243030],[1526342400000, 0.238734],[1529020800000, 0.238347],[1531612800000, 0.236997],[1534291200000, 0.248074],[1536969600000, 0.252062],[1539561600000, 0.249219],[1542240000000, 0.246610],[1544832000000, 0.247151]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });