$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1514764800000,8.01173],[1514851200000,8.01173],[1514937600000,8.01173],[1515024000000,8.05071],[1515110400000,8.13335],[1515196800000,8.17512],[1515283200000,8.17512],[1515369600000,8.17512],[1515456000000,8.17512],[1515542400000,8.05171],[1515628800000,8.12453],[1515715200000,8.18074],[1515801600000,8.30136],[1515888000000,8.30136],[1515974400000,8.30136],[1516060800000,8.4135],[1516147200000,8.40076],[1516233600000,8.38618],[1516320000000,8.45056],[1516406400000,8.4738],[1516492800000,8.4738],[1516579200000,8.4738],[1516665600000,8.47367],[1516752000000,8.4796],[1516838400000,8.57842],[1516924800000,8.60021],[1517011200000,8.57107],[1517097600000,8.57107],[1517184000000,8.57107],[1517270400000,8.43864],[1517356800000,8.39338],[1517443200000,8.35714],[1517529600000,8.35822],[1517616000000,8.38608],[1517702400000,8.38608],[1517788800000,8.38608],[1517875200000,8.29905],[1517961600000,8.12998],[1518048000000,8.04429],[1518134400000,7.97035],[1518220800000,7.9252],[1518307200000,7.9252],[1518393600000,7.9252],[1518480000000,7.88405],[1518566400000,7.88121],[1518652800000,7.88928],[1518739200000,8.04946],[1518825600000,8.08747],[1518912000000,8.08747],[1518998400000,8.08747],[1519084800000,8.08533],[1519171200000,8.05653],[1519257600000,7.98953],[1519344000000,7.94696],[1519430400000,7.96042],[1519516800000,7.96042],[1519603200000,7.96042],[1519689600000,7.9795],[1519776000000,7.95512],[1519862400000,7.83616],[1519948800000,7.75558],[1520035200000,7.7892],[1520121600000,7.7892],[1520208000000,7.7892],[1520294400000,7.77673],[1520380800000,7.82057],[1520467200000,7.72571],[1520553600000,7.72571],[1520640000000,7.72571],[1520726400000,7.72571],[1520812800000,7.72571],[1520899200000,7.59109],[1520985600000,7.6162],[1521072000000,7.65692],[1521158400000,7.69742],[1521244800000,7.6869],[1521331200000,7.6869],[1521417600000,7.6869],[1521504000000,7.71623],[1521590400000,7.63707],[1521676800000,7.62176],[1521763200000,7.659],[1521849600000,7.67293],[1521936000000,7.67293],[1522022400000,7.67293],[1522108800000,7.71782],[1522195200000,7.71558],[1522281600000,7.78124],[1522368000000,7.76712],[1522454400000,7.69793],[1522540800000,7.69793],[1522627200000,7.69793],[1522713600000,7.65518],[1522800000000,7.69987],[1522886400000,7.66993],[1522972800000,7.60153],[1523059200000,7.58435],[1523145600000,7.58435],[1523232000000,7.58435],[1523318400000,7.58435],[1523404800000,7.65761],[1523491200000,7.65994],[1523577600000,7.65294],[1523664000000,7.70492],[1523750400000,7.70492],[1523836800000,7.70492],[1523923200000,7.75277],[1524009600000,7.74737],[1524096000000,7.76839],[1524182400000,7.79402],[1524268800000,7.73162],[1524355200000,7.73162],[1524441600000,7.73162],[1524528000000,7.63193],[1524614400000,7.6127],[1524700800000,7.5781],[1524787200000,7.53464],[1524873600000,7.49938],[1524960000000,7.49938],[1525046400000,7.49938],[1525132800000,7.49938],[1525219200000,7.49938],[1525305600000,7.3452],[1525392000000,7.36812],[1525478400000,7.40077],[1525564800000,7.40077],[1525651200000,7.40077],[1525737600000,7.35609],[1525824000000,7.27285],[1525910400000,7.27285],[1525996800000,7.33008],[1526083200000,7.34189],[1526169600000,7.34189],[1526256000000,7.34189],[1526342400000,7.3598],[1526428800000,7.27089],[1526515200000,7.20085],[1526601600000,7.20667],[1526688000000,7.17227],[1526774400000,7.17227],[1526860800000,7.17227],[1526947200000,7.11014],[1527033600000,7.1738],[1527120000000,7.08695],[1527206400000,7.11554],[1527292800000,7.08506],[1527379200000,7.08506],[1527465600000,7.08506],[1527552000000,7.08506],[1527638400000,6.99725],[1527724800000,7.04791],[1527811200000,7.09752],[1527897600000,7.06],[1527984000000,7.06],[1528070400000,7.06],[1528156800000,7.15836],[1528243200000,7.12059],[1528329600000,7.1995],[1528416000000,7.27104],[1528502400000,7.17892],[1528588800000,7.17892],[1528675200000,7.17892],[1528761600000,7.20937],[1528848000000,7.19276],[1528934400000,7.1862],[1529020800000,7.20763],[1529107200000,7.12863],[1529193600000,7.12863],[1529280000000,7.12863],[1529366400000,7.13123],[1529452800000,7.07028],[1529539200000,null],[1529625600000,7.01663],[1529712000000,7.08331],[1529798400000,7.08331],[1529884800000,7.08331],[1529971200000,7.0609],[1530057600000,7.04169],[1530144000000,7.05256],[1530230400000,7.05256],[1530316800000,7.05256],[1530403200000,7.05256],[1530489600000,7.05256],[1530576000000,6.95606],[1530662400000,6.98579],[1530748800000,7.0288],[1530835200000,7.1016],[1530921600000,7.06418],[1531008000000,7.06418],[1531094400000,7.06418],[1531180800000,7.16273],[1531267200000,7.10489],[1531353600000,7.12216],[1531440000000,7.06615],[1531526400000,7.06858],[1531612800000,7.06858],[1531699200000,7.06858],[1531785600000,7.14073],[1531872000000,7.13781],[1531958400000,7.08554],[1532044800000,7.08786],[1532131200000,7.13933],[1532217600000,7.13933],[1532304000000,7.13933],[1532390400000,7.17325],[1532476800000,7.20681],[1532563200000,7.23947],[1532649600000,7.28955],[1532736000000,7.24876],[1532822400000,7.24876],[1532908800000,7.24876],[1532995200000,7.30853],[1533081600000,null],[1533168000000,7.38177],[1533254400000,7.32828],[1533340800000,7.36765],[1533427200000,7.36765],[1533513600000,7.36765],[1533600000000,7.32914],[1533686400000,7.37244],[1533772800000,7.33524],[1533859200000,7.354],[1533945600000,7.2738],[1534032000000,7.2738],[1534118400000,7.2738],[1534204800000,7.25727],[1534291200000,7.28482],[1534377600000,7.17955],[1534464000000,7.29252],[1534550400000,7.37081],[1534636800000,7.37081],[1534723200000,7.37081],[1534809600000,7.3494],[1534896000000,7.39803],[1534982400000,7.56446],[1535068800000,7.5385],[1535155200000,7.5385],[1535241600000,7.5385],[1535328000000,7.5385],[1535414400000,7.59515],[1535500800000,7.68859],[1535587200000,7.65296],[1535673600000,7.71054],[1535760000000,7.6689],[1535846400000,7.6689],[1535932800000,7.6689],[1536019200000,7.67004],[1536105600000,7.65311],[1536192000000,7.60856],[1536278400000,7.60404],[1536364800000,7.62048],[1536451200000,7.62048],[1536537600000,7.62048],[1536624000000,7.5589],[1536710400000,7.5458],[1536796800000,7.53341],[1536883200000,7.5835],[1536969600000,7.64407],[1537056000000,7.64407],[1537142400000,7.64407],[1537228800000,7.64212],[1537315200000,7.6563],[1537401600000,7.63844],[1537488000000,7.69388],[1537574400000,7.68387],[1537660800000,7.68387],[1537747200000,7.68387],[1537833600000,7.69495],[1537920000000,7.69804],[1538006400000,7.7129],[1538092800000,7.74417],[1538179200000,7.65074],[1538265600000,7.65074],[1538352000000,7.65074],[1538438400000,7.6511],[1538524800000,7.60698],[1538611200000,7.61337],[1538697600000,7.52408],[1538784000000,7.50712],[1538870400000,7.50712],[1538956800000,7.50712],[1539043200000,7.48342],[1539129600000,7.44088],[1539216000000,7.47246],[1539302400000,7.5039],[1539388800000,7.52843],[1539475200000,7.52843],[1539561600000,7.52843],[1539648000000,7.52843],[1539734400000,7.54547],[1539820800000,7.49608],[1539907200000,7.50335],[1539993600000,7.51441],[1540080000000,7.51441],[1540166400000,7.51441],[1540252800000,7.52258],[1540339200000,7.52092],[1540425600000,7.46333],[1540512000000,7.50636],[1540598400000,7.42705],[1540684800000,7.42705],[1540771200000,7.42705],[1540857600000,7.43303],[1540944000000,7.39571],[1541030400000,7.33428],[1541116800000,7.41414],[1541203200000,7.43467],[1541289600000,7.43467],[1541376000000,7.43467],[1541462400000,7.38613],[1541548800000,7.41458],[1541635200000,7.46279],[1541721600000,7.43411],[1541808000000,7.3801],[1541894400000,7.3801],[1541980800000,7.3801],[1542067200000,7.31557],[1542153600000,7.31267],[1542240000000,7.32852],[1542326400000,7.31344],[1542412800000,7.2973],[1542499200000,7.2973],[1542585600000,7.2973],[1542672000000,7.32841],[1542758400000,7.34398],[1542844800000,7.37025],[1542931200000,7.35712],[1543017600000,7.34681],[1543104000000,7.34681],[1543190400000,7.34681],[1543276800000,7.38607],[1543363200000,7.42103],[1543449600000,7.42644],[1543536000000,7.53303],[1543622400000,7.47278],[1543708800000,7.47278],[1543795200000,7.47278],[1543881600000,7.45763],[1543968000000,7.49337],[1544054400000,7.41689],[1544140800000,7.37998],[1544227200000,7.37591],[1544313600000,7.37591],[1544400000000,7.37591],[1544486400000,7.39382],[1544572800000,7.33658],[1544659200000,7.33986],[1544745600000,7.38208],[1544832000000,7.31005],[1544918400000,7.31005],[1545004800000,7.31005],[1545091200000,7.38312],[1545177600000,7.39419],[1545264000000,7.38011],[1545350400000,7.36502],[1545436800000,7.30744],[1545523200000,7.30744],[1545609600000,7.30744],[1545696000000,7.30744],[1545782400000,7.30744],[1545868800000,7.25987],[1545955200000,7.27338],[1546041600000,7.37058],[1546128000000,7.37058]], 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, 8.320333],[1515974400000, 8.320333],[1518652800000, 8.069768],[1521072000000, 7.714196],[1523750400000, 7.651931],[1526342400000, 7.245122],[1529020800000, 7.119791],[1531612800000, 7.124691],[1534291200000, 7.408831],[1536969600000, 7.646386],[1539561600000, 7.509458],[1542240000000, 7.375307],[1544832000000, 7.367130]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });