$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1451606400000,0.32931],[1451692800000,0.32931],[1451779200000,0.32931],[1451865600000,0.32931],[1451952000000,0.32931],[1452038400000,0.32612],[1452124800000,0.32226],[1452211200000,0.32226],[1452297600000,0.32226],[1452384000000,0.32226],[1452470400000,0.32226],[1452556800000,0.30947],[1452643200000,0.30373],[1452729600000,0.30934],[1452816000000,0.31299],[1452902400000,0.31591],[1452988800000,0.31846],[1453075200000,0.31846],[1453161600000,0.31318],[1453248000000,0.31654],[1453334400000,0.31035],[1453420800000,0.3086],[1453507200000,0.3077],[1453593600000,0.3077],[1453680000000,0.3077],[1453766400000,0.31916],[1453852800000,0.30363],[1453939200000,0.31483],[1454025600000,0.3251],[1454112000000,0.33995],[1454198400000,0.33995],[1454284800000,0.33995],[1454371200000,0.33342],[1454457600000,0.33201],[1454544000000,0.32423],[1454630400000,0.33864],[1454716800000,0.33505],[1454803200000,0.33505],[1454889600000,0.33505],[1454976000000,0.33668],[1455062400000,0.32975],[1455148800000,0.32808],[1455235200000,0.3297],[1455321600000,0.32892],[1455408000000,0.32892],[1455494400000,0.32892],[1455580800000,0.3448],[1455667200000,0.35438],[1455753600000,0.34327],[1455840000000,0.35069],[1455926400000,0.35167],[1456012800000,0.35167],[1456099200000,0.35167],[1456185600000,0.35023],[1456272000000,0.35308],[1456358400000,0.3563],[1456444800000,0.35669],[1456531200000,0.36029],[1456617600000,0.36029],[1456704000000,0.36029],[1456790400000,0.35698],[1456876800000,0.36575],[1456963200000,0.36415],[1457049600000,0.35508],[1457136000000,0.36205],[1457222400000,0.36205],[1457308800000,0.36205],[1457395200000,0.36205],[1457481600000,0.36205],[1457568000000,0.36175],[1457654400000,0.35896],[1457740800000,0.36761],[1457827200000,0.37009],[1457913600000,0.37009],[1458000000000,0.37799],[1458086400000,0.38113],[1458172800000,0.37796],[1458259200000,0.38944],[1458345600000,0.38365],[1458432000000,0.38365],[1458518400000,0.38365],[1458604800000,0.38659],[1458691200000,0.38513],[1458777600000,0.38461],[1458864000000,0.38084],[1458950400000,0.38095],[1459036800000,0.38095],[1459123200000,0.38095],[1459209600000,0.38772],[1459296000000,0.38454],[1459382400000,0.3878],[1459468800000,0.38638],[1459555200000,0.38886],[1459641600000,0.38886],[1459728000000,0.38886],[1459814400000,0.37852],[1459900800000,0.37853],[1459987200000,0.37883],[1460073600000,0.38057],[1460160000000,0.37989],[1460246400000,null],[1460332800000,null],[1460419200000,0.38094],[1460505600000,0.38515],[1460592000000,0.38749],[1460678400000,0.38571],[1460764800000,0.38572],[1460851200000,0.38572],[1460937600000,0.38572],[1461024000000,0.37328],[1461110400000,0.38758],[1461196800000,0.38481],[1461283200000,0.39021],[1461369600000,0.38272],[1461456000000,0.38272],[1461542400000,0.38272],[1461628800000,0.3803],[1461715200000,0.38073],[1461801600000,0.38696],[1461888000000,0.38681],[1461974400000,0.39172],[1462060800000,0.39172],[1462147200000,0.39172],[1462233600000,0.39172],[1462320000000,0.39172],[1462406400000,0.38076],[1462492800000,0.38128],[1462579200000,0.38014],[1462665600000,0.38014],[1462752000000,0.38014],[1462838400000,0.38014],[1462924800000,0.37987],[1463011200000,0.38232],[1463097600000,0.38967],[1463184000000,0.39199],[1463270400000,0.39199],[1463356800000,0.39199],[1463443200000,0.39135],[1463529600000,0.39175],[1463616000000,0.38819],[1463702400000,0.3815],[1463788800000,0.37967],[1463875200000,null],[1463961600000,0.37967],[1464048000000,0.37471],[1464134400000,0.37485],[1464220800000,0.3811],[1464307200000,0.38493],[1464393600000,0.38061],[1464480000000,0.38061],[1464566400000,0.38061],[1464652800000,0.38083],[1464739200000,0.38096],[1464825600000,0.37675],[1464912000000,0.3753],[1464998400000,0.37399],[1465084800000,0.37399],[1465171200000,0.37399],[1465257600000,0.37978],[1465344000000,0.3828],[1465430400000,0.38566],[1465516800000,0.39225],[1465603200000,0.38659],[1465689600000,0.38659],[1465776000000,0.38659],[1465862400000,0.38587],[1465948800000,0.37732],[1466035200000,null],[1466121600000,0.37813],[1466208000000,0.38064],[1466294400000,0.38064],[1466380800000,0.38064],[1466467200000,0.38064],[1466553600000,0.38789],[1466640000000,0.39077],[1466726400000,0.38685],[1466812800000,0.37958],[1466899200000,0.37958],[1466985600000,0.37958],[1467072000000,0.37958],[1467158400000,0.37958],[1467244800000,0.38679],[1467331200000,0.38688],[1467417600000,0.38773],[1467504000000,0.38773],[1467590400000,0.38773],[1467676800000,0.38967],[1467763200000,0.3866],[1467849600000,0.38437],[1467936000000,0.38743],[1468022400000,0.38657],[1468108800000,0.38657],[1468195200000,0.38657],[1468281600000,0.38709],[1468368000000,0.38874],[1468454400000,0.38872],[1468540800000,0.39005],[1468627200000,0.39271],[1468713600000,0.39271],[1468800000000,0.39271],[1468886400000,0.39383],[1468972800000,0.39395],[1469059200000,0.39124],[1469145600000,0.38935],[1469232000000,0.38393],[1469318400000,0.38393],[1469404800000,0.38393],[1469491200000,0.38183],[1469577600000,0.37701],[1469664000000,0.37629],[1469750400000,null],[1469836800000,0.36996],[1469923200000,0.36996],[1470009600000,0.36996],[1470096000000,0.37576],[1470182400000,0.37115],[1470268800000,0.37182],[1470355200000,0.37366],[1470441600000,0.37835],[1470528000000,0.37835],[1470614400000,0.37835],[1470700800000,0.38137],[1470787200000,0.38309],[1470873600000,0.38289],[1470960000000,0.38261],[1471046400000,0.38927],[1471132800000,0.38927],[1471219200000,0.38927],[1471305600000,0.39116],[1471392000000,0.39185],[1471478400000,0.39205],[1471564800000,0.39609],[1471651200000,0.3951],[1471737600000,0.3951],[1471824000000,0.3951],[1471910400000,0.3939],[1471996800000,0.39071],[1472083200000,0.39071],[1472169600000,0.39],[1472256000000,0.393],[1472342400000,0.393],[1472428800000,0.393],[1472515200000,0.39165],[1472601600000,0.39521],[1472688000000,0.39969],[1472774400000,0.40787],[1472860800000,0.40434],[1472947200000,0.40434],[1473033600000,0.40434],[1473120000000,0.41361],[1473206400000,0.41413],[1473292800000,0.4151],[1473379200000,0.41639],[1473465600000,0.41574],[1473552000000,0.41574],[1473638400000,0.41574],[1473724800000,0.40936],[1473811200000,0.40774],[1473897600000,0.40524],[1473984000000,0.40184],[1474070400000,0.39851],[1474156800000,0.39851],[1474243200000,0.39851],[1474329600000,0.39692],[1474416000000,0.39853],[1474502400000,0.40307],[1474588800000,0.40635],[1474675200000,0.40697],[1474761600000,0.40697],[1474848000000,0.40697],[1474934400000,0.40376],[1475020800000,0.40554],[1475107200000,0.40495],[1475193600000,0.41027],[1475280000000,0.40913],[1475366400000,0.40913],[1475452800000,0.40913],[1475539200000,0.41441],[1475625600000,0.41428],[1475712000000,0.41465],[1475798400000,0.41495],[1475884800000,0.41476],[1475971200000,0.41476],[1476057600000,0.41476],[1476144000000,0.41397],[1476230400000,0.41566],[1476316800000,0.41233],[1476403200000,0.40714],[1476489600000,0.40714],[1476576000000,0.40714],[1476662400000,0.40714],[1476748800000,0.40828],[1476835200000,0.40806],[1476921600000,0.41054],[1477008000000,0.41179],[1477094400000,0.41093],[1477180800000,0.41093],[1477267200000,0.41093],[1477353600000,0.412],[1477440000000,0.41251],[1477526400000,0.41088],[1477612800000,0.40503],[1477699200000,0.40532],[1477785600000,0.40532],[1477872000000,0.40532],[1477958400000,0.40361],[1478044800000,null],[1478131200000,0.40303],[1478217600000,0.40304],[1478304000000,0.40275],[1478390400000,0.40275],[1478476800000,0.40275],[1478563200000,0.40012],[1478649600000,0.40108],[1478736000000,0.40008],[1478822400000,0.40337],[1478908800000,0.393],[1478995200000,0.393],[1479081600000,0.393],[1479168000000,0.391],[1479254400000,0.39679],[1479340800000,0.40817],[1479427200000,0.40134],[1479513600000,0.39776],[1479600000000,0.39776],[1479686400000,0.39776],[1479772800000,0.40063],[1479859200000,0.40326],[1479945600000,0.39975],[1480032000000,0.39593],[1480118400000,0.3981],[1480204800000,0.3981],[1480291200000,0.3981],[1480377600000,0.39528],[1480464000000,0.39417],[1480550400000,0.39177],[1480636800000,0.40261],[1480723200000,0.4037],[1480809600000,0.4037],[1480896000000,0.4037],[1480982400000,0.40873],[1481068800000,0.40858],[1481155200000,0.40713],[1481241600000,0.40657],[1481328000000,0.40882],[1481414400000,0.40882],[1481500800000,0.40882],[1481587200000,0.42499],[1481673600000,0.42753],[1481760000000,0.43263],[1481846400000,0.42667],[1481932800000,0.42642],[1482019200000,0.42642],[1482105600000,0.42642],[1482192000000,0.42717],[1482278400000,0.42835],[1482364800000,0.43249],[1482451200000,0.43188],[1482537600000,0.43164],[1482624000000,0.43164],[1482710400000,0.43164],[1482796800000,0.43287],[1482883200000,0.43287],[1482969600000,0.44329],[1483056000000,0.45113]], 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: [[1452816000000, 0.318926],[1452816000000, 0.318926],[1455494400000, 0.342403],[1458000000000, 0.374137],[1460678400000, 0.384154],[1463270400000, 0.384256],[1465948800000, 0.381701],[1468540800000, 0.386193],[1471219200000, 0.386542],[1473897600000, 0.406568],[1476489600000, 0.410591],[1479168000000, 0.399154],[1481760000000, 0.421940]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });