$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1483228800000,27.1909],[1483315200000,27.1909],[1483401600000,27.1909],[1483488000000,27.1909],[1483574400000,26.6924],[1483660800000,26.6924],[1483747200000,27.0209],[1483833600000,27.0209],[1483920000000,27.0209],[1484006400000,27.0209],[1484092800000,27.1868],[1484179200000,27.1132],[1484265600000,27.2516],[1484352000000,null],[1484438400000,27.6692],[1484524800000,27.6692],[1484611200000,27.7215],[1484697600000,27.6298],[1484784000000,27.4919],[1484870400000,27.4422],[1484956800000,27.4285],[1485043200000,27.4285],[1485129600000,27.4285],[1485216000000,27.3325],[1485302400000,27.2319],[1485388800000,27.2081],[1485475200000,27.2131],[1485561600000,27.1922],[1485648000000,27.1922],[1485734400000,27.1922],[1485820800000,27.119],[1485907200000,27.0795],[1485993600000,26.9986],[1486080000000,26.987],[1486166400000,27.078],[1486252800000,27.078],[1486339200000,27.078],[1486425600000,27.2627],[1486512000000,27.0319],[1486598400000,26.9125],[1486684800000,27.0251],[1486771200000,27.2068],[1486857600000,27.2068],[1486944000000,27.2068],[1487030400000,27.1651],[1487116800000,27.2305],[1487203200000,26.9936],[1487289600000,26.9887],[1487376000000,27.0261],[1487462400000,27.0261],[1487548800000,27.0261],[1487635200000,27.0253],[1487721600000,27.0425],[1487808000000,26.9729],[1487894400000,26.9063],[1487980800000,26.9766],[1488067200000,26.9766],[1488153600000,26.9766],[1488240000000,27.0537],[1488326400000,27.1637],[1488412800000,27.1806],[1488499200000,27.0913],[1488585600000,27.1192],[1488672000000,27.1192],[1488758400000,27.1192],[1488844800000,27.0213],[1488931200000,26.9595],[1489017600000,26.9595],[1489104000000,26.9086],[1489190400000,26.8102],[1489276800000,26.8102],[1489363200000,26.8102],[1489449600000,26.8946],[1489536000000,26.9043],[1489622400000,26.8808],[1489708800000,26.979],[1489795200000,26.9093],[1489881600000,26.9093],[1489968000000,26.9093],[1490054400000,26.8879],[1490140800000,26.8511],[1490227200000,26.9199],[1490313600000,27.0577],[1490400000000,27.1246],[1490486400000,27.1246],[1490572800000,27.1246],[1490659200000,27.1535],[1490745600000,27.1207],[1490832000000,27.0401],[1490918400000,26.9761],[1491004800000,27.0217],[1491091200000,27.0217],[1491177600000,27.0217],[1491264000000,27.0246],[1491350400000,27.119],[1491436800000,27.157],[1491523200000,27.1003],[1491609600000,26.974],[1491696000000,26.974],[1491782400000,26.974],[1491868800000,26.9332],[1491955200000,26.8938],[1492041600000,26.8757],[1492128000000,26.8642],[1492214400000,26.8121],[1492300800000,26.8121],[1492387200000,26.8121],[1492473600000,26.8121],[1492560000000,26.845],[1492646400000,26.7871],[1492732800000,26.7567],[1492819200000,26.7328],[1492905600000,26.7328],[1492992000000,26.7328],[1493078400000,26.6737],[1493164800000,26.6318],[1493251200000,26.5889],[1493337600000,26.5515],[1493424000000,26.5609],[1493510400000,26.5609],[1493596800000,26.5609],[1493683200000,26.5609],[1493769600000,26.5609],[1493856000000,26.5234],[1493942400000,26.4858],[1494028800000,26.5093],[1494115200000,26.5093],[1494201600000,26.5093],[1494288000000,26.5093],[1494374400000,26.5093],[1494460800000,26.4559],[1494547200000,26.4289],[1494633600000,26.4743],[1494720000000,26.4743],[1494806400000,26.4743],[1494892800000,26.4719],[1494979200000,26.4334],[1495065600000,26.4174],[1495152000000,26.3934],[1495238400000,26.3697],[1495324800000,26.3697],[1495411200000,26.3697],[1495497600000,26.3419],[1495584000000,26.3045],[1495670400000,26.2661],[1495756800000,26.2767],[1495843200000,26.3454],[1495929600000,26.3454],[1496016000000,26.3454],[1496102400000,26.3878],[1496188800000,26.3528],[1496275200000,26.3103],[1496361600000,26.271],[1496448000000,26.2809],[1496534400000,26.2809],[1496620800000,26.2809],[1496707200000,26.2809],[1496793600000,26.2466],[1496880000000,26.2054],[1496966400000,26.1492],[1497052800000,26.1248],[1497139200000,26.1248],[1497225600000,26.1248],[1497312000000,26.0707],[1497398400000,25.9952],[1497484800000,26.015],[1497571200000,26.0071],[1497657600000,26.0219],[1497744000000,26.0219],[1497830400000,26.0219],[1497916800000,26.0231],[1498003200000,26.0349],[1498089600000,26.0236],[1498176000000,26.0257],[1498262400000,26.0311],[1498348800000,26.0311],[1498435200000,26.0311],[1498521600000,26.0366],[1498608000000,26.0801],[1498694400000,26.0801],[1498780800000,26.099],[1498867200000,26.0234],[1498953600000,26.0234],[1499040000000,26.0234],[1499126400000,25.9945],[1499212800000,26.0174],[1499299200000,26.1193],[1499385600000,26.0603],[1499472000000,26.023],[1499558400000,26.023],[1499644800000,26.023],[1499731200000,26.0042],[1499817600000,25.972],[1499904000000,25.9107],[1499990400000,25.9686],[1500076800000,26.0177],[1500163200000,26.0177],[1500249600000,26.0177],[1500336000000,25.9648],[1500422400000,25.9302],[1500508800000,25.9441],[1500595200000,25.9283],[1500681600000,25.8897],[1500768000000,25.8897],[1500854400000,25.8897],[1500940800000,25.8226],[1501027200000,25.8437],[1501113600000,25.8849],[1501200000000,25.9004],[1501286400000,25.9156],[1501372800000,25.9156],[1501459200000,25.9156],[1501545600000,25.8548],[1501632000000,25.8571],[1501718400000,25.9042],[1501804800000,25.8858],[1501891200000,25.8429],[1501977600000,25.8429],[1502064000000,25.8429],[1502150400000,25.7849],[1502236800000,25.7326],[1502323200000,25.7245],[1502409600000,25.6924],[1502496000000,25.6957],[1502582400000,25.6957],[1502668800000,25.6957],[1502755200000,25.6307],[1502841600000,25.5983],[1502928000000,25.5727],[1503014400000,25.5064],[1503100800000,25.4904],[1503187200000,25.4904],[1503273600000,25.4904],[1503360000000,null],[1503446400000,25.4517],[1503532800000,25.5456],[1503619200000,25.5456],[1503705600000,25.5456],[1503792000000,25.5456],[1503878400000,25.5456],[1503964800000,25.5158],[1504051200000,25.4406],[1504137600000,25.5795],[1504224000000,25.694],[1504310400000,25.7484],[1504396800000,25.7484],[1504483200000,25.7484],[1504569600000,25.9062],[1504656000000,25.9543],[1504742400000,25.9822],[1504828800000,26.0032],[1504915200000,26.073],[1505001600000,26.073],[1505088000000,26.073],[1505174400000,26.0087],[1505260800000,26.019],[1505347200000,26.0796],[1505433600000,26.162],[1505520000000,26.2244],[1505606400000,26.2244],[1505692800000,26.2244],[1505779200000,26.1807],[1505865600000,26.1264],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,26.5211],[1506729600000,26.5785],[1506816000000,26.5785],[1506902400000,26.5785],[1506988800000,26.6546],[1507075200000,26.7042],[1507161600000,26.8088],[1507248000000,26.7997],[1507334400000,26.7399],[1507420800000,26.7399],[1507507200000,26.7399],[1507593600000,26.5517],[1507680000000,26.5862],[1507766400000,26.5333],[1507852800000,26.6347],[1507939200000,26.6347],[1508025600000,26.6347],[1508112000000,26.6347],[1508198400000,26.6347],[1508284800000,26.4843],[1508371200000,26.4255],[1508457600000,26.4999],[1508544000000,26.5389],[1508630400000,26.5389],[1508716800000,26.5389],[1508803200000,null],[1508889600000,26.67],[1508976000000,26.77],[1509062400000,26.8266],[1509148800000,26.8758],[1509235200000,26.8758],[1509321600000,26.8758],[1509408000000,26.8294],[1509494400000,26.862],[1509580800000,26.8784],[1509667200000,26.9314],[1509753600000,26.9626],[1509840000000,26.9626],[1509926400000,26.9626],[1510012800000,26.8503],[1510099200000,26.7513],[1510185600000,26.6362],[1510272000000,26.5586],[1510358400000,26.5167],[1510444800000,26.5167],[1510531200000,26.5167],[1510617600000,26.488],[1510704000000,26.4964],[1510790400000,26.4822],[1510876800000,26.4764],[1510963200000,26.4991],[1511049600000,26.4991],[1511136000000,26.4991],[1511222400000,26.4771],[1511308800000,26.4922],[1511395200000,26.6476],[1511481600000,26.8614],[1511568000000,26.9136],[1511654400000,26.9136],[1511740800000,26.9136],[1511827200000,26.8353],[1511913600000,26.8718],[1512000000000,27.0139],[1512086400000,27.1558],[1512172800000,27.0543],[1512259200000,27.0543],[1512345600000,27.0543],[1512432000000,27.2153],[1512518400000,27.1644],[1512604800000,27.1092],[1512691200000,27.1194],[1512777600000,27.1093],[1512864000000,27.1093],[1512950400000,27.1093],[1513036800000,27.1357],[1513123200000,27.1771],[1513209600000,27.2675],[1513296000000,27.41],[1513382400000,27.6351],[1513468800000,27.6351],[1513555200000,27.6351],[1513641600000,27.8736],[1513728000000,27.8843],[1513814400000,27.8609],[1513900800000,27.8559],[1513987200000,27.9509],[1514073600000,27.9509],[1514160000000,27.9509],[1514246400000,27.9509],[1514332800000,27.9446],[1514419200000,27.9485],[1514505600000,28.0672],[1514592000000,28.0672]], 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: [[1484438400000, 27.245807],[1484438400000, 27.245807],[1487116800000, 27.054944],[1489536000000, 26.994831],[1492214400000, 26.845271],[1494806400000, 26.430243],[1497484800000, 26.111024],[1500076800000, 25.963677],[1502755200000, 25.651557],[1505433600000, 26.061504],[1508025600000, 26.664612],[1510704000000, 26.709562],[1513296000000, 27.533023]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });