$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1514764800000,22.2576],[1514851200000,22.2576],[1514937600000,22.2576],[1515024000000,22.2854],[1515110400000,22.3621],[1515196800000,22.5451],[1515283200000,22.5451],[1515369600000,22.5451],[1515456000000,22.5451],[1515542400000,22.698],[1515628800000,22.7526],[1515715200000,22.6484],[1515801600000,22.7951],[1515888000000,22.7951],[1515974400000,22.7951],[1516060800000,22.9788],[1516147200000,23.0631],[1516233600000,23.0367],[1516320000000,23.1199],[1516406400000,23.186],[1516492800000,23.186],[1516579200000,23.186],[1516665600000,23.1442],[1516752000000,23.1255],[1516838400000,23.4122],[1516924800000,23.3267],[1517011200000,23.1668],[1517097600000,23.1668],[1517184000000,23.1668],[1517270400000,22.9002],[1517356800000,22.7324],[1517443200000,22.6845],[1517529600000,22.6235],[1517616000000,22.6403],[1517702400000,22.6403],[1517788800000,22.6403],[1517875200000,22.3116],[1517961600000,21.8598],[1518048000000,21.6641],[1518134400000,21.5766],[1518220800000,21.4597],[1518307200000,21.4597],[1518393600000,21.4597],[1518480000000,21.3355],[1518566400000,21.184],[1518652800000,21.1961],[1518739200000,21.4246],[1518825600000,21.583],[1518912000000,21.583],[1518998400000,21.583],[1519084800000,21.4994],[1519171200000,21.4801],[1519257600000,21.2984],[1519344000000,21.3185],[1519430400000,21.2587],[1519516800000,21.2587],[1519603200000,21.2587],[1519689600000,21.3051],[1519776000000,21.1855],[1519862400000,20.9766],[1519948800000,20.7356],[1520035200000,20.6022],[1520121600000,20.6022],[1520208000000,20.6022],[1520294400000,20.4798],[1520380800000,20.4475],[1520467200000,20.1799],[1520553600000,20.1799],[1520640000000,20.1799],[1520726400000,20.1799],[1520812800000,20.1799],[1520899200000,20.2081],[1520985600000,20.188],[1521072000000,20.1192],[1521158400000,20.2328],[1521244800000,20.1516],[1521331200000,20.1516],[1521417600000,20.1516],[1521504000000,20.205],[1521590400000,20.1292],[1521676800000,20.2476],[1521763200000,20.3499],[1521849600000,20.4357],[1521936000000,20.4357],[1522022400000,20.4357],[1522108800000,20.4078],[1522195200000,20.413],[1522281600000,20.4941],[1522368000000,20.5752],[1522454400000,20.3919],[1522540800000,20.3919],[1522627200000,20.3919],[1522713600000,20.2787],[1522800000000,20.4871],[1522886400000,20.4624],[1522972800000,20.4084],[1523059200000,20.3459],[1523145600000,20.3459],[1523232000000,20.3459],[1523318400000,20.3459],[1523404800000,20.5231],[1523491200000,20.5483],[1523577600000,20.6374],[1523664000000,20.7842],[1523750400000,20.7842],[1523836800000,20.7842],[1523923200000,20.6928],[1524009600000,20.7792],[1524096000000,20.8013],[1524182400000,20.808],[1524268800000,20.7129],[1524355200000,20.7129],[1524441600000,20.7129],[1524528000000,20.431],[1524614400000,20.4126],[1524700800000,20.3838],[1524787200000,20.4359],[1524873600000,20.3345],[1524960000000,20.3345],[1525046400000,20.3345],[1525132800000,20.3345],[1525219200000,20.3345],[1525305600000,20.3911],[1525392000000,20.39],[1525478400000,20.4316],[1525564800000,20.4316],[1525651200000,20.4316],[1525737600000,20.4007],[1525824000000,20.2117],[1525910400000,20.2117],[1525996800000,20.5056],[1526083200000,20.5729],[1526169600000,20.5729],[1526256000000,20.5729],[1526342400000,20.5046],[1526428800000,20.4198],[1526515200000,20.3705],[1526601600000,20.5053],[1526688000000,20.4358],[1526774400000,20.4358],[1526860800000,20.4358],[1526947200000,20.2601],[1527033600000,20.4091],[1527120000000,20.2106],[1527206400000,20.2627],[1527292800000,20.1835],[1527379200000,20.1835],[1527465600000,20.1835],[1527552000000,20.1835],[1527638400000,20.0326],[1527724800000,20.1426],[1527811200000,20.3222],[1527897600000,20.1244],[1527984000000,20.1244],[1528070400000,20.1244],[1528156800000,20.2483],[1528243200000,20.146],[1528329600000,20.3168],[1528416000000,20.2291],[1528502400000,20.1131],[1528588800000,20.1131],[1528675200000,20.1131],[1528761600000,20.0428],[1528848000000,20.0534],[1528934400000,20.0696],[1529020800000,20.2048],[1529107200000,20.0457],[1529193600000,20.0457],[1529280000000,20.0457],[1529366400000,19.9751],[1529452800000,19.9121],[1529539200000,null],[1529625600000,19.7329],[1529712000000,19.7704],[1529798400000,19.7704],[1529884800000,19.7704],[1529971200000,19.7035],[1530057600000,19.6591],[1530144000000,19.8032],[1530230400000,19.8032],[1530316800000,19.8032],[1530403200000,19.8032],[1530489600000,19.8032],[1530576000000,19.9011],[1530662400000,19.9935],[1530748800000,20.1092],[1530835200000,20.1292],[1530921600000,20.0382],[1531008000000,20.0382],[1531094400000,20.0382],[1531180800000,20.0751],[1531267200000,19.9576],[1531353600000,19.9583],[1531440000000,19.895],[1531526400000,19.8876],[1531612800000,19.8876],[1531699200000,19.8876],[1531785600000,19.9457],[1531872000000,19.9296],[1531958400000,19.8459],[1532044800000,19.9832],[1532131200000,19.9849],[1532217600000,19.9849],[1532304000000,19.9849],[1532390400000,20.1394],[1532476800000,20.2159],[1532563200000,20.29],[1532649600000,20.4257],[1532736000000,20.4767],[1532822400000,20.4767],[1532908800000,20.4767],[1532995200000,20.5056],[1533081600000,null],[1533168000000,20.7044],[1533254400000,20.7209],[1533340800000,20.8121],[1533427200000,20.8121],[1533513600000,20.8121],[1533600000000,20.8343],[1533686400000,20.8346],[1533772800000,20.6135],[1533859200000,20.7996],[1533945600000,20.8056],[1534032000000,20.8056],[1534118400000,20.8056],[1534204800000,20.7928],[1534291200000,21.0072],[1534377600000,20.9506],[1534464000000,21.0557],[1534550400000,21.2201],[1534636800000,21.2201],[1534723200000,21.2201],[1534809600000,21.1895],[1534896000000,21.2788],[1534982400000,21.4146],[1535068800000,21.374],[1535155200000,21.374],[1535241600000,21.374],[1535328000000,21.374],[1535414400000,21.3667],[1535500800000,21.7134],[1535587200000,21.7212],[1535673600000,21.8723],[1535760000000,21.6624],[1535846400000,21.6624],[1535932800000,21.6624],[1536019200000,21.7096],[1536105600000,21.625],[1536192000000,21.5595],[1536278400000,21.4086],[1536364800000,21.5447],[1536451200000,21.5447],[1536537600000,21.5447],[1536624000000,21.3722],[1536710400000,21.3498],[1536796800000,21.4496],[1536883200000,21.6274],[1536969600000,21.6408],[1537056000000,21.6408],[1537142400000,21.6408],[1537228800000,21.6065],[1537315200000,21.6107],[1537401600000,21.6754],[1537488000000,21.7649],[1537574400000,21.7142],[1537660800000,21.7142],[1537747200000,21.7142],[1537833600000,21.7288],[1537920000000,21.6536],[1538006400000,21.7111],[1538092800000,21.6514],[1538179200000,21.7242],[1538265600000,21.7242],[1538352000000,21.7242],[1538438400000,22.0244],[1538524800000,22.061],[1538611200000,22.0675],[1538697600000,21.8966],[1538784000000,21.743],[1538870400000,21.743],[1538956800000,21.743],[1539043200000,21.6154],[1539129600000,21.6076],[1539216000000,21.6028],[1539302400000,21.4489],[1539388800000,21.4721],[1539475200000,21.4721],[1539561600000,21.4721],[1539648000000,21.4721],[1539734400000,21.5606],[1539820800000,21.5205],[1539907200000,21.4912],[1539993600000,21.6262],[1540080000000,21.6262],[1540166400000,21.6262],[1540252800000,21.4541],[1540339200000,21.4726],[1540425600000,21.565],[1540512000000,21.7202],[1540598400000,21.4989],[1540684800000,21.4989],[1540771200000,21.4989],[1540857600000,21.5173],[1540944000000,21.4367],[1541030400000,21.4222],[1541116800000,21.5246],[1541203200000,21.4758],[1541289600000,21.4758],[1541376000000,21.4758],[1541462400000,21.3968],[1541548800000,21.3043],[1541635200000,21.3365],[1541721600000,21.3088],[1541808000000,21.1409],[1541894400000,21.1409],[1541980800000,21.1409],[1542067200000,21.1346],[1542153600000,21.1168],[1542240000000,21.0534],[1542326400000,21.0039],[1542412800000,21.057],[1542499200000,21.057],[1542585600000,21.057],[1542672000000,21.074],[1542758400000,21.0398],[1542844800000,20.9247],[1542931200000,20.9888],[1543017600000,21.0093],[1543104000000,21.0093],[1543190400000,21.0093],[1543276800000,21.1185],[1543363200000,21.1997],[1543449600000,21.2149],[1543536000000,21.3857],[1543622400000,21.2081],[1543708800000,21.2081],[1543795200000,21.2081],[1543881600000,21.3819],[1543968000000,21.3485],[1544054400000,21.069],[1544140800000,20.7802],[1544227200000,20.7741],[1544313600000,20.7741],[1544400000000,20.7741],[1544486400000,20.8536],[1544572800000,20.6935],[1544659200000,20.7984],[1544745600000,20.8567],[1544832000000,20.811],[1544918400000,20.811],[1545004800000,20.811],[1545091200000,20.8214],[1545177600000,20.7768],[1545264000000,20.6178],[1545350400000,20.4735],[1545436800000,20.2556],[1545523200000,20.2556],[1545609600000,20.2556],[1545696000000,20.2556],[1545782400000,20.2556],[1545868800000,20.0613],[1545955200000,20.152],[1546041600000,20.327],[1546128000000,20.327]], 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, 22.838158],[1515974400000, 22.838158],[1518652800000, 21.670457],[1521072000000, 20.357077],[1523750400000, 20.525070],[1526342400000, 20.353313],[1529020800000, 20.006407],[1531612800000, 20.066720],[1534291200000, 21.095982],[1536969600000, 21.621291],[1539561600000, 21.621912],[1542240000000, 21.186576],[1544832000000, 20.687837]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });