$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1514764800000,20.9766],[1514851200000,20.9766],[1514937600000,20.9766],[1515024000000,20.9737],[1515110400000,21.0672],[1515196800000,21.2411],[1515283200000,21.2411],[1515369600000,21.2411],[1515456000000,21.2411],[1515542400000,21.1223],[1515628800000,21.2577],[1515715200000,21.3565],[1515801600000,21.5084],[1515888000000,21.5084],[1515974400000,21.5084],[1516060800000,21.619],[1516147200000,21.651],[1516233600000,21.6562],[1516320000000,21.7677],[1516406400000,21.8502],[1516492800000,21.8502],[1516579200000,21.8502],[1516665600000,21.8817],[1516752000000,21.8763],[1516838400000,22.0348],[1516924800000,22.0122],[1517011200000,21.836],[1517097600000,21.836],[1517184000000,21.836],[1517270400000,21.5576],[1517356800000,21.3696],[1517443200000,21.2946],[1517529600000,21.2344],[1517616000000,21.2302],[1517702400000,21.2302],[1517788800000,21.2302],[1517875200000,21.0604],[1517961600000,20.753],[1518048000000,20.5391],[1518134400000,20.403],[1518220800000,20.3474],[1518307200000,20.3474],[1518393600000,20.3474],[1518480000000,20.2475],[1518566400000,20.1842],[1518652800000,20.2046],[1518739200000,20.4034],[1518825600000,20.5934],[1518912000000,20.5934],[1518998400000,20.5934],[1519084800000,20.5718],[1519171200000,20.531],[1519257600000,20.4264],[1519344000000,20.474],[1519430400000,20.4216],[1519516800000,20.4216],[1519603200000,20.4216],[1519689600000,20.5042],[1519776000000,20.4182],[1519862400000,20.2576],[1519948800000,20.0987],[1520035200000,20.0916],[1520121600000,20.0916],[1520208000000,20.0916],[1520294400000,20.0711],[1520380800000,20.0317],[1520467200000,19.8498],[1520553600000,19.8498],[1520640000000,19.8498],[1520726400000,19.8498],[1520812800000,19.8498],[1520899200000,19.7208],[1520985600000,19.7724],[1521072000000,19.8707],[1521158400000,20.0365],[1521244800000,20.0333],[1521331200000,20.0333],[1521417600000,20.0333],[1521504000000,20.058],[1521590400000,19.9624],[1521676800000,19.9351],[1521763200000,19.9506],[1521849600000,19.9971],[1521936000000,19.9971],[1522022400000,19.9971],[1522108800000,20.0605],[1522195200000,20.0868],[1522281600000,20.1907],[1522368000000,20.2403],[1522454400000,20.06],[1522540800000,20.06],[1522627200000,20.06],[1522713600000,19.9486],[1522800000000,20.1107],[1522886400000,19.9805],[1522972800000,19.8334],[1523059200000,19.7307],[1523145600000,19.7307],[1523232000000,19.7307],[1523318400000,19.7307],[1523404800000,19.8175],[1523491200000,19.814],[1523577600000,19.8223],[1523664000000,19.9146],[1523750400000,19.9146],[1523836800000,19.9146],[1523923200000,19.8955],[1524009600000,19.9053],[1524096000000,19.9506],[1524182400000,20.0352],[1524268800000,19.9252],[1524355200000,19.9252],[1524441600000,19.9252],[1524528000000,19.7507],[1524614400000,19.7909],[1524700800000,19.7609],[1524787200000,19.7737],[1524873600000,19.7552],[1524960000000,19.7552],[1525046400000,19.7552],[1525132800000,19.7552],[1525219200000,19.7552],[1525305600000,19.5971],[1525392000000,19.6772],[1525478400000,19.725],[1525564800000,19.725],[1525651200000,19.725],[1525737600000,19.6586],[1525824000000,19.5945],[1525910400000,19.5945],[1525996800000,19.536],[1526083200000,19.6423],[1526169600000,19.6423],[1526256000000,19.6423],[1526342400000,19.6333],[1526428800000,19.579],[1526515200000,19.517],[1526601600000,19.5115],[1526688000000,19.4623],[1526774400000,19.4623],[1526860800000,19.4623],[1526947200000,19.4088],[1527033600000,19.4955],[1527120000000,19.3832],[1527206400000,19.4702],[1527292800000,19.5052],[1527379200000,19.5052],[1527465600000,19.5052],[1527552000000,19.5052],[1527638400000,19.3801],[1527724800000,19.5029],[1527811200000,19.52],[1527897600000,19.5123],[1527984000000,19.5123],[1528070400000,19.5123],[1528156800000,19.5926],[1528243200000,19.584],[1528329600000,19.6239],[1528416000000,19.6591],[1528502400000,19.5649],[1528588800000,19.5649],[1528675200000,19.5649],[1528761600000,19.5473],[1528848000000,19.5399],[1528934400000,19.5611],[1529020800000,19.6334],[1529107200000,19.5374],[1529193600000,19.5374],[1529280000000,19.5374],[1529366400000,19.4999],[1529452800000,19.4474],[1529539200000,null],[1529625600000,19.3147],[1529712000000,19.3168],[1529798400000,19.3168],[1529884800000,19.3168],[1529971200000,19.2236],[1530057600000,19.2348],[1530144000000,19.3141],[1530230400000,19.3141],[1530316800000,19.3141],[1530403200000,19.3141],[1530489600000,19.3141],[1530576000000,19.1725],[1530662400000,19.2689],[1530748800000,19.3689],[1530835200000,19.384],[1530921600000,19.3459],[1531008000000,19.3459],[1531094400000,19.3459],[1531180800000,19.403],[1531267200000,19.3159],[1531353600000,19.2746],[1531440000000,19.2439],[1531526400000,19.1867],[1531612800000,19.1867],[1531699200000,19.1867],[1531785600000,19.2519],[1531872000000,19.257],[1531958400000,19.2286],[1532044800000,19.2823],[1532131200000,19.3375],[1532217600000,19.3375],[1532304000000,19.3375],[1532390400000,19.3932],[1532476800000,19.4891],[1532563200000,19.5385],[1532649600000,19.5853],[1532736000000,19.6155],[1532822400000,19.6155],[1532908800000,19.6155],[1532995200000,19.6436],[1533081600000,null],[1533168000000,19.8059],[1533254400000,19.7642],[1533340800000,19.8226],[1533427200000,19.8226],[1533513600000,19.8226],[1533600000000,19.8229],[1533686400000,19.8141],[1533772800000,19.7584],[1533859200000,19.8863],[1533945600000,19.8705],[1534032000000,19.8705],[1534118400000,19.8705],[1534204800000,19.8744],[1534291200000,19.9883],[1534377600000,19.8861],[1534464000000,20.1057],[1534550400000,20.3049],[1534636800000,20.3049],[1534723200000,20.3049],[1534809600000,20.1913],[1534896000000,20.2538],[1534982400000,20.4236],[1535068800000,20.3298],[1535155200000,20.3298],[1535241600000,20.3298],[1535328000000,20.3298],[1535414400000,20.4224],[1535500800000,20.6008],[1535587200000,20.5657],[1535673600000,20.7066],[1535760000000,20.6136],[1535846400000,20.6136],[1535932800000,20.6136],[1536019200000,20.6872],[1536105600000,20.7049],[1536192000000,20.6115],[1536278400000,20.5228],[1536364800000,20.5494],[1536451200000,20.5494],[1536537600000,20.5494],[1536624000000,20.4378],[1536710400000,20.3938],[1536796800000,20.3626],[1536883200000,20.5066],[1536969600000,20.5514],[1537056000000,20.5514],[1537142400000,20.5514],[1537228800000,20.4949],[1537315200000,20.5403],[1537401600000,20.5139],[1537488000000,20.559],[1537574400000,20.5705],[1537660800000,20.5705],[1537747200000,20.5705],[1537833600000,20.6059],[1537920000000,20.5482],[1538006400000,20.6098],[1538092800000,20.7366],[1538179200000,20.6612],[1538265600000,20.6612],[1538352000000,20.6612],[1538438400000,20.5896],[1538524800000,20.577],[1538611200000,20.5815],[1538697600000,20.4203],[1538784000000,20.3363],[1538870400000,20.3363],[1538956800000,20.3363],[1539043200000,20.284],[1539129600000,20.2479],[1539216000000,20.2486],[1539302400000,20.2844],[1539388800000,20.2888],[1539475200000,20.2888],[1539561600000,20.2888],[1539648000000,20.2888],[1539734400000,20.3218],[1539820800000,20.2862],[1539907200000,20.3342],[1539993600000,20.4587],[1540080000000,20.4587],[1540166400000,20.4587],[1540252800000,20.3567],[1540339200000,20.4209],[1540425600000,20.4349],[1540512000000,20.5462],[1540598400000,20.4188],[1540684800000,20.4188],[1540771200000,20.4188],[1540857600000,20.3961],[1540944000000,20.3498],[1541030400000,20.2758],[1541116800000,20.432],[1541203200000,20.4764],[1541289600000,20.4764],[1541376000000,20.4764],[1541462400000,20.3523],[1541548800000,20.3581],[1541635200000,20.3733],[1541721600000,20.3687],[1541808000000,20.2508],[1541894400000,20.2508],[1541980800000,20.2508],[1542067200000,20.2015],[1542153600000,20.2061],[1542240000000,20.1728],[1542326400000,20.1662],[1542412800000,20.1709],[1542499200000,20.1709],[1542585600000,20.1709],[1542672000000,20.2288],[1542758400000,20.2291],[1542844800000,20.2314],[1542931200000,20.2138],[1543017600000,20.2203],[1543104000000,20.2203],[1543190400000,20.2203],[1543276800000,20.3159],[1543363200000,20.4324],[1543449600000,20.5163],[1543536000000,20.7196],[1543622400000,20.5752],[1543708800000,20.5752],[1543795200000,20.5752],[1543881600000,20.609],[1543968000000,20.6359],[1544054400000,20.4662],[1544140800000,20.3381],[1544227200000,20.3035],[1544313600000,20.3035],[1544400000000,20.3035],[1544486400000,20.256],[1544572800000,20.1926],[1544659200000,20.2549],[1544745600000,20.3295],[1544832000000,20.2229],[1544918400000,20.2229],[1545004800000,20.2229],[1545091200000,20.2884],[1545177600000,20.3224],[1545264000000,20.2338],[1545350400000,20.1418],[1545436800000,20.0199],[1545523200000,20.0199],[1545609600000,20.0199],[1545696000000,20.0199],[1545782400000,20.0199],[1545868800000,19.8704],[1545955200000,20.001],[1546041600000,20.275],[1546128000000,20.275]], 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, 21.505855],[1515974400000, 21.505855],[1518652800000, 20.608135],[1521072000000, 20.000621],[1523750400000, 19.867254],[1526342400000, 19.566441],[1529020800000, 19.473049],[1531612800000, 19.360855],[1534291200000, 20.106122],[1536969600000, 20.567100],[1539561600000, 20.391542],[1542240000000, 20.304972],[1544832000000, 20.263518]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });