$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1514764800000,28.0672],[1514851200000,28.0672],[1514937600000,28.0672],[1515024000000,27.8905],[1515110400000,28.0134],[1515196800000,28.2033],[1515283200000,28.2033],[1515369600000,28.2033],[1515456000000,28.2033],[1515542400000,28.2032],[1515628800000,28.3288],[1515715200000,28.4457],[1515801600000,28.5366],[1515888000000,28.5366],[1515974400000,28.5366],[1516060800000,28.5677],[1516147200000,28.6526],[1516233600000,28.6661],[1516320000000,28.7775],[1516406400000,28.8448],[1516492800000,28.8448],[1516579200000,28.8448],[1516665600000,28.8758],[1516752000000,28.8648],[1516838400000,28.8654],[1516924800000,28.7452],[1517011200000,28.5486],[1517097600000,28.5486],[1517184000000,28.5486],[1517270400000,28.2465],[1517356800000,28.0088],[1517443200000,27.8435],[1517529600000,27.8695],[1517616000000,27.8871],[1517702400000,27.8871],[1517788800000,27.8871],[1517875200000,27.7424],[1517961600000,27.4609],[1518048000000,27.1196],[1518134400000,27.124],[1518220800000,27.0585],[1518307200000,27.0585],[1518393600000,27.0585],[1518480000000,26.8404],[1518566400000,26.6995],[1518652800000,26.6548],[1518739200000,26.7598],[1518825600000,26.9909],[1518912000000,26.9909],[1518998400000,26.9909],[1519084800000,27.0119],[1519171200000,27.0729],[1519257600000,26.988],[1519344000000,27.0718],[1519430400000,26.9887],[1519516800000,26.9887],[1519603200000,26.9887],[1519689600000,27.0066],[1519776000000,26.9482],[1519862400000,26.8055],[1519948800000,26.6695],[1520035200000,26.5359],[1520121600000,26.5359],[1520208000000,26.5359],[1520294400000,26.4821],[1520380800000,26.349],[1520467200000,26.094],[1520553600000,26.094],[1520640000000,26.094],[1520726400000,26.094],[1520812800000,26.094],[1520899200000,25.9246],[1520985600000,25.9159],[1521072000000,26.014],[1521158400000,26.2727],[1521244800000,26.3539],[1521331200000,26.3539],[1521417600000,26.3539],[1521504000000,26.436],[1521590400000,26.3011],[1521676800000,26.281],[1521763200000,26.2536],[1521849600000,26.2655],[1521936000000,26.2655],[1522022400000,26.2655],[1522108800000,26.3044],[1522195200000,26.3063],[1522281600000,26.4052],[1522368000000,26.5435],[1522454400000,26.307],[1522540800000,26.307],[1522627200000,26.307],[1522713600000,26.161],[1522800000000,26.3296],[1522886400000,26.2631],[1522972800000,26.0665],[1523059200000,26.027],[1523145600000,26.027],[1523232000000,26.027],[1523318400000,26.027],[1523404800000,25.9755],[1523491200000,25.9259],[1523577600000,25.9864],[1523664000000,26.1249],[1523750400000,26.1249],[1523836800000,26.1249],[1523923200000,26.0893],[1524009600000,26.0829],[1524096000000,26.1478],[1524182400000,26.226],[1524268800000,26.1785],[1524355200000,26.1785],[1524441600000,26.1785],[1524528000000,26.1256],[1524614400000,26.1773],[1524700800000,26.2705],[1524787200000,26.23],[1524873600000,26.1956],[1524960000000,26.1956],[1525046400000,26.1956],[1525132800000,26.1956],[1525219200000,26.1956],[1525305600000,26.1551],[1525392000000,26.1915],[1525478400000,26.3055],[1525564800000,26.3055],[1525651200000,26.3055],[1525737600000,26.2902],[1525824000000,26.219],[1525910400000,26.219],[1525996800000,26.1922],[1526083200000,26.198],[1526169600000,26.198],[1526256000000,26.198],[1526342400000,26.1712],[1526428800000,26.2108],[1526515200000,26.2082],[1526601600000,26.1888],[1526688000000,26.148],[1526774400000,26.148],[1526860800000,26.148],[1526947200000,26.0836],[1527033600000,26.0712],[1527120000000,26.0815],[1527206400000,26.1075],[1527292800000,26.1495],[1527379200000,26.1495],[1527465600000,26.1495],[1527552000000,26.1495],[1527638400000,26.0989],[1527724800000,26.1358],[1527811200000,26.1223],[1527897600000,26.1139],[1527984000000,26.1139],[1528070400000,26.1139],[1528156800000,26.1329],[1528243200000,26.1562],[1528329600000,26.1624],[1528416000000,26.1717],[1528502400000,26.1364],[1528588800000,26.1364],[1528675200000,26.1364],[1528761600000,26.0913],[1528848000000,26.0875],[1528934400000,26.1242],[1529020800000,26.2197],[1529107200000,26.3155],[1529193600000,26.3155],[1529280000000,26.3155],[1529366400000,26.329],[1529452800000,26.4464],[1529539200000,null],[1529625600000,26.3054],[1529712000000,26.2389],[1529798400000,26.2389],[1529884800000,26.2389],[1529971200000,26.1736],[1530057600000,26.1892],[1530144000000,26.3275],[1530230400000,26.3275],[1530316800000,26.3275],[1530403200000,26.3275],[1530489600000,26.3275],[1530576000000,26.2327],[1530662400000,26.2993],[1530748800000,26.438],[1530835200000,26.4298],[1530921600000,26.316],[1531008000000,26.316],[1531094400000,26.316],[1531180800000,26.2498],[1531267200000,26.2092],[1531353600000,26.2273],[1531440000000,26.228],[1531526400000,26.2332],[1531612800000,26.2332],[1531699200000,26.2332],[1531785600000,26.2068],[1531872000000,26.2216],[1531958400000,26.3033],[1532044800000,26.4724],[1532131200000,26.4461],[1532217600000,26.4461],[1532304000000,26.4461],[1532390400000,26.4497],[1532476800000,26.5832],[1532563200000,26.6269],[1532649600000,26.6514],[1532736000000,26.7615],[1532822400000,26.7615],[1532908800000,26.7615],[1532995200000,26.7552],[1533081600000,null],[1533168000000,26.9621],[1533254400000,27.0119],[1533340800000,27.0927],[1533427200000,27.0927],[1533513600000,27.0927],[1533600000000,27.1317],[1533686400000,27.0211],[1533772800000,26.9617],[1533859200000,27.1114],[1533945600000,27.2456],[1534032000000,27.2456],[1534118400000,27.2456],[1534204800000,27.3444],[1534291200000,27.4589],[1534377600000,27.4499],[1534464000000,27.6705],[1534550400000,27.8986],[1534636800000,27.8986],[1534723200000,27.8986],[1534809600000,27.6967],[1534896000000,27.7095],[1534982400000,27.8855],[1535068800000,27.8532],[1535155200000,27.8532],[1535241600000,27.8532],[1535328000000,27.8532],[1535414400000,27.8852],[1535500800000,28.0512],[1535587200000,28.1164],[1535673600000,28.2794],[1535760000000,28.2461],[1535846400000,28.2461],[1535932800000,28.2461],[1536019200000,28.3783],[1536105600000,28.493],[1536192000000,28.4116],[1536278400000,28.2246],[1536364800000,28.265],[1536451200000,28.265],[1536537600000,28.265],[1536624000000,28.2007],[1536710400000,28.0956],[1536796800000,28.0261],[1536883200000,28.1268],[1536969600000,28.1521],[1537056000000,28.1521],[1537142400000,28.1521],[1537228800000,28.1268],[1537315200000,28.151],[1537401600000,28.1202],[1537488000000,28.0618],[1537574400000,28.0629],[1537660800000,28.0629],[1537747200000,28.0629],[1537833600000,28.1111],[1537920000000,28.0612],[1538006400000,28.1428],[1538092800000,28.2983],[1538179200000,28.2699],[1538265600000,28.2699],[1538352000000,28.2699],[1538438400000,28.2127],[1538524800000,28.2763],[1538611200000,28.3201],[1538697600000,28.1751],[1538784000000,28.0848],[1538870400000,28.0848],[1538956800000,28.0848],[1539043200000,28.0879],[1539129600000,28.0814],[1539216000000,28.0029],[1539302400000,27.9845],[1539388800000,27.9282],[1539475200000,27.9282],[1539561600000,27.9282],[1539648000000,27.9282],[1539734400000,27.93],[1539820800000,27.9169],[1539907200000,28.0366],[1539993600000,28.182],[1540080000000,28.182],[1540166400000,28.182],[1540252800000,28.0804],[1540339200000,28.1494],[1540425600000,28.2131],[1540512000000,28.3356],[1540598400000,28.266],[1540684800000,28.266],[1540771200000,28.266],[1540857600000,28.2025],[1540944000000,28.1644],[1541030400000,28.1188],[1541116800000,28.1579],[1541203200000,28.1328],[1541289600000,28.1328],[1541376000000,28.1328],[1541462400000,28.0153],[1541548800000,27.9558],[1541635200000,27.897],[1541721600000,27.9267],[1541808000000,27.8916],[1541894400000,27.8916],[1541980800000,27.8916],[1542067200000,27.9037],[1542153600000,27.9182],[1542240000000,27.8394],[1542326400000,27.7743],[1542412800000,27.755],[1542499200000,27.755],[1542585600000,27.755],[1542672000000,27.7648],[1542758400000,27.7639],[1542844800000,27.7749],[1542931200000,27.7458],[1543017600000,27.7958],[1543104000000,27.7958],[1543190400000,27.7958],[1543276800000,27.8984],[1543363200000,28.1053],[1543449600000,28.269],[1543536000000,28.3909],[1543622400000,28.2228],[1543708800000,28.2228],[1543795200000,28.2228],[1543881600000,28.1727],[1543968000000,28.1259],[1544054400000,27.9757],[1544140800000,27.8796],[1544227200000,27.8242],[1544313600000,27.8242],[1544400000000,27.8242],[1544486400000,27.7768],[1544572800000,27.7132],[1544659200000,27.8081],[1544745600000,27.867],[1544832000000,27.8371],[1544918400000,27.8371],[1545004800000,27.8371],[1545091200000,27.8861],[1545177600000,27.8479],[1545264000000,27.717],[1545350400000,27.5769],[1545436800000,27.4339],[1545523200000,27.4339],[1545609600000,27.4339],[1545696000000,27.4339],[1545782400000,27.4339],[1545868800000,27.2678],[1545955200000,27.455],[1546041600000,27.6883],[1546128000000,27.6883]], 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, 28.450238],[1515974400000, 28.450238],[1518652800000, 27.178199],[1521072000000, 26.306679],[1523750400000, 26.142540],[1526342400000, 26.179623],[1529020800000, 26.210642],[1531612800000, 26.403543],[1534291200000, 27.529036],[1536969600000, 28.191598],[1539561600000, 28.120995],[1542240000000, 27.931536],[1544832000000, 27.772792]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });