$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1483228800000,36.4381],[1483315200000,36.4381],[1483401600000,36.4381],[1483488000000,36.4381],[1483574400000,35.7697],[1483660800000,35.7697],[1483747200000,36.4693],[1483833600000,36.4693],[1483920000000,36.4693],[1484006400000,36.4693],[1484092800000,36.5931],[1484179200000,36.4176],[1484265600000,36.8644],[1484352000000,null],[1484438400000,37.388],[1484524800000,37.388],[1484611200000,37.4587],[1484697600000,37.4861],[1484784000000,37.2713],[1484870400000,37.1402],[1484956800000,37.1217],[1485043200000,37.1217],[1485129600000,37.1217],[1485216000000,37.1189],[1485302400000,37.017],[1485388800000,37.0078],[1485475200000,36.9733],[1485561600000,36.8588],[1485648000000,36.8588],[1485734400000,36.8588],[1485820800000,36.7298],[1485907200000,36.7964],[1485993600000,36.7988],[1486080000000,36.8325],[1486166400000,36.8],[1486252800000,36.8],[1486339200000,36.8],[1486425600000,37.0825],[1486512000000,36.6623],[1486598400000,36.4961],[1486684800000,36.6972],[1486771200000,36.8385],[1486857600000,36.8385],[1486944000000,36.8385],[1487030400000,36.7922],[1487116800000,36.8739],[1487203200000,36.439],[1487289600000,36.5541],[1487376000000,36.6172],[1487462400000,36.6172],[1487548800000,36.6172],[1487635200000,36.616],[1487721600000,36.5032],[1487808000000,36.3853],[1487894400000,36.3594],[1487980800000,36.5527],[1488067200000,36.5527],[1488153600000,36.5527],[1488240000000,36.5965],[1488326400000,36.7768],[1488412800000,36.652],[1488499200000,36.4907],[1488585600000,36.5146],[1488672000000,36.5146],[1488758400000,36.5146],[1488844800000,36.4562],[1488931200000,36.345],[1489017600000,36.345],[1489104000000,36.2336],[1489190400000,36.1265],[1489276800000,36.1265],[1489363200000,36.1265],[1489449600000,36.3485],[1489536000000,36.2877],[1489622400000,36.2782],[1489708800000,36.5854],[1489795200000,36.511],[1489881600000,36.511],[1489968000000,36.511],[1490054400000,36.5054],[1490140800000,36.5558],[1490227200000,36.6582],[1490313600000,36.8589],[1490400000000,36.9738],[1490486400000,36.9738],[1490572800000,36.9738],[1490659200000,37.1217],[1490745600000,37.0439],[1490832000000,36.825],[1490918400000,36.6852],[1491004800000,36.6644],[1491091200000,36.6644],[1491177600000,36.6644],[1491264000000,36.6671],[1491350400000,36.7916],[1491436800000,36.8668],[1491523200000,36.7736],[1491609600000,36.563],[1491696000000,36.563],[1491782400000,36.563],[1491868800000,36.4274],[1491955200000,36.4309],[1492041600000,36.4426],[1492128000000,36.4976],[1492214400000,36.4267],[1492300800000,36.4267],[1492387200000,36.4267],[1492473600000,36.4267],[1492560000000,36.5354],[1492646400000,36.5603],[1492732800000,36.534],[1492819200000,36.4391],[1492905600000,36.4391],[1492992000000,36.4391],[1493078400000,36.4985],[1493164800000,36.4571],[1493251200000,36.385],[1493337600000,36.3513],[1493424000000,36.4157],[1493510400000,36.4157],[1493596800000,36.4157],[1493683200000,36.4157],[1493769600000,36.4157],[1493856000000,36.3177],[1493942400000,36.2569],[1494028800000,36.336],[1494115200000,36.336],[1494201600000,36.336],[1494288000000,36.336],[1494374400000,36.336],[1494460800000,36.1391],[1494547200000,36.0874],[1494633600000,36.151],[1494720000000,36.151],[1494806400000,36.151],[1494892800000,36.2762],[1494979200000,36.2999],[1495065600000,36.3861],[1495152000000,36.4445],[1495238400000,36.406],[1495324800000,36.406],[1495411200000,36.406],[1495497600000,36.4366],[1495584000000,36.3895],[1495670400000,36.2738],[1495756800000,36.3272],[1495843200000,36.4495],[1495929600000,36.4495],[1496016000000,36.4495],[1496102400000,36.5082],[1496188800000,36.3825],[1496275200000,36.4219],[1496361600000,36.3795],[1496448000000,36.3546],[1496534400000,36.3546],[1496620800000,36.3546],[1496707200000,36.3546],[1496793600000,36.4191],[1496880000000,36.3108],[1496966400000,36.2516],[1497052800000,36.1079],[1497139200000,36.1079],[1497225600000,36.1079],[1497312000000,36.0633],[1497398400000,35.9569],[1497484800000,35.9768],[1497571200000,35.947],[1497657600000,35.9332],[1497744000000,35.9332],[1497830400000,35.9332],[1497916800000,35.9766],[1498003200000,35.8871],[1498089600000,35.8794],[1498176000000,35.8893],[1498262400000,35.9107],[1498348800000,35.9107],[1498435200000,35.9107],[1498521600000,35.9127],[1498608000000,36.0771],[1498694400000,36.0771],[1498780800000,36.2939],[1498867200000,36.2086],[1498953600000,36.2086],[1499040000000,36.2086],[1499126400000,36.1005],[1499212800000,36.1323],[1499299200000,36.189],[1499385600000,36.1734],[1499472000000,36.1415],[1499558400000,36.1415],[1499644800000,36.1415],[1499731200000,36.0762],[1499817600000,36.0409],[1499904000000,36.0306],[1499990400000,36.0787],[1500076800000,36.1768],[1500163200000,36.1768],[1500249600000,36.1768],[1500336000000,36.1993],[1500422400000,36.2602],[1500508800000,36.25],[1500595200000,36.1684],[1500681600000,36.2931],[1500768000000,36.2931],[1500854400000,36.2931],[1500940800000,36.2383],[1501027200000,36.2495],[1501113600000,36.2918],[1501200000000,36.4171],[1501286400000,36.4254],[1501372800000,36.4254],[1501459200000,36.4254],[1501545600000,36.397],[1501632000000,36.5082],[1501718400000,36.592],[1501804800000,36.5615],[1501891200000,36.5398],[1501977600000,36.5398],[1502064000000,36.5398],[1502150400000,36.3426],[1502236800000,36.3059],[1502323200000,36.23],[1502409600000,36.1864],[1502496000000,36.2352],[1502582400000,36.2352],[1502668800000,36.2352],[1502755200000,36.1584],[1502841600000,36.026],[1502928000000,35.9247],[1503014400000,35.8507],[1503100800000,35.9168],[1503187200000,35.9168],[1503273600000,35.9168],[1503360000000,null],[1503446400000,35.8537],[1503532800000,36.0095],[1503619200000,36.0095],[1503705600000,36.0095],[1503792000000,36.0095],[1503878400000,36.0095],[1503964800000,36.1713],[1504051200000,36.2],[1504137600000,36.2779],[1504224000000,36.3156],[1504310400000,36.495],[1504396800000,36.495],[1504483200000,36.495],[1504569600000,36.7188],[1504656000000,36.8025],[1504742400000,36.918],[1504828800000,37.0362],[1504915200000,37.302],[1505001600000,37.302],[1505088000000,37.302],[1505174400000,37.0884],[1505260800000,37.0028],[1505347200000,37.1361],[1505433600000,37.1347],[1505520000000,37.3384],[1505606400000,37.3384],[1505692800000,37.3384],[1505779200000,37.2588],[1505865600000,37.1854],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,37.4406],[1506729600000,37.5633],[1506816000000,37.5633],[1506902400000,37.5633],[1506988800000,37.5641],[1507075200000,37.6301],[1507161600000,37.8303],[1507248000000,37.7582],[1507334400000,37.5928],[1507420800000,37.5928],[1507507200000,37.5928],[1507593600000,37.3281],[1507680000000,37.543],[1507766400000,37.5059],[1507852800000,37.6779],[1507939200000,37.6779],[1508025600000,37.6779],[1508112000000,37.6779],[1508198400000,37.6779],[1508284800000,37.3601],[1508371200000,37.2426],[1508457600000,37.4293],[1508544000000,37.4482],[1508630400000,37.4482],[1508716800000,37.4482],[1508803200000,null],[1508889600000,37.5654],[1508976000000,37.7218],[1509062400000,37.8532],[1509148800000,37.6793],[1509235200000,37.6793],[1509321600000,37.6793],[1509408000000,37.6557],[1509494400000,37.7327],[1509580800000,37.767],[1509667200000,37.8169],[1509753600000,37.838],[1509840000000,37.838],[1509926400000,37.838],[1510012800000,37.6209],[1510099200000,37.4586],[1510185600000,37.34],[1510272000000,37.2763],[1510358400000,37.2157],[1510444800000,37.2157],[1510531200000,37.2157],[1510617600000,37.1776],[1510704000000,37.2652],[1510790400000,37.4177],[1510876800000,37.312],[1510963200000,37.3886],[1511049600000,37.3886],[1511136000000,37.3886],[1511222400000,37.3574],[1511308800000,37.3173],[1511395200000,37.5956],[1511481600000,37.8974],[1511568000000,37.971],[1511654400000,37.971],[1511740800000,37.971],[1511827200000,38.1065],[1511913600000,38.0896],[1512000000000,38.2647],[1512086400000,38.4369],[1512172800000,38.3798],[1512259200000,38.3798],[1512345600000,38.3798],[1512432000000,38.5437],[1512518400000,38.47],[1512604800000,38.3309],[1512691200000,38.2965],[1512777600000,38.2368],[1512864000000,38.2368],[1512950400000,38.2368],[1513036800000,38.3175],[1513123200000,38.3489],[1513209600000,38.442],[1513296000000,38.778],[1513382400000,39.0776],[1513468800000,39.0776],[1513555200000,39.0776],[1513641600000,39.3865],[1513728000000,39.4266],[1513814400000,39.4277],[1513900800000,39.4418],[1513987200000,39.5708],[1514073600000,39.5708],[1514160000000,39.5708],[1514246400000,39.5708],[1514332800000,39.5618],[1514419200000,39.6288],[1514505600000,39.8751],[1514592000000,39.8751]], 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, 36.798825],[1484438400000, 36.798825],[1487116800000, 36.675382],[1489536000000, 36.562283],[1492214400000, 36.525231],[1494806400000, 36.337814],[1497484800000, 36.099785],[1500076800000, 36.213938],[1502755200000, 36.190310],[1505433600000, 37.045798],[1508025600000, 37.588820],[1510704000000, 37.601785],[1513296000000, 38.962204]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });