$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1514764800000,3.40221],[1514851200000,3.40221],[1514937600000,3.40221],[1515024000000,3.41301],[1515110400000,3.44106],[1515196800000,3.45521],[1515283200000,3.45521],[1515369600000,3.45521],[1515456000000,3.45521],[1515542400000,3.42383],[1515628800000,3.46264],[1515715200000,3.48087],[1515801600000,3.5216],[1515888000000,3.5216],[1515974400000,3.5216],[1516060800000,3.56664],[1516147200000,3.56743],[1516233600000,3.5541],[1516320000000,3.58163],[1516406400000,3.59486],[1516492800000,3.59486],[1516579200000,3.59486],[1516665600000,3.59377],[1516752000000,3.59157],[1516838400000,3.62626],[1516924800000,3.63224],[1517011200000,3.62258],[1517097600000,3.62258],[1517184000000,3.62258],[1517270400000,3.57445],[1517356800000,3.55632],[1517443200000,3.55212],[1517529600000,3.54203],[1517616000000,3.54669],[1517702400000,3.54669],[1517788800000,3.54669],[1517875200000,3.50949],[1517961600000,3.43077],[1518048000000,3.39405],[1518134400000,3.35789],[1518220800000,3.33933],[1518307200000,3.33933],[1518393600000,3.33933],[1518480000000,3.31814],[1518566400000,3.31312],[1518652800000,3.31437],[1518739200000,3.37074],[1518825600000,3.39333],[1518912000000,3.39333],[1518998400000,3.39333],[1519084800000,3.38075],[1519171200000,3.35126],[1519257600000,3.33451],[1519344000000,3.32457],[1519430400000,3.30009],[1519516800000,3.30009],[1519603200000,3.30009],[1519689600000,3.3128],[1519776000000,3.28859],[1519862400000,3.24408],[1519948800000,3.20793],[1520035200000,3.21429],[1520121600000,3.21429],[1520208000000,3.21429],[1520294400000,3.20521],[1520380800000,3.21124],[1520467200000,3.16467],[1520553600000,3.16467],[1520640000000,3.16467],[1520726400000,3.16467],[1520812800000,3.16467],[1520899200000,3.14017],[1520985600000,3.15835],[1521072000000,3.17779],[1521158400000,3.21202],[1521244800000,3.21623],[1521331200000,3.21623],[1521417600000,3.21623],[1521504000000,3.22697],[1521590400000,3.21065],[1521676800000,3.20062],[1521763200000,3.19506],[1521849600000,3.18093],[1521936000000,3.18093],[1522022400000,3.18093],[1522108800000,3.20477],[1522195200000,3.18695],[1522281600000,3.18456],[1522368000000,3.18002],[1522454400000,3.15169],[1522540800000,3.15169],[1522627200000,3.15169],[1522713600000,3.13419],[1522800000000,3.14723],[1522886400000,3.12484],[1522972800000,3.09847],[1523059200000,3.09191],[1523145600000,3.09191],[1523232000000,3.09191],[1523318400000,3.09191],[1523404800000,3.12171],[1523491200000,3.1213],[1523577600000,3.08736],[1523664000000,3.10006],[1523750400000,3.10006],[1523836800000,3.10006],[1523923200000,3.10178],[1524009600000,3.10169],[1524096000000,3.11361],[1524182400000,3.12908],[1524268800000,3.10724],[1524355200000,3.10724],[1524441600000,3.10724],[1524528000000,3.0813],[1524614400000,3.08073],[1524700800000,3.07145],[1524787200000,3.05488],[1524873600000,3.00616],[1524960000000,3.00616],[1525046400000,3.00616],[1525132800000,3.00616],[1525219200000,3.00616],[1525305600000,2.95782],[1525392000000,2.96184],[1525478400000,2.9783],[1525564800000,2.9783],[1525651200000,2.9783],[1525737600000,2.96922],[1525824000000,2.97079],[1525910400000,2.97079],[1525996800000,3.0161],[1526083200000,3.0462],[1526169600000,3.0462],[1526256000000,3.0462],[1526342400000,3.04727],[1526428800000,3.02603],[1526515200000,3.00124],[1526601600000,3.003],[1526688000000,2.98865],[1526774400000,2.98865],[1526860800000,2.98865],[1526947200000,2.99076],[1527033600000,3.00988],[1527120000000,2.96739],[1527206400000,2.98669],[1527292800000,2.99538],[1527379200000,2.99538],[1527465600000,2.99538],[1527552000000,2.99538],[1527638400000,2.92374],[1527724800000,2.9578],[1527811200000,2.9762],[1527897600000,2.96012],[1527984000000,2.96012],[1528070400000,2.96012],[1528156800000,2.98998],[1528243200000,2.97931],[1528329600000,2.99533],[1528416000000,3.02169],[1528502400000,2.98637],[1528588800000,2.98637],[1528675200000,2.98637],[1528761600000,3.00026],[1528848000000,3.02826],[1528934400000,3.03202],[1529020800000,3.02713],[1529107200000,3.00016],[1529193600000,3.00016],[1529280000000,3.00016],[1529366400000,2.99109],[1529452800000,2.95498],[1529539200000,null],[1529625600000,2.93963],[1529712000000,2.96873],[1529798400000,2.96873],[1529884800000,2.96873],[1529971200000,2.95525],[1530057600000,2.95677],[1530144000000,2.9547],[1530230400000,2.9547],[1530316800000,2.9547],[1530403200000,2.9547],[1530489600000,2.9547],[1530576000000,2.92202],[1530662400000,2.9749],[1530748800000,3.00255],[1530835200000,3.02322],[1530921600000,2.99804],[1531008000000,2.99804],[1531094400000,2.99804],[1531180800000,3.01769],[1531267200000,2.99682],[1531353600000,2.99554],[1531440000000,2.95855],[1531526400000,2.94365],[1531612800000,2.94365],[1531699200000,2.94365],[1531785600000,2.97237],[1531872000000,2.98026],[1531958400000,2.96168],[1532044800000,2.96203],[1532131200000,2.97018],[1532217600000,2.97018],[1532304000000,2.97018],[1532390400000,2.9944],[1532476800000,3.01306],[1532563200000,3.02422],[1532649600000,3.03926],[1532736000000,3.02012],[1532822400000,3.02012],[1532908800000,3.02012],[1532995200000,3.04974],[1533081600000,null],[1533168000000,3.06179],[1533254400000,3.04648],[1533340800000,3.04236],[1533427200000,3.04236],[1533513600000,3.04236],[1533600000000,3.03942],[1533686400000,3.03645],[1533772800000,3.00795],[1533859200000,3.02577],[1533945600000,2.99378],[1534032000000,2.99378],[1534118400000,2.99378],[1534204800000,2.99548],[1534291200000,3.01969],[1534377600000,2.98713],[1534464000000,3.00597],[1534550400000,3.02847],[1534636800000,3.02847],[1534723200000,3.02847],[1534809600000,3.0147],[1534896000000,3.03197],[1534982400000,3.08273],[1535068800000,3.0662],[1535155200000,3.0662],[1535241600000,3.0662],[1535328000000,3.0662],[1535414400000,3.05753],[1535500800000,3.08047],[1535587200000,3.06611],[1535673600000,3.10638],[1535760000000,3.09868],[1535846400000,3.09868],[1535932800000,3.09868],[1536019200000,3.11366],[1536105600000,3.11833],[1536192000000,3.1218],[1536278400000,3.10048],[1536364800000,3.1218],[1536451200000,3.1218],[1536537600000,3.1218],[1536624000000,3.11713],[1536710400000,3.10137],[1536796800000,3.09989],[1536883200000,3.12879],[1536969600000,3.12033],[1537056000000,3.12033],[1537142400000,3.12033],[1537228800000,3.1405],[1537315200000,3.16074],[1537401600000,3.1583],[1537488000000,3.19555],[1537574400000,3.19403],[1537660800000,3.19403],[1537747200000,3.19403],[1537833600000,3.19566],[1537920000000,3.19255],[1538006400000,3.18334],[1538092800000,3.2099],[1538179200000,3.17444],[1538265600000,3.17444],[1538352000000,3.17444],[1538438400000,3.16976],[1538524800000,3.14399],[1538611200000,3.15083],[1538697600000,3.1156],[1538784000000,3.09412],[1538870400000,3.09412],[1538956800000,3.09412],[1539043200000,3.0862],[1539129600000,3.07445],[1539216000000,3.07284],[1539302400000,3.11103],[1539388800000,3.12029],[1539475200000,3.12029],[1539561600000,3.12029],[1539648000000,3.12029],[1539734400000,3.13697],[1539820800000,3.12058],[1539907200000,3.12167],[1539993600000,3.12746],[1540080000000,3.12746],[1540166400000,3.12746],[1540252800000,3.12415],[1540339200000,3.11853],[1540425600000,3.10183],[1540512000000,3.11247],[1540598400000,3.0827],[1540684800000,3.0827],[1540771200000,3.0827],[1540857600000,3.08895],[1540944000000,3.07376],[1541030400000,3.05965],[1541116800000,3.10982],[1541203200000,3.11465],[1541289600000,3.11465],[1541376000000,3.11465],[1541462400000,3.08454],[1541548800000,3.08765],[1541635200000,3.10176],[1541721600000,3.11169],[1541808000000,3.08295],[1541894400000,3.08295],[1541980800000,3.08295],[1542067200000,3.06057],[1542153600000,3.07366],[1542240000000,3.06251],[1542326400000,3.06171],[1542412800000,3.06868],[1542499200000,3.06868],[1542585600000,3.06868],[1542672000000,3.08582],[1542758400000,3.07458],[1542844800000,3.07228],[1542931200000,3.07066],[1543017600000,3.0622],[1543104000000,3.0622],[1543190400000,3.0622],[1543276800000,3.07986],[1543363200000,3.09636],[1543449600000,3.11074],[1543536000000,3.13354],[1543622400000,3.10657],[1543708800000,3.10657],[1543795200000,3.10657],[1543881600000,3.11908],[1543968000000,3.13696],[1544054400000,3.12163],[1544140800000,3.0918],[1544227200000,3.08177],[1544313600000,3.08177],[1544400000000,3.08177],[1544486400000,3.07123],[1544572800000,3.06252],[1544659200000,3.04562],[1544745600000,3.07587],[1544832000000,3.06151],[1544918400000,3.06151],[1545004800000,3.06151],[1545091200000,3.07867],[1545177600000,3.08317],[1545264000000,3.05739],[1545350400000,3.07991],[1545436800000,3.04801],[1545523200000,3.04801],[1545609600000,3.04801],[1545696000000,3.04801],[1545782400000,3.04801],[1545868800000,3.00761],[1545955200000,3.04069],[1546041600000,3.08584],[1546128000000,3.08584]], 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, 3.526142],[1515974400000, 3.526142],[1518652800000, 3.386910],[1521072000000, 3.192121],[1523750400000, 3.096034],[1526342400000, 2.993344],[1529020800000, 2.981314],[1531612800000, 2.986894],[1534291200000, 3.037489],[1536969600000, 3.143046],[1539561600000, 3.112647],[1542240000000, 3.084095],[1544832000000, 3.074814]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });