$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1514764800000,39.8751],[1514851200000,39.8751],[1514937600000,39.8751],[1515024000000,39.7805],[1515110400000,39.9973],[1515196800000,40.2494],[1515283200000,40.2494],[1515369600000,40.2494],[1515456000000,40.2494],[1515542400000,40.0938],[1515628800000,40.4074],[1515715200000,40.4766],[1515801600000,40.8916],[1515888000000,40.8916],[1515974400000,40.8916],[1516060800000,40.9361],[1516147200000,41.221],[1516233600000,41.2381],[1516320000000,41.4564],[1516406400000,41.6168],[1516492800000,41.6168],[1516579200000,41.6168],[1516665600000,41.6419],[1516752000000,41.6205],[1516838400000,41.8393],[1516924800000,41.816],[1517011200000,41.5558],[1517097600000,41.5558],[1517184000000,41.5558],[1517270400000,41.0337],[1517356800000,40.7571],[1517443200000,40.5714],[1517529600000,40.5637],[1517616000000,40.6519],[1517702400000,40.6519],[1517788800000,40.6519],[1517875200000,40.3569],[1517961600000,39.8649],[1518048000000,39.3353],[1518134400000,39.181],[1518220800000,39.0897],[1518307200000,39.0897],[1518393600000,39.0897],[1518480000000,38.8127],[1518566400000,38.7177],[1518652800000,38.659],[1518739200000,39.0316],[1518825600000,39.4007],[1518912000000,39.4007],[1518998400000,39.4007],[1519084800000,39.4314],[1519171200000,39.3103],[1519257600000,39.1257],[1519344000000,39.2089],[1519430400000,39.1497],[1519516800000,39.1497],[1519603200000,39.1497],[1519689600000,39.241],[1519776000000,39.1106],[1519862400000,38.7577],[1519948800000,38.5],[1520035200000,38.4777],[1520121600000,38.4777],[1520208000000,38.4777],[1520294400000,38.3998],[1520380800000,38.3142],[1520467200000,37.9665],[1520553600000,37.9665],[1520640000000,37.9665],[1520726400000,37.9665],[1520812800000,37.9665],[1520899200000,37.5734],[1520985600000,37.5985],[1521072000000,37.8405],[1521158400000,38.1819],[1521244800000,38.2866],[1521331200000,38.2866],[1521417600000,38.2866],[1521504000000,38.3781],[1521590400000,38.16],[1521676800000,38.127],[1521763200000,38.1827],[1521849600000,38.2326],[1521936000000,38.2326],[1522022400000,38.2326],[1522108800000,38.404],[1522195200000,38.3623],[1522281600000,38.4875],[1522368000000,38.5854],[1522454400000,38.2417],[1522540800000,38.2417],[1522627200000,38.2417],[1522713600000,38.0483],[1522800000000,38.2427],[1522886400000,38.1226],[1522972800000,37.8279],[1523059200000,37.6911],[1523145600000,37.6911],[1523232000000,37.6911],[1523318400000,37.6911],[1523404800000,37.7586],[1523491200000,37.7504],[1523577600000,37.7995],[1523664000000,37.9966],[1523750400000,37.9966],[1523836800000,37.9966],[1523923200000,38.002],[1524009600000,38.0152],[1524096000000,38.0745],[1524182400000,38.1871],[1524268800000,38.0003],[1524355200000,38.0003],[1524441600000,38.0003],[1524528000000,37.7955],[1524614400000,37.8314],[1524700800000,37.9447],[1524787200000,37.8663],[1524873600000,37.664],[1524960000000,37.664],[1525046400000,37.664],[1525132800000,37.664],[1525219200000,37.664],[1525305600000,37.4639],[1525392000000,37.4942],[1525478400000,37.6449],[1525564800000,37.6449],[1525651200000,37.6449],[1525737600000,37.553],[1525824000000,37.4169],[1525910400000,37.4169],[1525996800000,37.3959],[1526083200000,37.4844],[1526169600000,37.4844],[1526256000000,37.4844],[1526342400000,37.4793],[1526428800000,37.4347],[1526515200000,37.2721],[1526601600000,37.2438],[1526688000000,37.1542],[1526774400000,37.1542],[1526860800000,37.1542],[1526947200000,37.0017],[1527033600000,37.0824],[1527120000000,36.984],[1527206400000,37.0465],[1527292800000,37.0849],[1527379200000,37.0849],[1527465600000,37.0849],[1527552000000,37.0849],[1527638400000,36.8214],[1527724800000,36.9607],[1527811200000,37.0062],[1527897600000,37.0193],[1527984000000,37.0193],[1528070400000,37.0193],[1528156800000,37.0729],[1528243200000,37.0459],[1528329600000,37.157],[1528416000000,37.2457],[1528502400000,37.0943],[1528588800000,37.0943],[1528675200000,37.0943],[1528761600000,37.0541],[1528848000000,37.0524],[1528934400000,37.0622],[1529020800000,37.3044],[1529107200000,37.1324],[1529193600000,37.1324],[1529280000000,37.1324],[1529366400000,37.1554],[1529452800000,37.2261],[1529539200000,null],[1529625600000,36.991],[1529712000000,37.0359],[1529798400000,37.0359],[1529884800000,37.0359],[1529971200000,36.9322],[1530057600000,36.9497],[1530144000000,37.0785],[1530230400000,37.0785],[1530316800000,37.0785],[1530403200000,37.0785],[1530489600000,37.0785],[1530576000000,36.8755],[1530662400000,36.9867],[1530748800000,37.1818],[1530835200000,37.236],[1530921600000,37.0882],[1531008000000,37.0882],[1531094400000,37.0882],[1531180800000,37.1114],[1531267200000,36.9242],[1531353600000,36.9287],[1531440000000,36.8405],[1531526400000,36.7787],[1531612800000,36.7787],[1531699200000,36.7787],[1531785600000,36.8911],[1531872000000,36.8906],[1531958400000,36.8192],[1532044800000,36.9935],[1532131200000,37.0306],[1532217600000,37.0306],[1532304000000,37.0306],[1532390400000,37.1668],[1532476800000,37.3494],[1532563200000,37.4156],[1532649600000,37.4687],[1532736000000,37.4805],[1532822400000,37.4805],[1532908800000,37.4805],[1532995200000,37.5446],[1533081600000,null],[1533168000000,37.8306],[1533254400000,37.8111],[1533340800000,37.8337],[1533427200000,37.8337],[1533513600000,37.8337],[1533600000000,37.8472],[1533686400000,37.7841],[1533772800000,37.6741],[1533859200000,37.8967],[1533945600000,37.9053],[1534032000000,37.9053],[1534118400000,37.9053],[1534204800000,37.9427],[1534291200000,38.1251],[1534377600000,37.9736],[1534464000000,38.35],[1534550400000,38.7236],[1534636800000,38.7236],[1534723200000,38.7236],[1534809600000,38.4767],[1534896000000,38.659],[1534982400000,38.9855],[1535068800000,38.9087],[1535155200000,38.9087],[1535241600000,38.9087],[1535328000000,38.9087],[1535414400000,38.9341],[1535500800000,39.3436],[1535587200000,39.3671],[1535673600000,39.6558],[1535760000000,39.5838],[1535846400000,39.5838],[1535932800000,39.5838],[1536019200000,39.769],[1536105600000,39.7473],[1536192000000,39.6721],[1536278400000,39.4869],[1536364800000,39.5703],[1536451200000,39.5703],[1536537600000,39.5703],[1536624000000,39.3828],[1536710400000,39.2502],[1536796800000,39.1417],[1536883200000,39.3716],[1536969600000,39.4889],[1537056000000,39.4889],[1537142400000,39.4889],[1537228800000,39.3914],[1537315200000,39.4478],[1537401600000,39.4307],[1537488000000,39.4013],[1537574400000,39.4326],[1537660800000,39.4326],[1537747200000,39.4326],[1537833600000,39.4764],[1537920000000,39.397],[1538006400000,39.4892],[1538092800000,39.6757],[1538179200000,39.4436],[1538265600000,39.4436],[1538352000000,39.4436],[1538438400000,39.3787],[1538524800000,39.3479],[1538611200000,39.456],[1538697600000,39.1721],[1538784000000,39.071],[1538870400000,39.071],[1538956800000,39.071],[1539043200000,39.0754],[1539129600000,39.0164],[1539216000000,38.9919],[1539302400000,39.0798],[1539388800000,39.0228],[1539475200000,39.0228],[1539561600000,39.0228],[1539648000000,39.0228],[1539734400000,39.0251],[1539820800000,38.9393],[1539907200000,39.0594],[1539993600000,39.1815],[1540080000000,39.1815],[1540166400000,39.1815],[1540252800000,39.0657],[1540339200000,39.1287],[1540425600000,39.1289],[1540512000000,39.2924],[1540598400000,39.1118],[1540684800000,39.1118],[1540771200000,39.1118],[1540857600000,39.0742],[1540944000000,38.9278],[1541030400000,38.8638],[1541116800000,39.0307],[1541203200000,39.1251],[1541289600000,39.1251],[1541376000000,39.1251],[1541462400000,38.8298],[1541548800000,38.8083],[1541635200000,38.8409],[1541721600000,38.7626],[1541808000000,38.6192],[1541894400000,38.6192],[1541980800000,38.6192],[1542067200000,38.4857],[1542153600000,38.5109],[1542240000000,38.4327],[1542326400000,38.3749],[1542412800000,38.3664],[1542499200000,38.3664],[1542585600000,38.3664],[1542672000000,38.5005],[1542758400000,38.521],[1542844800000,38.4845],[1542931200000,38.4443],[1543017600000,38.5135],[1543104000000,38.5135],[1543190400000,38.5135],[1543276800000,38.6233],[1543363200000,38.816],[1543449600000,39.0019],[1543536000000,39.2734],[1543622400000,39.0384],[1543708800000,39.0384],[1543795200000,39.0384],[1543881600000,38.9488],[1543968000000,39.0254],[1544054400000,38.75],[1544140800000,38.5733],[1544227200000,38.5522],[1544313600000,38.5522],[1544400000000,38.5522],[1544486400000,38.4836],[1544572800000,38.3588],[1544659200000,38.4107],[1544745600000,38.5714],[1544832000000,38.3871],[1544918400000,38.3871],[1545004800000,38.3871],[1545091200000,38.5578],[1545177600000,38.5926],[1545264000000,38.4068],[1545350400000,38.3091],[1545436800000,38.061],[1545523200000,38.061],[1545609600000,38.061],[1545696000000,38.061],[1545782400000,38.061],[1545868800000,37.8305],[1545955200000,38.0705],[1546041600000,38.5086],[1546128000000,38.5086]], 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, 40.875198],[1515974400000, 40.875198],[1518652800000, 39.478490],[1521072000000, 38.223155],[1523750400000, 37.916554],[1526342400000, 37.309211],[1529020800000, 37.080555],[1531612800000, 37.094041],[1534291200000, 38.389327],[1536969600000, 39.488172],[1539561600000, 39.122174],[1542240000000, 38.682593],[1544832000000, 38.472699]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });