$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1514764800000,28.6188],[1514851200000,28.6188],[1514937600000,28.6188],[1515024000000,28.5726],[1515110400000,28.7326],[1515196800000,28.8942],[1515283200000,28.8942],[1515369600000,28.8942],[1515456000000,28.8942],[1515542400000,28.6963],[1515628800000,28.9739],[1515715200000,29.1268],[1515801600000,29.384],[1515888000000,29.384],[1515974400000,29.384],[1516060800000,29.725],[1516147200000,29.7093],[1516233600000,29.7106],[1516320000000,29.9704],[1516406400000,30.0641],[1516492800000,30.0641],[1516579200000,30.0641],[1516665600000,30.0418],[1516752000000,30.0166],[1516838400000,30.383],[1516924800000,30.5344],[1517011200000,30.5219],[1517097600000,30.5219],[1517184000000,30.5219],[1517270400000,30.2399],[1517356800000,30.0196],[1517443200000,29.8209],[1517529600000,29.9255],[1517616000000,30.0419],[1517702400000,30.0419],[1517788800000,30.0419],[1517875200000,29.7539],[1517961600000,29.2598],[1518048000000,28.8202],[1518134400000,28.7601],[1518220800000,28.8774],[1518307200000,28.8774],[1518393600000,28.8774],[1518480000000,28.6137],[1518566400000,28.5788],[1518652800000,28.5731],[1518739200000,28.9571],[1518825600000,29.2001],[1518912000000,29.2001],[1518998400000,29.2001],[1519084800000,29.1165],[1519171200000,28.9573],[1519257600000,28.7661],[1519344000000,28.8785],[1519430400000,28.8512],[1519516800000,28.8512],[1519603200000,28.8512],[1519689600000,28.857],[1519776000000,28.7278],[1519862400000,28.4204],[1519948800000,28.179],[1520035200000,28.38],[1520121600000,28.38],[1520208000000,28.38],[1520294400000,28.2202],[1520380800000,28.1281],[1520467200000,27.7571],[1520553600000,27.7571],[1520640000000,27.7571],[1520726400000,27.7571],[1520812800000,27.7571],[1520899200000,27.3028],[1520985600000,27.4411],[1521072000000,27.492],[1521158400000,27.7381],[1521244800000,27.7029],[1521331200000,27.7029],[1521417600000,27.7029],[1521504000000,27.7717],[1521590400000,27.5465],[1521676800000,27.5761],[1521763200000,27.7046],[1521849600000,27.7086],[1521936000000,27.7086],[1522022400000,27.7086],[1522108800000,27.8102],[1522195200000,27.6748],[1522281600000,27.7411],[1522368000000,27.7649],[1522454400000,27.5175],[1522540800000,27.5175],[1522627200000,27.5175],[1522713600000,27.3647],[1522800000000,27.5214],[1522886400000,27.3782],[1522972800000,27.0919],[1523059200000,26.9888],[1523145600000,26.9888],[1523232000000,26.9888],[1523318400000,26.9888],[1523404800000,27.2289],[1523491200000,27.0828],[1523577600000,26.9644],[1523664000000,27.1453],[1523750400000,27.1453],[1523836800000,27.1453],[1523923200000,27.1699],[1524009600000,27.0663],[1524096000000,27.0405],[1524182400000,27.1151],[1524268800000,26.9199],[1524355200000,26.9199],[1524441600000,26.9199],[1524528000000,26.7754],[1524614400000,26.7668],[1524700800000,26.7067],[1524787200000,26.6506],[1524873600000,26.4366],[1524960000000,26.4366],[1525046400000,26.4366],[1525132800000,26.4366],[1525219200000,26.4366],[1525305600000,26.2644],[1525392000000,26.2659],[1525478400000,26.3473],[1525564800000,26.3473],[1525651200000,26.3473],[1525737600000,26.1539],[1525824000000,26.1398],[1525910400000,26.1398],[1525996800000,26.1262],[1526083200000,26.2002],[1526169600000,26.2002],[1526256000000,26.2002],[1526342400000,26.2216],[1526428800000,26.1514],[1526515200000,26.1904],[1526601600000,26.1578],[1526688000000,26.1657],[1526774400000,26.1657],[1526860800000,26.1657],[1526947200000,26.0969],[1527033600000,26.1955],[1527120000000,26.3289],[1527206400000,26.3797],[1527292800000,26.3345],[1527379200000,26.3345],[1527465600000,26.3345],[1527552000000,26.3345],[1527638400000,26.1919],[1527724800000,26.406],[1527811200000,26.5144],[1527897600000,26.4265],[1527984000000,26.4265],[1528070400000,26.4265],[1528156800000,26.5652],[1528243200000,26.5196],[1528329600000,26.4683],[1528416000000,26.6742],[1528502400000,26.5475],[1528588800000,26.5475],[1528675200000,26.5475],[1528761600000,26.448],[1528848000000,26.4761],[1528934400000,26.4571],[1529020800000,26.5478],[1529107200000,26.3633],[1529193600000,26.3633],[1529280000000,26.3633],[1529366400000,26.4634],[1529452800000,26.5223],[1529539200000,null],[1529625600000,26.4015],[1529712000000,26.4982],[1529798400000,26.4982],[1529884800000,26.4982],[1529971200000,26.5158],[1530057600000,26.4819],[1530144000000,26.5101],[1530230400000,26.5101],[1530316800000,26.5101],[1530403200000,26.5101],[1530489600000,26.5101],[1530576000000,26.4051],[1530662400000,26.5083],[1530748800000,26.6324],[1530835200000,26.6483],[1530921600000,26.5195],[1531008000000,26.5195],[1531094400000,26.5195],[1531180800000,26.5721],[1531267200000,26.3532],[1531353600000,26.4118],[1531440000000,26.2641],[1531526400000,26.0965],[1531612800000,26.0965],[1531699200000,26.0965],[1531785600000,26.2606],[1531872000000,26.3544],[1531958400000,26.3033],[1532044800000,26.395],[1532131200000,26.5302],[1532217600000,26.5302],[1532304000000,26.5302],[1532390400000,26.682],[1532476800000,26.7661],[1532563200000,26.8381],[1532649600000,26.8808],[1532736000000,26.8261],[1532822400000,26.8261],[1532908800000,26.8261],[1532995200000,26.9536],[1533081600000,null],[1533168000000,27.2111],[1533254400000,27.1686],[1533340800000,27.2337],[1533427200000,27.2337],[1533513600000,27.2337],[1533600000000,27.2024],[1533686400000,27.1898],[1533772800000,27.0668],[1533859200000,27.3022],[1533945600000,27.4011],[1534032000000,27.4011],[1534118400000,27.4011],[1534204800000,27.5012],[1534291200000,27.7214],[1534377600000,27.5277],[1534464000000,27.8444],[1534550400000,28.029],[1534636800000,28.029],[1534723200000,28.029],[1534809600000,27.8283],[1534896000000,28.0262],[1534982400000,28.4114],[1535068800000,28.3328],[1535155200000,28.3328],[1535241600000,28.3328],[1535328000000,28.3328],[1535414400000,28.3855],[1535500800000,28.7459],[1535587200000,28.7956],[1535673600000,29.1598],[1535760000000,29.1725],[1535846400000,29.1725],[1535932800000,29.1725],[1536019200000,29.2371],[1536105600000,29.2546],[1536192000000,29.1515],[1536278400000,29.1233],[1536364800000,29.2679],[1536451200000,29.2679],[1536537600000,29.2679],[1536624000000,28.9616],[1536710400000,28.8381],[1536796800000,28.7916],[1536883200000,29.0132],[1536969600000,29.1884],[1537056000000,29.1884],[1537142400000,29.1884],[1537228800000,29.2157],[1537315200000,29.2826],[1537401600000,29.0232],[1537488000000,29.1955],[1537574400000,29.39],[1537660800000,29.39],[1537747200000,29.39],[1537833600000,29.3137],[1537920000000,29.0504],[1538006400000,29.0538],[1538092800000,29.1344],[1538179200000,28.9195],[1538265600000,28.9195],[1538352000000,28.9195],[1538438400000,28.6873],[1538524800000,28.7469],[1538611200000,28.6576],[1538697600000,28.4047],[1538784000000,28.2641],[1538870400000,28.2641],[1538956800000,28.2641],[1539043200000,28.29],[1539129600000,28.2147],[1539216000000,28.2188],[1539302400000,28.3395],[1539388800000,28.1814],[1539475200000,28.1814],[1539561600000,28.1814],[1539648000000,28.1814],[1539734400000,28.279],[1539820800000,28.1046],[1539907200000,28.1689],[1539993600000,28.3029],[1540080000000,28.3029],[1540166400000,28.3029],[1540252800000,28.1735],[1540339200000,28.2825],[1540425600000,28.2528],[1540512000000,28.3579],[1540598400000,28.2113],[1540684800000,28.2113],[1540771200000,28.2113],[1540857600000,28.1951],[1540944000000,28.1298],[1541030400000,27.919],[1541116800000,28.0667],[1541203200000,28.1205],[1541289600000,28.1205],[1541376000000,28.1205],[1541462400000,27.8512],[1541548800000,27.8778],[1541635200000,28.0018],[1541721600000,27.8487],[1541808000000,27.7255],[1541894400000,27.7255],[1541980800000,27.7255],[1542067200000,27.6509],[1542153600000,27.6554],[1542240000000,27.5975],[1542326400000,27.6276],[1542412800000,27.5486],[1542499200000,27.5486],[1542585600000,27.5486],[1542672000000,27.8526],[1542758400000,27.9918],[1542844800000,27.9414],[1542931200000,27.8729],[1543017600000,27.8843],[1543104000000,27.8843],[1543190400000,27.8843],[1543276800000,27.9748],[1543363200000,28.1526],[1543449600000,28.2966],[1543536000000,28.5489],[1543622400000,28.2701],[1543708800000,28.2701],[1543795200000,28.2701],[1543881600000,28.1951],[1543968000000,28.2771],[1544054400000,28.0399],[1544140800000,27.9955],[1544227200000,28.0015],[1544313600000,28.0015],[1544400000000,28.0015],[1544486400000,28.0965],[1544572800000,28.0359],[1544659200000,27.956],[1544745600000,28.0744],[1544832000000,27.9138],[1544918400000,27.9138],[1545004800000,27.9138],[1545091200000,28.1017],[1545177600000,28.0849],[1545264000000,27.9054],[1545350400000,27.8689],[1545436800000,27.6813],[1545523200000,27.6813],[1545609600000,27.6813],[1545696000000,27.6813],[1545782400000,27.6813],[1545868800000,27.4992],[1545955200000,27.6935],[1546041600000,28.2481],[1546128000000,28.2481]], 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, 29.541800],[1515974400000, 29.541800],[1518652800000, 29.117073],[1521072000000, 27.812547],[1523750400000, 27.013972],[1526342400000, 26.250349],[1529020800000, 26.485942],[1531612800000, 26.521499],[1534291200000, 27.813689],[1536969600000, 29.151191],[1539561600000, 28.305925],[1542240000000, 27.885492],[1544832000000, 27.984873]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });