$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1483228800000,3.90925],[1483315200000,3.90925],[1483401600000,3.90925],[1483488000000,3.90925],[1483574400000,3.84886],[1483660800000,3.84886],[1483747200000,3.90598],[1483833600000,3.90598],[1483920000000,3.90598],[1484006400000,3.90598],[1484092800000,3.92592],[1484179200000,3.91028],[1484265600000,3.95295],[1484352000000,null],[1484438400000,4.00986],[1484524800000,4.00986],[1484611200000,4.01715],[1484697600000,4.03081],[1484784000000,4.01987],[1484870400000,3.99712],[1484956800000,3.98796],[1485043200000,3.98796],[1485129600000,3.98796],[1485216000000,3.98807],[1485302400000,3.97022],[1485388800000,3.95343],[1485475200000,3.95442],[1485561600000,3.94331],[1485648000000,3.94331],[1485734400000,3.94331],[1485820800000,3.94341],[1485907200000,3.93728],[1485993600000,3.92237],[1486080000000,3.92158],[1486166400000,3.94226],[1486252800000,3.94226],[1486339200000,3.94226],[1486425600000,3.97331],[1486512000000,3.92675],[1486598400000,3.91598],[1486684800000,3.93599],[1486771200000,3.95489],[1486857600000,3.95489],[1486944000000,3.95489],[1487030400000,3.95196],[1487116800000,3.96792],[1487203200000,3.92876],[1487289600000,3.93662],[1487376000000,3.93563],[1487462400000,3.93563],[1487548800000,3.93563],[1487635200000,3.92955],[1487721600000,3.92787],[1487808000000,3.92148],[1487894400000,3.91345],[1487980800000,3.9273],[1488067200000,3.9273],[1488153600000,3.9273],[1488240000000,3.93668],[1488326400000,3.95512],[1488412800000,3.9504],[1488499200000,3.93428],[1488585600000,3.93175],[1488672000000,3.93175],[1488758400000,3.93175],[1488844800000,3.918],[1488931200000,3.90708],[1489017600000,3.90708],[1489104000000,3.89391],[1489190400000,3.87734],[1489276800000,3.87734],[1489363200000,3.87734],[1489449600000,3.89024],[1489536000000,3.89084],[1489622400000,3.88801],[1489708800000,3.91029],[1489795200000,3.89696],[1489881600000,3.89696],[1489968000000,3.89696],[1490054400000,3.89264],[1490140800000,3.89751],[1490227200000,3.90853],[1490313600000,3.92961],[1490400000000,3.93894],[1490486400000,3.93894],[1490572800000,3.93894],[1490659200000,3.94786],[1490745600000,3.93895],[1490832000000,3.92405],[1490918400000,3.91551],[1491004800000,3.92289],[1491091200000,3.92289],[1491177600000,3.92289],[1491264000000,3.92397],[1491350400000,3.93676],[1491436800000,3.93795],[1491523200000,3.92857],[1491609600000,3.91082],[1491696000000,3.91082],[1491782400000,3.91082],[1491868800000,3.90156],[1491955200000,3.89735],[1492041600000,3.89953],[1492128000000,3.89974],[1492214400000,3.89217],[1492300800000,3.89217],[1492387200000,3.89217],[1492473600000,3.89217],[1492560000000,3.90019],[1492646400000,3.8901],[1492732800000,3.88699],[1492819200000,3.88221],[1492905600000,3.88221],[1492992000000,3.88221],[1493078400000,3.87405],[1493164800000,3.86854],[1493251200000,3.85863],[1493337600000,3.85085],[1493424000000,3.85196],[1493510400000,3.85196],[1493596800000,3.85196],[1493683200000,3.85196],[1493769600000,3.85196],[1493856000000,3.84776],[1493942400000,3.84088],[1494028800000,3.84071],[1494115200000,3.84071],[1494201600000,3.84071],[1494288000000,3.84071],[1494374400000,3.84071],[1494460800000,3.83264],[1494547200000,3.8291],[1494633600000,3.83672],[1494720000000,3.83672],[1494806400000,3.83672],[1494892800000,3.84046],[1494979200000,3.83707],[1495065600000,3.83638],[1495152000000,3.82973],[1495238400000,3.82765],[1495324800000,3.82765],[1495411200000,3.82765],[1495497600000,3.82357],[1495584000000,3.8175],[1495670400000,3.81225],[1495756800000,3.82594],[1495843200000,3.84156],[1495929600000,3.84156],[1496016000000,3.84156],[1496102400000,3.84841],[1496188800000,3.84401],[1496275200000,3.86177],[1496361600000,3.85833],[1496448000000,3.85315],[1496534400000,3.85315],[1496620800000,3.85315],[1496707200000,3.85315],[1496793600000,3.86299],[1496880000000,3.85488],[1496966400000,3.84674],[1497052800000,3.84364],[1497139200000,3.84364],[1497225600000,3.84364],[1497312000000,3.83487],[1497398400000,3.82436],[1497484800000,3.82741],[1497571200000,3.82175],[1497657600000,3.81903],[1497744000000,3.81903],[1497830400000,3.81903],[1497916800000,3.81747],[1498003200000,3.81367],[1498089600000,3.81234],[1498176000000,3.80856],[1498262400000,3.80623],[1498348800000,3.80623],[1498435200000,3.80623],[1498521600000,3.80543],[1498608000000,3.8272],[1498694400000,3.8272],[1498780800000,3.84782],[1498867200000,3.83768],[1498953600000,3.83768],[1499040000000,3.83768],[1499126400000,3.8255],[1499212800000,3.82511],[1499299200000,3.83994],[1499385600000,3.83116],[1499472000000,3.82748],[1499558400000,3.82748],[1499644800000,3.82748],[1499731200000,3.82156],[1499817600000,3.81828],[1499904000000,3.81712],[1499990400000,3.82842],[1500076800000,3.83616],[1500163200000,3.83616],[1500249600000,3.83616],[1500336000000,3.83561],[1500422400000,3.84127],[1500508800000,3.84154],[1500595200000,3.82956],[1500681600000,3.82508],[1500768000000,3.82508],[1500854400000,3.82508],[1500940800000,3.82567],[1501027200000,3.828],[1501113600000,3.83241],[1501200000000,3.84311],[1501286400000,3.84341],[1501372800000,3.84341],[1501459200000,3.84341],[1501545600000,3.84302],[1501632000000,3.84805],[1501718400000,3.85149],[1501804800000,3.85075],[1501891200000,3.84547],[1501977600000,3.84547],[1502064000000,3.84547],[1502150400000,3.83679],[1502236800000,3.84023],[1502323200000,3.85329],[1502409600000,3.86103],[1502496000000,3.85531],[1502582400000,3.85531],[1502668800000,3.85531],[1502755200000,3.84136],[1502841600000,3.83022],[1502928000000,3.81994],[1503014400000,3.81959],[1503100800000,3.82037],[1503187200000,3.82037],[1503273600000,3.82037],[1503360000000,null],[1503446400000,3.81987],[1503532800000,3.83554],[1503619200000,3.83554],[1503705600000,3.83554],[1503792000000,3.83554],[1503878400000,3.83554],[1503964800000,3.85261],[1504051200000,3.85705],[1504137600000,3.87996],[1504224000000,3.89233],[1504310400000,3.92557],[1504396800000,3.92557],[1504483200000,3.92557],[1504569600000,3.96786],[1504656000000,3.96322],[1504742400000,3.98194],[1504828800000,4.00633],[1504915200000,4.03511],[1505001600000,4.03511],[1505088000000,4.03511],[1505174400000,3.98354],[1505260800000,3.97934],[1505347200000,3.99249],[1505433600000,3.99055],[1505520000000,4.00672],[1505606400000,4.00672],[1505692800000,4.00672],[1505779200000,3.98378],[1505865600000,3.96775],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,3.98242],[1506729600000,3.99554],[1506816000000,3.99554],[1506902400000,3.99554],[1506988800000,4.00614],[1507075200000,4.02001],[1507161600000,4.04277],[1507248000000,4.02881],[1507334400000,4.01901],[1507420800000,4.01901],[1507507200000,4.01901],[1507593600000,4.00931],[1507680000000,4.04125],[1507766400000,4.02479],[1507852800000,4.04272],[1507939200000,4.04272],[1508025600000,4.04272],[1508112000000,4.04272],[1508198400000,4.04272],[1508284800000,4.00058],[1508371200000,3.98722],[1508457600000,4.0046],[1508544000000,4.00983],[1508630400000,4.00983],[1508716800000,4.00983],[1508803200000,null],[1508889600000,4.02022],[1508976000000,4.02831],[1509062400000,4.04207],[1509148800000,4.03876],[1509235200000,4.03876],[1509321600000,4.03876],[1509408000000,4.03736],[1509494400000,4.05069],[1509580800000,4.06571],[1509667200000,4.07235],[1509753600000,4.07129],[1509840000000,4.07129],[1509926400000,4.07129],[1510012800000,4.04734],[1510099200000,4.02995],[1510185600000,4.01773],[1510272000000,4.00135],[1510358400000,3.99196],[1510444800000,3.99196],[1510531200000,3.99196],[1510617600000,3.98842],[1510704000000,3.9923],[1510790400000,3.99915],[1510876800000,3.99223],[1510963200000,3.9949],[1511049600000,3.9949],[1511136000000,3.9949],[1511222400000,3.99113],[1511308800000,3.99403],[1511395200000,4.02652],[1511481600000,4.08642],[1511568000000,4.07477],[1511654400000,4.07477],[1511740800000,4.07477],[1511827200000,4.06483],[1511913600000,4.07304],[1512000000000,4.09051],[1512086400000,4.10541],[1512172800000,4.0934],[1512259200000,4.0934],[1512345600000,4.0934],[1512432000000,4.11182],[1512518400000,4.10711],[1512604800000,4.09816],[1512691200000,4.09712],[1512777600000,4.09523],[1512864000000,4.09523],[1512950400000,4.09523],[1513036800000,4.10013],[1513123200000,4.10614],[1513209600000,4.11897],[1513296000000,4.14767],[1513382400000,4.18163],[1513468800000,4.18163],[1513555200000,4.18163],[1513641600000,4.21202],[1513728000000,4.22293],[1513814400000,4.23494],[1513900800000,4.23018],[1513987200000,4.25046],[1514073600000,4.25046],[1514160000000,4.25046],[1514246400000,4.25046],[1514332800000,4.2495],[1514419200000,4.26351],[1514505600000,4.29423],[1514592000000,4.29423]], 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, 3.947861],[1484438400000, 3.947861],[1487116800000, 3.936707],[1489536000000, 3.914029],[1492214400000, 3.895839],[1494806400000, 3.836869],[1497484800000, 3.832404],[1500076800000, 3.832053],[1502755200000, 3.841548],[1505433600000, 3.981332],[1508025600000, 4.023363],[1510704000000, 4.032748],[1513296000000, 4.174224]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });