$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1514764800000,33.4954],[1514851200000,33.4954],[1514937600000,33.4954],[1515024000000,33.5328],[1515110400000,33.7981],[1515196800000,33.9709],[1515283200000,33.9709],[1515369600000,33.9709],[1515456000000,33.9709],[1515542400000,33.6521],[1515628800000,33.9719],[1515715200000,34.1832],[1515801600000,34.6349],[1515888000000,34.6349],[1515974400000,34.6349],[1516060800000,35.0725],[1516147200000,35.0421],[1516233600000,34.9813],[1516320000000,35.2093],[1516406400000,35.3493],[1516492800000,35.3493],[1516579200000,35.3493],[1516665600000,35.3411],[1516752000000,35.3565],[1516838400000,35.6545],[1516924800000,35.6642],[1517011200000,35.5031],[1517097600000,35.5031],[1517184000000,35.5031],[1517270400000,34.9664],[1517356800000,34.7897],[1517443200000,34.6846],[1517529600000,34.7226],[1517616000000,34.8366],[1517702400000,34.8366],[1517788800000,34.8366],[1517875200000,34.5116],[1517961600000,33.8565],[1518048000000,33.4602],[1518134400000,33.2324],[1518220800000,33.209],[1518307200000,33.209],[1518393600000,33.209],[1518480000000,32.9143],[1518566400000,32.9285],[1518652800000,32.9133],[1518739200000,33.431],[1518825600000,33.6414],[1518912000000,33.6414],[1518998400000,33.6414],[1519084800000,33.5218],[1519171200000,33.408],[1519257600000,33.2277],[1519344000000,33.2334],[1519430400000,33.1934],[1519516800000,33.1934],[1519603200000,33.1934],[1519689600000,33.2721],[1519776000000,33.149],[1519862400000,32.7403],[1519948800000,32.4594],[1520035200000,32.671],[1520121600000,32.671],[1520208000000,32.671],[1520294400000,32.5915],[1520380800000,32.7017],[1520467200000,32.4009],[1520553600000,32.4009],[1520640000000,32.4009],[1520726400000,32.4009],[1520812800000,32.4009],[1520899200000,31.8925],[1520985600000,32.0787],[1521072000000,32.1767],[1521158400000,32.4231],[1521244800000,32.4179],[1521331200000,32.4179],[1521417600000,32.4179],[1521504000000,32.5401],[1521590400000,32.2873],[1521676800000,32.2888],[1521763200000,32.334],[1521849600000,32.4274],[1521936000000,32.4274],[1522022400000,32.4274],[1522108800000,32.6464],[1522195200000,32.5566],[1522281600000,32.7372],[1522368000000,32.7042],[1522454400000,32.4129],[1522540800000,32.4129],[1522627200000,32.4129],[1522713600000,32.2329],[1522800000000,32.4064],[1522886400000,32.2405],[1522972800000,31.9576],[1523059200000,31.8414],[1523145600000,31.8414],[1523232000000,31.8414],[1523318400000,31.8414],[1523404800000,32.1083],[1523491200000,32.1066],[1523577600000,32.023],[1523664000000,32.178],[1523750400000,32.178],[1523836800000,32.178],[1523923200000,32.2724],[1524009600000,32.2306],[1524096000000,32.3919],[1524182400000,32.473],[1524268800000,32.2231],[1524355200000,32.2231],[1524441600000,32.2231],[1524528000000,31.9725],[1524614400000,31.9703],[1524700800000,32.0107],[1524787200000,31.9167],[1524873600000,31.6181],[1524960000000,31.6181],[1525046400000,31.6181],[1525132800000,31.6181],[1525219200000,31.6181],[1525305600000,31.4044],[1525392000000,31.4088],[1525478400000,31.4851],[1525564800000,31.4851],[1525651200000,31.4851],[1525737600000,31.2906],[1525824000000,31.122],[1525910400000,31.122],[1525996800000,31.111],[1526083200000,31.2647],[1526169600000,31.2647],[1526256000000,31.2647],[1526342400000,31.3741],[1526428800000,31.1463],[1526515200000,30.8837],[1526601600000,30.9159],[1526688000000,30.8049],[1526774400000,30.8049],[1526860800000,30.8049],[1526947200000,30.6717],[1527033600000,30.7483],[1527120000000,30.5363],[1527206400000,30.6189],[1527292800000,30.5295],[1527379200000,30.5295],[1527465600000,30.5295],[1527552000000,30.5295],[1527638400000,30.1652],[1527724800000,30.4012],[1527811200000,30.5605],[1527897600000,30.4724],[1527984000000,30.4724],[1528070400000,30.4724],[1528156800000,30.6722],[1528243200000,30.5374],[1528329600000,30.78],[1528416000000,30.9768],[1528502400000,30.7207],[1528588800000,30.7207],[1528675200000,30.7207],[1528761600000,30.7617],[1528848000000,30.7519],[1528934400000,30.7325],[1529020800000,30.7557],[1529107200000,30.5155],[1529193600000,30.5155],[1529280000000,30.5155],[1529366400000,30.5759],[1529452800000,30.5033],[1529539200000,null],[1529625600000,30.3511],[1529712000000,30.5631],[1529798400000,30.5631],[1529884800000,30.5631],[1529971200000,30.6231],[1530057600000,30.568],[1530144000000,30.582],[1530230400000,30.582],[1530316800000,30.582],[1530403200000,30.582],[1530489600000,30.582],[1530576000000,30.5322],[1530662400000,30.6781],[1530748800000,30.7791],[1530835200000,30.9466],[1530921600000,30.8528],[1531008000000,30.8528],[1531094400000,30.8528],[1531180800000,30.9458],[1531267200000,30.6988],[1531353600000,30.7777],[1531440000000,30.5767],[1531526400000,30.5433],[1531612800000,30.5433],[1531699200000,30.5433],[1531785600000,30.7144],[1531872000000,30.6976],[1531958400000,30.5408],[1532044800000,30.6763],[1532131200000,30.8626],[1532217600000,30.8626],[1532304000000,30.8626],[1532390400000,30.9884],[1532476800000,31.1183],[1532563200000,31.1268],[1532649600000,31.2248],[1532736000000,31.1103],[1532822400000,31.1103],[1532908800000,31.1103],[1532995200000,31.2608],[1533081600000,null],[1533168000000,31.5349],[1533254400000,31.3797],[1533340800000,31.395],[1533427200000,31.395],[1533513600000,31.395],[1533600000000,31.3181],[1533686400000,31.3498],[1533772800000,31.2459],[1533859200000,31.4302],[1533945600000,31.2126],[1534032000000,31.2126],[1534118400000,31.2126],[1534204800000,31.1809],[1534291200000,31.3196],[1534377600000,31.076],[1534464000000,31.4614],[1534550400000,31.7792],[1534636800000,31.7792],[1534723200000,31.7792],[1534809600000,31.6296],[1534896000000,31.8714],[1534982400000,32.3918],[1535068800000,32.2512],[1535155200000,32.2512],[1535241600000,32.2512],[1535328000000,32.2512],[1535414400000,32.4389],[1535500800000,32.848],[1535587200000,32.7838],[1535673600000,33.0643],[1535760000000,32.9096],[1535846400000,32.9096],[1535932800000,32.9096],[1536019200000,32.9444],[1536105600000,32.9436],[1536192000000,32.9063],[1536278400000,32.8365],[1536364800000,32.8298],[1536451200000,32.8298],[1536537600000,32.8298],[1536624000000,32.631],[1536710400000,32.5179],[1536796800000,32.4682],[1536883200000,32.6834],[1536969600000,32.907],[1537056000000,32.907],[1537142400000,32.907],[1537228800000,32.8267],[1537315200000,32.9282],[1537401600000,32.8078],[1537488000000,33.026],[1537574400000,32.9991],[1537660800000,32.9991],[1537747200000,32.9991],[1537833600000,33.0952],[1537920000000,33.0477],[1538006400000,33.0313],[1538092800000,33.1288],[1538179200000,32.7253],[1538265600000,32.7253],[1538352000000,32.7253],[1538438400000,32.7436],[1538524800000,32.6393],[1538611200000,32.704],[1538697600000,32.4069],[1538784000000,32.3144],[1538870400000,32.3144],[1538956800000,32.3144],[1539043200000,32.2393],[1539129600000,32.1111],[1539216000000,32.2033],[1539302400000,32.3921],[1539388800000,32.3241],[1539475200000,32.3241],[1539561600000,32.3241],[1539648000000,32.3241],[1539734400000,32.3625],[1539820800000,32.1882],[1539907200000,32.2562],[1539993600000,32.3248],[1540080000000,32.3248],[1540166400000,32.3248],[1540252800000,32.2756],[1540339200000,32.3099],[1540425600000,32.1319],[1540512000000,32.3479],[1540598400000,32.0678],[1540684800000,32.0678],[1540771200000,32.0678],[1540857600000,32.0973],[1540944000000,32.0286],[1541030400000,31.8249],[1541116800000,32.0803],[1541203200000,32.1192],[1541289600000,32.1192],[1541376000000,32.1192],[1541462400000,31.8534],[1541548800000,31.9479],[1541635200000,32.0452],[1541721600000,31.9035],[1541808000000,31.6459],[1541894400000,31.6459],[1541980800000,31.6459],[1542067200000,31.4336],[1542153600000,31.4386],[1542240000000,31.4474],[1542326400000,31.3988],[1542412800000,31.4908],[1542499200000,31.4908],[1542585600000,31.4908],[1542672000000,31.7269],[1542758400000,31.7091],[1542844800000,31.6884],[1542931200000,31.6386],[1543017600000,31.5538],[1543104000000,31.5538],[1543190400000,31.5538],[1543276800000,31.701],[1543363200000,31.8377],[1543449600000,31.8988],[1543536000000,32.3288],[1543622400000,32.0582],[1543708800000,32.0582],[1543795200000,32.0582],[1543881600000,31.9253],[1543968000000,32.0889],[1544054400000,31.7636],[1544140800000,31.6461],[1544227200000,31.639],[1544313600000,31.639],[1544400000000,31.639],[1544486400000,31.735],[1544572800000,31.5348],[1544659200000,31.5511],[1544745600000,31.6876],[1544832000000,31.4142],[1544918400000,31.4142],[1545004800000,31.4142],[1545091200000,31.6256],[1545177600000,31.6826],[1545264000000,31.6112],[1545350400000,31.5783],[1545436800000,31.3131],[1545523200000,31.3131],[1545609600000,31.3131],[1545696000000,31.3131],[1545782400000,31.3131],[1545868800000,31.1071],[1545955200000,31.2355],[1546041600000,31.7141],[1546128000000,31.7141]], 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, 34.646699],[1515974400000, 34.646699],[1518652800000, 33.611003],[1521072000000, 32.455632],[1523750400000, 32.085420],[1526342400000, 30.998028],[1529020800000, 30.610730],[1531612800000, 30.824332],[1534291200000, 31.749664],[1536969600000, 32.873659],[1539561600000, 32.309032],[1542240000000, 31.744400],[1544832000000, 31.606928]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });