$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1514764800000,4.29423],[1514851200000,4.29423],[1514937600000,4.29423],[1515024000000,4.28984],[1515110400000,4.31208],[1515196800000,4.34683],[1515283200000,4.34683],[1515369600000,4.34683],[1515456000000,4.34683],[1515542400000,4.32185],[1515628800000,4.3556],[1515715200000,4.37534],[1515801600000,4.41676],[1515888000000,4.41676],[1515974400000,4.41676],[1516060800000,4.43731],[1516147200000,4.4481],[1516233600000,4.45463],[1516320000000,4.48057],[1516406400000,4.50419],[1516492800000,4.50419],[1516579200000,4.50419],[1516665600000,4.50929],[1516752000000,4.50597],[1516838400000,4.52934],[1516924800000,4.54038],[1517011200000,4.51159],[1517097600000,4.51159],[1517184000000,4.51159],[1517270400000,4.46096],[1517356800000,4.42809],[1517443200000,4.42745],[1517529600000,4.42602],[1517616000000,4.43496],[1517702400000,4.43496],[1517788800000,4.43496],[1517875200000,4.41054],[1517961600000,4.37163],[1518048000000,4.32213],[1518134400000,4.28534],[1518220800000,4.29267],[1518307200000,4.29267],[1518393600000,4.29267],[1518480000000,4.24132],[1518566400000,4.20843],[1518652800000,4.20129],[1518739200000,4.21784],[1518825600000,4.25426],[1518912000000,4.25426],[1518998400000,4.25426],[1519084800000,4.2576],[1519171200000,4.26721],[1519257600000,4.25385],[1519344000000,4.25605],[1519430400000,4.26025],[1519516800000,4.26025],[1519603200000,4.26025],[1519689600000,4.28086],[1519776000000,4.2682],[1519862400000,4.2363],[1519948800000,4.1997],[1520035200000,4.1821],[1520121600000,4.1821],[1520208000000,4.1821],[1520294400000,4.17679],[1520380800000,4.1638],[1520467200000,4.12834],[1520553600000,4.12834],[1520640000000,4.12834],[1520726400000,4.12834],[1520812800000,4.12834],[1520899200000,4.09476],[1520985600000,4.09873],[1521072000000,4.12052],[1521158400000,4.15862],[1521244800000,4.16629],[1521331200000,4.16629],[1521417600000,4.16629],[1521504000000,4.17481],[1521590400000,4.15302],[1521676800000,4.15183],[1521763200000,4.14453],[1521849600000,4.15869],[1521936000000,4.15869],[1522022400000,4.15869],[1522108800000,4.18952],[1522195200000,4.18843],[1522281600000,4.19864],[1522368000000,4.22164],[1522454400000,4.18404],[1522540800000,4.18404],[1522627200000,4.18404],[1522713600000,4.1608],[1522800000000,4.18953],[1522886400000,4.16496],[1522972800000,4.13412],[1523059200000,4.12785],[1523145600000,4.12785],[1523232000000,4.12785],[1523318400000,4.12785],[1523404800000,4.13017],[1523491200000,4.12602],[1523577600000,4.13456],[1523664000000,4.15936],[1523750400000,4.15936],[1523836800000,4.15936],[1523923200000,4.15208],[1524009600000,4.15134],[1524096000000,4.16209],[1524182400000,4.17836],[1524268800000,4.16055],[1524355200000,4.16055],[1524441600000,4.16055],[1524528000000,4.14108],[1524614400000,4.15134],[1524700800000,4.15464],[1524787200000,4.14708],[1524873600000,4.13217],[1524960000000,4.13217],[1525046400000,4.13217],[1525132800000,4.13217],[1525219200000,4.13217],[1525305600000,4.11305],[1525392000000,4.12541],[1525478400000,4.13662],[1525564800000,4.13662],[1525651200000,4.13662],[1525737600000,4.12924],[1525824000000,4.11743],[1525910400000,4.11743],[1525996800000,4.12509],[1526083200000,4.13708],[1526169600000,4.13708],[1526256000000,4.13708],[1526342400000,4.12964],[1526428800000,4.11955],[1526515200000,4.11032],[1526601600000,4.11258],[1526688000000,4.09929],[1526774400000,4.09929],[1526860800000,4.09929],[1526947200000,4.08428],[1527033600000,4.09366],[1527120000000,4.08255],[1527206400000,4.08972],[1527292800000,4.09183],[1527379200000,4.09183],[1527465600000,4.09183],[1527552000000,4.09183],[1527638400000,4.06681],[1527724800000,4.07124],[1527811200000,4.0774],[1527897600000,4.06933],[1527984000000,4.06933],[1528070400000,4.06933],[1528156800000,4.08059],[1528243200000,4.08418],[1528329600000,4.09146],[1528416000000,4.09421],[1528502400000,4.07799],[1528588800000,4.07799],[1528675200000,4.07799],[1528761600000,4.07342],[1528848000000,4.07332],[1528934400000,4.08172],[1529020800000,4.10027],[1529107200000,4.09808],[1529193600000,4.09808],[1529280000000,4.09808],[1529366400000,4.08877],[1529452800000,4.07989],[1529539200000,null],[1529625600000,4.04806],[1529712000000,4.03798],[1529798400000,4.03798],[1529884800000,4.03798],[1529971200000,4.0047],[1530057600000,3.98285],[1530144000000,3.98988],[1530230400000,3.98988],[1530316800000,3.98988],[1530403200000,3.98988],[1530489600000,3.98988],[1530576000000,3.93528],[1530662400000,3.95943],[1530748800000,3.98657],[1530835200000,3.98427],[1530921600000,3.95869],[1531008000000,3.95869],[1531094400000,3.95869],[1531180800000,3.96909],[1531267200000,3.94754],[1531353600000,3.92778],[1531440000000,3.93117],[1531526400000,3.91521],[1531612800000,3.91521],[1531699200000,3.91521],[1531785600000,3.92401],[1531872000000,3.91931],[1531958400000,3.91338],[1532044800000,3.90517],[1532131200000,3.8963],[1532217600000,3.8963],[1532304000000,3.8963],[1532390400000,3.89753],[1532476800000,3.91125],[1532563200000,3.93776],[1532649600000,3.92943],[1532736000000,3.91551],[1532822400000,3.91551],[1532908800000,3.91551],[1532995200000,3.92172],[1533081600000,null],[1533168000000,3.96571],[1533254400000,3.94624],[1533340800000,3.96427],[1533427200000,3.96427],[1533513600000,3.96427],[1533600000000,3.96101],[1533686400000,3.95976],[1533772800000,3.94365],[1533859200000,3.97584],[1533945600000,3.97775],[1534032000000,3.97775],[1534118400000,3.97775],[1534204800000,3.97022],[1534291200000,3.99037],[1534377600000,3.96894],[1534464000000,4.01314],[1534550400000,4.05244],[1534636800000,4.05244],[1534723200000,4.05244],[1534809600000,4.03691],[1534896000000,4.04727],[1534982400000,4.07598],[1535068800000,4.04947],[1535155200000,4.04947],[1535241600000,4.04947],[1535328000000,4.04947],[1535414400000,4.08571],[1535500800000,4.12451],[1535587200000,4.11722],[1535673600000,4.13889],[1535760000000,4.13104],[1535846400000,4.13104],[1535932800000,4.13104],[1536019200000,4.15864],[1536105600000,4.16591],[1536192000000,4.15861],[1536278400000,4.13293],[1536364800000,4.13078],[1536451200000,4.13078],[1536537600000,4.13078],[1536624000000,4.10903],[1536710400000,4.09035],[1536796800000,4.07954],[1536883200000,4.10895],[1536969600000,4.10721],[1537056000000,4.10721],[1537142400000,4.10721],[1537228800000,4.09622],[1537315200000,4.09978],[1537401600000,4.10185],[1537488000000,4.0996],[1537574400000,4.09912],[1537660800000,4.09912],[1537747200000,4.09912],[1537833600000,4.09954],[1537920000000,4.08208],[1538006400000,4.09385],[1538092800000,4.11282],[1538179200000,4.10801],[1538265600000,4.10801],[1538352000000,4.10801],[1538438400000,4.10733],[1538524800000,4.1166],[1538611200000,4.12299],[1538697600000,4.10183],[1538784000000,4.08872],[1538870400000,4.08872],[1538956800000,4.08872],[1539043200000,4.05516],[1539129600000,4.0552],[1539216000000,4.04458],[1539302400000,4.04992],[1539388800000,4.03834],[1539475200000,4.03834],[1539561600000,4.03834],[1539648000000,4.03834],[1539734400000,4.04052],[1539820800000,4.02921],[1539907200000,4.04035],[1539993600000,4.06657],[1540080000000,4.06657],[1540166400000,4.06657],[1540252800000,4.04451],[1540339200000,4.05837],[1540425600000,4.0627],[1540512000000,4.08042],[1540598400000,4.06946],[1540684800000,4.06946],[1540771200000,4.06946],[1540857600000,4.05295],[1540944000000,4.04386],[1541030400000,4.03179],[1541116800000,4.05843],[1541203200000,4.0806],[1541289600000,4.0806],[1541376000000,4.0806],[1541462400000,4.04334],[1541548800000,4.04328],[1541635200000,4.0346],[1541721600000,4.02863],[1541808000000,4.01332],[1541894400000,4.01332],[1541980800000,4.01332],[1542067200000,4.00698],[1542153600000,4.01239],[1542240000000,4.00384],[1542326400000,4.0025],[1542412800000,3.9933],[1542499200000,3.9933],[1542585600000,3.9933],[1542672000000,3.9984],[1542758400000,3.99868],[1542844800000,4.00505],[1542931200000,4.00225],[1543017600000,4.00094],[1543104000000,4.00094],[1543190400000,4.00094],[1543276800000,4.01945],[1543363200000,4.04504],[1543449600000,4.06541],[1543536000000,4.08899],[1543622400000,4.0633],[1543708800000,4.0633],[1543795200000,4.0633],[1543881600000,4.08911],[1543968000000,4.1147],[1544054400000,4.0802],[1544140800000,4.0448],[1544227200000,4.04363],[1544313600000,4.04363],[1544400000000,4.04363],[1544486400000,4.01877],[1544572800000,4.01728],[1544659200000,4.03699],[1544745600000,4.04974],[1544832000000,4.03367],[1544918400000,4.03367],[1545004800000,4.03367],[1545091200000,4.04306],[1545177600000,4.03832],[1545264000000,4.01754],[1545350400000,4.00414],[1545436800000,3.97248],[1545523200000,3.97248],[1545609600000,3.97248],[1545696000000,3.97248],[1545782400000,3.97248],[1545868800000,3.95111],[1545955200000,3.99897],[1546041600000,4.02576],[1546128000000,4.02576]], 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, 4.419903],[1515974400000, 4.419903],[1518652800000, 4.300793],[1521072000000, 4.161891],[1523750400000, 4.150463],[1526342400000, 4.110923],[1529020800000, 4.061400],[1531612800000, 3.933469],[1534291200000, 4.016754],[1536969600000, 4.113673],[1539561600000, 4.065875],[1542240000000, 4.025118],[1544832000000, 4.027942]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });