$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1451606400000,0.08374],[1451692800000,0.08374],[1451779200000,0.08374],[1451865600000,0.08374],[1451952000000,0.08374],[1452038400000,0.081085],[1452124800000,0.080196],[1452211200000,0.080196],[1452297600000,0.080196],[1452384000000,0.080196],[1452470400000,0.080196],[1452556800000,0.080649],[1452643200000,0.079345],[1452729600000,0.081068],[1452816000000,0.08257],[1452902400000,0.083977],[1452988800000,0.084656],[1453075200000,0.084656],[1453161600000,0.085076],[1453248000000,0.085837],[1453334400000,0.085455],[1453420800000,0.084955],[1453507200000,0.085828],[1453593600000,0.085828],[1453680000000,0.085828],[1453766400000,0.085876],[1453852800000,0.086109],[1453939200000,0.08628],[1454025600000,0.08751],[1454112000000,0.089434],[1454198400000,0.089434],[1454284800000,0.089434],[1454371200000,0.088816],[1454457600000,0.090648],[1454544000000,0.090472],[1454630400000,0.09345],[1454716800000,0.093653],[1454803200000,0.093653],[1454889600000,0.093653],[1454976000000,0.09246],[1455062400000,0.093568],[1455148800000,0.09371],[1455235200000,0.094869],[1455321600000,0.095061],[1455408000000,0.095061],[1455494400000,0.095061],[1455580800000,0.096956],[1455667200000,0.097089],[1455753600000,0.096014],[1455840000000,0.094771],[1455926400000,0.096403],[1456012800000,0.096403],[1456099200000,0.096403],[1456185600000,0.096759],[1456272000000,0.097398],[1456358400000,0.096245],[1456444800000,0.096658],[1456531200000,0.095891],[1456617600000,0.095891],[1456704000000,0.095891],[1456790400000,0.094779],[1456876800000,0.094945],[1456963200000,0.093902],[1457049600000,0.092495],[1457136000000,0.093975],[1457222400000,0.093975],[1457308800000,0.093975],[1457395200000,0.093975],[1457481600000,0.093975],[1457568000000,0.092792],[1457654400000,0.089372],[1457740800000,0.092375],[1457827200000,0.093],[1457913600000,0.093],[1458000000000,0.095078],[1458086400000,0.096181],[1458172800000,0.09537],[1458259200000,0.097405],[1458345600000,0.095383],[1458432000000,0.095383],[1458518400000,0.095383],[1458604800000,0.096562],[1458691200000,0.093622],[1458777600000,0.092614],[1458864000000,0.093183],[1458950400000,0.092537],[1459036800000,0.092537],[1459123200000,0.092537],[1459209600000,0.093282],[1459296000000,0.094201],[1459382400000,0.094465],[1459468800000,0.095026],[1459555200000,0.095267],[1459641600000,0.095267],[1459728000000,0.095267],[1459814400000,0.094726],[1459900800000,0.094818],[1459987200000,0.094214],[1460073600000,0.093892],[1460160000000,0.093144],[1460246400000,null],[1460332800000,null],[1460419200000,0.093328],[1460505600000,0.09352],[1460592000000,0.092657],[1460678400000,0.092719],[1460764800000,0.092568],[1460851200000,0.092568],[1460937600000,0.092568],[1461024000000,0.092847],[1461110400000,0.092946],[1461196800000,0.093563],[1461283200000,0.092732],[1461369600000,0.092049],[1461456000000,0.092049],[1461542400000,0.092049],[1461628800000,0.091686],[1461715200000,0.091474],[1461801600000,0.091313],[1461888000000,0.092072],[1461974400000,0.092037],[1462060800000,0.092037],[1462147200000,0.092037],[1462233600000,0.092037],[1462320000000,0.092037],[1462406400000,0.092735],[1462492800000,0.091862],[1462579200000,0.091665],[1462665600000,0.091665],[1462752000000,0.091665],[1462838400000,0.091665],[1462924800000,0.091131],[1463011200000,0.09164],[1463097600000,0.091546],[1463184000000,0.091643],[1463270400000,0.091643],[1463356800000,0.091643],[1463443200000,0.091147],[1463529600000,0.090736],[1463616000000,0.090136],[1463702400000,0.089328],[1463788800000,0.089253],[1463875200000,null],[1463961600000,0.089253],[1464048000000,0.08887],[1464134400000,0.088827],[1464220800000,0.089059],[1464307200000,0.089162],[1464393600000,0.089341],[1464480000000,0.089341],[1464566400000,0.089341],[1464652800000,0.089329],[1464739200000,0.089278],[1464825600000,0.089281],[1464912000000,0.089538],[1464998400000,0.089257],[1465084800000,0.089257],[1465171200000,0.089257],[1465257600000,0.091046],[1465344000000,0.091235],[1465430400000,0.091526],[1465516800000,0.091061],[1465603200000,0.09081],[1465689600000,0.09081],[1465776000000,0.09081],[1465862400000,0.090068],[1465948800000,0.089078],[1466035200000,null],[1466121600000,0.088302],[1466208000000,0.089201],[1466294400000,0.089201],[1466380800000,0.089201],[1466467200000,0.089201],[1466553600000,0.08967],[1466640000000,0.089347],[1466726400000,0.090172],[1466812800000,0.086584],[1466899200000,0.086584],[1466985600000,0.086584],[1467072000000,0.086584],[1467158400000,0.086584],[1467244800000,0.086965],[1467331200000,0.086938],[1467417600000,0.08732],[1467504000000,0.08732],[1467590400000,0.08732],[1467676800000,0.087211],[1467763200000,0.087545],[1467849600000,0.086853],[1467936000000,0.087141],[1468022400000,0.087539],[1468108800000,0.087539],[1468195200000,0.087539],[1468281600000,0.087709],[1468368000000,0.08777],[1468454400000,0.087693],[1468540800000,0.088213],[1468627200000,0.08765],[1468713600000,0.08765],[1468800000000,0.08765],[1468886400000,0.087216],[1468972800000,0.087003],[1469059200000,0.086732],[1469145600000,0.086885],[1469232000000,0.087217],[1469318400000,0.087217],[1469404800000,0.087217],[1469491200000,0.087071],[1469577600000,0.087037],[1469664000000,0.086984],[1469750400000,null],[1469836800000,0.088304],[1469923200000,0.088304],[1470009600000,0.088304],[1470096000000,0.088963],[1470182400000,0.089311],[1470268800000,0.08937],[1470355200000,0.088783],[1470441600000,0.08909],[1470528000000,0.08909],[1470614400000,0.08909],[1470700800000,0.088475],[1470787200000,0.088583],[1470873600000,0.089414],[1470960000000,0.08933],[1471046400000,0.090137],[1471132800000,0.090137],[1471219200000,0.090137],[1471305600000,0.090726],[1471392000000,0.091331],[1471478400000,0.091073],[1471564800000,0.091798],[1471651200000,0.092214],[1471737600000,0.092214],[1471824000000,0.092214],[1471910400000,0.092195],[1471996800000,0.092415],[1472083200000,0.092415],[1472169600000,0.092307],[1472256000000,0.09311],[1472342400000,0.09311],[1472428800000,0.09311],[1472515200000,0.09221],[1472601600000,0.092722],[1472688000000,0.093554],[1472774400000,0.095682],[1472860800000,0.096122],[1472947200000,0.096122],[1473033600000,0.096122],[1473120000000,0.096608],[1473206400000,0.096708],[1473292800000,0.097295],[1473379200000,0.097676],[1473465600000,0.097396],[1473552000000,0.097396],[1473638400000,0.097396],[1473724800000,0.096444],[1473811200000,0.095937],[1473897600000,0.095296],[1473984000000,0.095062],[1474070400000,0.094056],[1474156800000,0.094056],[1474243200000,0.094056],[1474329600000,0.093478],[1474416000000,0.093365],[1474502400000,0.093864],[1474588800000,0.095088],[1474675200000,0.095401],[1474761600000,0.095401],[1474848000000,0.095401],[1474934400000,0.095166],[1475020800000,0.094418],[1475107200000,0.094395],[1475193600000,0.094203],[1475280000000,0.093444],[1475366400000,0.093444],[1475452800000,0.093444],[1475539200000,0.094504],[1475625600000,0.093902],[1475712000000,0.094931],[1475798400000,0.094918],[1475884800000,0.094737],[1475971200000,0.094737],[1476057600000,0.094737],[1476144000000,0.094611],[1476230400000,0.094081],[1476316800000,0.092925],[1476403200000,0.092887],[1476489600000,0.092887],[1476576000000,0.092887],[1476662400000,0.092887],[1476748800000,0.092353],[1476835200000,0.091915],[1476921600000,0.091861],[1477008000000,0.091769],[1477094400000,0.090615],[1477180800000,0.090615],[1477267200000,0.090615],[1477353600000,0.09051],[1477440000000,0.090301],[1477526400000,0.090419],[1477612800000,0.090223],[1477699200000,0.089985],[1477785600000,0.089985],[1477872000000,0.089985],[1477958400000,0.09055],[1478044800000,null],[1478131200000,0.092051],[1478217600000,0.091978],[1478304000000,0.092678],[1478390400000,0.092678],[1478476800000,0.092678],[1478563200000,0.092424],[1478649600000,0.092341],[1478736000000,0.09239],[1478822400000,0.090691],[1478908800000,0.090371],[1478995200000,0.090371],[1479081600000,0.090371],[1479168000000,0.089485],[1479254400000,0.090337],[1479340800000,0.090779],[1479427200000,0.090256],[1479513600000,0.088934],[1479600000000,0.088934],[1479686400000,0.088934],[1479772800000,0.088671],[1479859200000,0.088193],[1479945600000,0.087498],[1480032000000,0.086936],[1480118400000,0.088085],[1480204800000,0.088085],[1480291200000,0.088085],[1480377600000,0.087456],[1480464000000,0.08692],[1480550400000,0.087257],[1480636800000,0.086781],[1480723200000,0.087795],[1480809600000,0.087795],[1480896000000,0.087795],[1480982400000,0.089058],[1481068800000,0.089358],[1481155200000,0.089206],[1481241600000,0.088251],[1481328000000,0.086901],[1481414400000,0.086901],[1481500800000,0.086901],[1481587200000,0.088309],[1481673600000,0.088134],[1481760000000,0.088925],[1481846400000,0.087494],[1481932800000,0.087975],[1482019200000,0.087975],[1482105600000,0.087975],[1482192000000,0.088232],[1482278400000,0.088218],[1482364800000,0.088765],[1482451200000,0.088496],[1482537600000,0.088602],[1482624000000,0.088602],[1482710400000,0.088602],[1482796800000,0.088935],[1482883200000,0.088935],[1482969600000,0.090514],[1483056000000,0.091659]], 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.083908],[1452816000000, 0.083908],[1455494400000, 0.094563],[1458000000000, 0.093944],[1460678400000, 0.093156],[1463270400000, 0.090726],[1465948800000, 0.089189],[1468540800000, 0.087393],[1471219200000, 0.090754],[1473897600000, 0.095439],[1476489600000, 0.092488],[1479168000000, 0.089971],[1481760000000, 0.088452]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });