$(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: [[1514764800000,0.107945],[1514851200000,0.107945],[1514937600000,0.107945],[1515024000000,0.108419],[1515110400000,0.109546],[1515196800000,0.11002],[1515283200000,0.11002],[1515369600000,0.11002],[1515456000000,0.11002],[1515542400000,0.10878],[1515628800000,0.109615],[1515715200000,0.110472],[1515801600000,0.112182],[1515888000000,0.112182],[1515974400000,0.112182],[1516060800000,0.11354],[1516147200000,0.113497],[1516233600000,0.113292],[1516320000000,0.114127],[1516406400000,0.114325],[1516492800000,0.114325],[1516579200000,0.114325],[1516665600000,0.114132],[1516752000000,0.114005],[1516838400000,0.115383],[1516924800000,0.115288],[1517011200000,0.1146],[1517097600000,0.1146],[1517184000000,0.1146],[1517270400000,0.113035],[1517356800000,0.112088],[1517443200000,0.111652],[1517529600000,0.111987],[1517616000000,0.112561],[1517702400000,0.112561],[1517788800000,0.112561],[1517875200000,0.111472],[1517961600000,0.108986],[1518048000000,0.108002],[1518134400000,0.10687],[1518220800000,0.106412],[1518307200000,0.106412],[1518393600000,0.106412],[1518480000000,0.105505],[1518566400000,0.105486],[1518652800000,0.105215],[1518739200000,0.107261],[1518825600000,0.108075],[1518912000000,0.108075],[1518998400000,0.108075],[1519084800000,0.107735],[1519171200000,0.107152],[1519257600000,0.106448],[1519344000000,0.106282],[1519430400000,0.10609],[1519516800000,0.10609],[1519603200000,0.10609],[1519689600000,0.106101],[1519776000000,0.10558],[1519862400000,0.104292],[1519948800000,0.103446],[1520035200000,0.104088],[1520121600000,0.104088],[1520208000000,0.104088],[1520294400000,0.103874],[1520380800000,0.104442],[1520467200000,0.103936],[1520553600000,0.103936],[1520640000000,0.103936],[1520726400000,0.103936],[1520812800000,0.103936],[1520899200000,0.102255],[1520985600000,0.102846],[1521072000000,0.103253],[1521158400000,0.104231],[1521244800000,0.104224],[1521331200000,0.104224],[1521417600000,0.104224],[1521504000000,0.104637],[1521590400000,0.103774],[1521676800000,0.103679],[1521763200000,0.103748],[1521849600000,0.103635],[1521936000000,0.103635],[1522022400000,0.103635],[1522108800000,0.104392],[1522195200000,0.104065],[1522281600000,0.104756],[1522368000000,0.104778],[1522454400000,0.103844],[1522540800000,0.103844],[1522627200000,0.103844],[1522713600000,0.103268],[1522800000000,0.103787],[1522886400000,0.103444],[1522972800000,0.102771],[1523059200000,0.101873],[1523145600000,0.101873],[1523232000000,0.101873],[1523318400000,0.101873],[1523404800000,0.102971],[1523491200000,0.102992],[1523577600000,0.102835],[1523664000000,0.103423],[1523750400000,0.103423],[1523836800000,0.103423],[1523923200000,0.104004],[1524009600000,0.103689],[1524096000000,0.104436],[1524182400000,0.104627],[1524268800000,0.103771],[1524355200000,0.103771],[1524441600000,0.103771],[1524528000000,0.10268],[1524614400000,0.102197],[1524700800000,0.102205],[1524787200000,0.102036],[1524873600000,0.101068],[1524960000000,0.101068],[1525046400000,0.101068],[1525132800000,0.101068],[1525219200000,0.101068],[1525305600000,0.100001],[1525392000000,0.100009],[1525478400000,0.100312],[1525564800000,0.100312],[1525651200000,0.100312],[1525737600000,0.099544],[1525824000000,0.098828],[1525910400000,0.098828],[1525996800000,0.099127],[1526083200000,0.099263],[1526169600000,0.099263],[1526256000000,0.099263],[1526342400000,0.099483],[1526428800000,0.098275],[1526515200000,0.097342],[1526601600000,0.097656],[1526688000000,0.096968],[1526774400000,0.096968],[1526860800000,0.096968],[1526947200000,0.096029],[1527033600000,0.09686],[1527120000000,0.095566],[1527206400000,0.095903],[1527292800000,0.095435],[1527379200000,0.095435],[1527465600000,0.095435],[1527552000000,0.095435],[1527638400000,0.094251],[1527724800000,0.095132],[1527811200000,0.095834],[1527897600000,0.095274],[1527984000000,0.095274],[1528070400000,0.095274],[1528156800000,0.09626],[1528243200000,0.095825],[1528329600000,0.096598],[1528416000000,0.097608],[1528502400000,0.096092],[1528588800000,0.096092],[1528675200000,0.096092],[1528761600000,0.095637],[1528848000000,0.096133],[1528934400000,0.095934],[1529020800000,0.095785],[1529107200000,0.094463],[1529193600000,0.094463],[1529280000000,0.094463],[1529366400000,0.094656],[1529452800000,0.09405],[1529539200000,null],[1529625600000,0.093059],[1529712000000,0.094316],[1529798400000,0.094316],[1529884800000,0.094316],[1529971200000,0.094103],[1530057600000,0.093767],[1530144000000,0.09358],[1530230400000,0.09358],[1530316800000,0.09358],[1530403200000,0.09358],[1530489600000,0.09358],[1530576000000,0.092575],[1530662400000,0.093716],[1530748800000,0.094516],[1530835200000,0.095825],[1530921600000,0.095122],[1531008000000,0.095122],[1531094400000,0.095122],[1531180800000,0.095885],[1531267200000,0.094504],[1531353600000,0.0948],[1531440000000,0.094001],[1531526400000,0.094252],[1531612800000,0.094252],[1531699200000,0.094252],[1531785600000,0.095345],[1531872000000,0.094936],[1531958400000,0.094279],[1532044800000,0.094165],[1532131200000,0.094778],[1532217600000,0.094778],[1532304000000,0.094778],[1532390400000,0.095051],[1532476800000,0.095268],[1532563200000,0.095504],[1532649600000,0.096245],[1532736000000,0.096272],[1532822400000,0.096272],[1532908800000,0.096272],[1532995200000,0.097077],[1533081600000,null],[1533168000000,0.098129],[1533254400000,0.097504],[1533340800000,0.09788],[1533427200000,0.09788],[1533513600000,0.09788],[1533600000000,0.097704],[1533686400000,0.097987],[1533772800000,0.09787],[1533859200000,0.098158],[1533945600000,0.096702],[1534032000000,0.096702],[1534118400000,0.096702],[1534204800000,0.096267],[1534291200000,0.097043],[1534377600000,0.095639],[1534464000000,0.096951],[1534550400000,0.09812],[1534636800000,0.09812],[1534723200000,0.09812],[1534809600000,0.097764],[1534896000000,0.098542],[1534982400000,0.100303],[1535068800000,0.099596],[1535155200000,0.099596],[1535241600000,0.099596],[1535328000000,0.099596],[1535414400000,0.10016],[1535500800000,0.101448],[1535587200000,0.100988],[1535673600000,0.101325],[1535760000000,0.100872],[1535846400000,0.100872],[1535932800000,0.100872],[1536019200000,0.100877],[1536105600000,0.100588],[1536192000000,0.100382],[1536278400000,0.100574],[1536364800000,0.101124],[1536451200000,0.101124],[1536537600000,0.101124],[1536624000000,0.100378],[1536710400000,0.100126],[1536796800000,0.099678],[1536883200000,0.10053],[1536969600000,0.101681],[1537056000000,0.101681],[1537142400000,0.101681],[1537228800000,0.101161],[1537315200000,0.101687],[1537401600000,0.10145],[1537488000000,0.102011],[1537574400000,0.101834],[1537660800000,0.101834],[1537747200000,0.101834],[1537833600000,0.102307],[1537920000000,0.101974],[1538006400000,0.101996],[1538092800000,0.102344],[1538179200000,0.100889],[1538265600000,0.100889],[1538352000000,0.100889],[1538438400000,0.101361],[1538524800000,0.100904],[1538611200000,0.101291],[1538697600000,0.099889],[1538784000000,0.099555],[1538870400000,0.099555],[1538956800000,0.099555],[1539043200000,0.099216],[1539129600000,0.098715],[1539216000000,0.099072],[1539302400000,0.099677],[1539388800000,0.099719],[1539475200000,0.099719],[1539561600000,0.099719],[1539648000000,0.099719],[1539734400000,0.100486],[1539820800000,0.099793],[1539907200000,0.100044],[1539993600000,0.100015],[1540080000000,0.100015],[1540166400000,0.100015],[1540252800000,0.099887],[1540339200000,0.100089],[1540425600000,0.099412],[1540512000000,0.099867],[1540598400000,0.09885],[1540684800000,0.09885],[1540771200000,0.09885],[1540857600000,0.098944],[1540944000000,0.098565],[1541030400000,0.097893],[1541116800000,0.099332],[1541203200000,0.099867],[1541289600000,0.099867],[1541376000000,0.099867],[1541462400000,0.098789],[1541548800000,0.099199],[1541635200000,0.099594],[1541721600000,0.099252],[1541808000000,0.09849],[1541894400000,0.09849],[1541980800000,0.09849],[1542067200000,0.097705],[1542153600000,0.097366],[1542240000000,0.097457],[1542326400000,0.097515],[1542412800000,0.097819],[1542499200000,0.097819],[1542585600000,0.097819],[1542672000000,0.098638],[1542758400000,0.098705],[1542844800000,0.098524],[1542931200000,0.098403],[1543017600000,0.097984],[1543104000000,0.097984],[1543190400000,0.097984],[1543276800000,0.098176],[1543363200000,0.098246],[1543449600000,0.098341],[1543536000000,0.099959],[1543622400000,0.099061],[1543708800000,0.099061],[1543795200000,0.099061],[1543881600000,0.098914],[1543968000000,0.099285],[1544054400000,0.09819],[1544140800000,0.097749],[1544227200000,0.097802],[1544313600000,0.097802],[1544400000000,0.097802],[1544486400000,0.098205],[1544572800000,0.09751],[1544659200000,0.097552],[1544745600000,0.098061],[1544832000000,0.096978],[1544918400000,0.096978],[1545004800000,0.096978],[1545091200000,0.097815],[1545177600000,0.098055],[1545264000000,0.097898],[1545350400000,0.098121],[1545436800000,0.097255],[1545523200000,0.097255],[1545609600000,0.097255],[1545696000000,0.097255],[1545782400000,0.097255],[1545868800000,0.096907],[1545955200000,0.097138],[1546041600000,0.098611],[1546128000000,0.098611]], 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.112015],[1515974400000, 0.112015],[1518652800000, 0.107898],[1521072000000, 0.103930],[1523750400000, 0.102930],[1526342400000, 0.097946],[1529020800000, 0.095049],[1531612800000, 0.094907],[1534291200000, 0.098342],[1536969600000, 0.101212],[1539561600000, 0.099750],[1542240000000, 0.098519],[1544832000000, 0.097904]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });