$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1451606400000,1.21991],[1451692800000,1.21991],[1451779200000,1.21991],[1451865600000,1.21991],[1451952000000,1.21991],[1452038400000,1.20652],[1452124800000,1.17934],[1452211200000,1.17934],[1452297600000,1.17934],[1452384000000,1.17934],[1452470400000,1.17934],[1452556800000,1.17077],[1452643200000,1.14448],[1452729600000,1.15731],[1452816000000,1.16363],[1452902400000,1.16846],[1452988800000,1.17791],[1453075200000,1.17791],[1453161600000,1.19145],[1453248000000,1.20705],[1453334400000,1.20124],[1453420800000,1.19438],[1453507200000,1.20667],[1453593600000,1.20667],[1453680000000,1.20667],[1453766400000,1.2084],[1453852800000,1.20768],[1453939200000,1.20462],[1454025600000,1.2181],[1454112000000,1.24032],[1454198400000,1.24032],[1454284800000,1.24032],[1454371200000,1.24045],[1454457600000,1.27016],[1454544000000,1.26805],[1454630400000,1.27875],[1454716800000,1.27787],[1454803200000,1.27787],[1454889600000,1.27787],[1454976000000,1.2777],[1455062400000,1.2848],[1455148800000,1.29193],[1455235200000,1.30917],[1455321600000,1.31454],[1455408000000,1.31454],[1455494400000,1.31454],[1455580800000,1.35043],[1455667200000,1.35903],[1455753600000,1.34172],[1455840000000,1.32478],[1455926400000,1.33898],[1456012800000,1.33898],[1456099200000,1.33898],[1456185600000,1.34274],[1456272000000,1.35482],[1456358400000,1.35586],[1456444800000,1.3588],[1456531200000,1.34963],[1456617600000,1.34963],[1456704000000,1.34963],[1456790400000,1.35115],[1456876800000,1.35204],[1456963200000,1.3405],[1457049600000,1.3126],[1457136000000,1.32837],[1457222400000,1.32837],[1457308800000,1.32837],[1457395200000,1.32837],[1457481600000,1.32837],[1457568000000,1.31291],[1457654400000,1.28081],[1457740800000,1.29687],[1457827200000,1.30716],[1457913600000,1.30716],[1458000000000,1.33587],[1458086400000,1.3541],[1458172800000,1.35204],[1458259200000,1.34507],[1458345600000,1.32683],[1458432000000,1.32683],[1458518400000,1.32683],[1458604800000,1.34742],[1458691200000,1.3262],[1458777600000,1.32518],[1458864000000,1.34043],[1458950400000,1.3325],[1459036800000,1.3325],[1459123200000,1.3325],[1459209600000,1.34163],[1459296000000,1.34894],[1459382400000,1.33485],[1459468800000,1.33533],[1459555200000,1.33114],[1459641600000,1.33114],[1459728000000,1.33114],[1459814400000,1.32572],[1459900800000,1.32962],[1459987200000,1.32209],[1460073600000,1.31333],[1460160000000,1.30381],[1460246400000,null],[1460332800000,null],[1460419200000,1.29919],[1460505600000,1.29668],[1460592000000,1.29215],[1460678400000,1.30106],[1460764800000,1.28999],[1460851200000,1.28999],[1460937600000,1.28999],[1461024000000,1.29001],[1461110400000,1.28693],[1461196800000,1.28717],[1461283200000,1.28412],[1461369600000,1.28208],[1461456000000,1.28208],[1461542400000,1.28208],[1461628800000,1.28116],[1461715200000,1.27882],[1461801600000,1.27339],[1461888000000,1.27348],[1461974400000,1.27344],[1462060800000,1.27344],[1462147200000,1.27344],[1462233600000,1.27344],[1462320000000,1.27344],[1462406400000,1.27269],[1462492800000,1.26801],[1462579200000,1.26963],[1462665600000,1.26963],[1462752000000,1.26963],[1462838400000,1.26963],[1462924800000,1.27336],[1463011200000,1.27947],[1463097600000,1.27773],[1463184000000,1.28481],[1463270400000,1.28481],[1463356800000,1.28481],[1463443200000,1.28246],[1463529600000,1.27681],[1463616000000,1.27515],[1463702400000,1.27405],[1463788800000,1.26936],[1463875200000,null],[1463961600000,1.26936],[1464048000000,1.26208],[1464134400000,1.25956],[1464220800000,1.25568],[1464307200000,1.25135],[1464393600000,1.25341],[1464480000000,1.25341],[1464566400000,1.25341],[1464652800000,1.25775],[1464739200000,1.25653],[1464825600000,1.25968],[1464912000000,1.25859],[1464998400000,1.25857],[1465084800000,1.25857],[1465171200000,1.25857],[1465257600000,1.26067],[1465344000000,1.26211],[1465430400000,1.26236],[1465516800000,1.26535],[1465603200000,1.26647],[1465689600000,1.26647],[1465776000000,1.26647],[1465862400000,1.26242],[1465948800000,1.25771],[1466035200000,null],[1466121600000,1.25623],[1466208000000,1.25771],[1466294400000,1.25771],[1466380800000,1.25771],[1466467200000,1.25771],[1466553600000,1.26015],[1466640000000,1.26085],[1466726400000,1.25923],[1466812800000,1.25808],[1466899200000,1.25808],[1466985600000,1.25808],[1467072000000,1.25808],[1467158400000,1.25808],[1467244800000,1.25086],[1467331200000,1.25035],[1467417600000,1.25],[1467504000000,1.25],[1467590400000,1.25],[1467676800000,1.25065],[1467763200000,1.25243],[1467849600000,1.25209],[1467936000000,1.25127],[1468022400000,1.25191],[1468108800000,1.25191],[1468195200000,1.25191],[1468281600000,1.25502],[1468368000000,1.25285],[1468454400000,1.25359],[1468540800000,1.25241],[1468627200000,1.25305],[1468713600000,1.25305],[1468800000000,1.25305],[1468886400000,1.2567],[1468972800000,1.25405],[1469059200000,1.25361],[1469145600000,1.25332],[1469232000000,1.25158],[1469318400000,1.25158],[1469404800000,1.25158],[1469491200000,1.25204],[1469577600000,1.25116],[1469664000000,1.25357],[1469750400000,null],[1469836800000,1.25393],[1469923200000,1.25393],[1470009600000,1.25393],[1470096000000,1.25298],[1470182400000,1.25429],[1470268800000,1.2538],[1470355200000,1.25522],[1470441600000,1.2541],[1470528000000,1.2541],[1470614400000,1.2541],[1470700800000,1.25642],[1470787200000,1.25425],[1470873600000,1.25611],[1470960000000,1.25682],[1471046400000,1.26711],[1471132800000,1.26711],[1471219200000,1.26711],[1471305600000,1.27046],[1471392000000,1.26815],[1471478400000,1.26993],[1471564800000,1.27366],[1471651200000,1.27789],[1471737600000,1.27789],[1471824000000,1.27789],[1471910400000,1.27925],[1471996800000,1.28013],[1472083200000,1.28013],[1472169600000,1.28115],[1472256000000,1.28687],[1472342400000,1.28687],[1472428800000,1.28687],[1472515200000,1.28921],[1472601600000,1.29749],[1472688000000,1.31852],[1472774400000,1.34524],[1472860800000,1.34773],[1472947200000,1.34773],[1473033600000,1.34773],[1473120000000,1.35387],[1473206400000,1.35762],[1473292800000,1.35091],[1473379200000,1.34625],[1473465600000,1.34828],[1473552000000,1.34828],[1473638400000,1.34828],[1473724800000,1.34608],[1473811200000,1.33534],[1473897600000,1.33104],[1473984000000,1.3248],[1474070400000,1.30962],[1474156800000,1.30962],[1474243200000,1.30962],[1474329600000,1.30286],[1474416000000,1.30414],[1474502400000,1.3116],[1474588800000,1.30891],[1474675200000,1.31201],[1474761600000,1.31201],[1474848000000,1.31201],[1474934400000,1.30857],[1475020800000,1.30564],[1475107200000,1.31011],[1475193600000,1.31156],[1475280000000,1.31207],[1475366400000,1.31207],[1475452800000,1.31207],[1475539200000,1.31122],[1475625600000,1.3086],[1475712000000,1.30912],[1475798400000,1.30864],[1475884800000,1.30609],[1475971200000,1.30609],[1476057600000,1.30609],[1476144000000,1.30444],[1476230400000,1.30556],[1476316800000,1.30172],[1476403200000,1.30028],[1476489600000,1.30028],[1476576000000,1.30028],[1476662400000,1.30028],[1476748800000,1.29819],[1476835200000,1.28889],[1476921600000,1.28502],[1477008000000,1.28418],[1477094400000,1.2831],[1477180800000,1.2831],[1477267200000,1.2831],[1477353600000,1.28129],[1477440000000,1.27886],[1477526400000,1.27717],[1477612800000,1.27451],[1477699200000,1.27198],[1477785600000,1.27198],[1477872000000,1.27198],[1477958400000,1.27147],[1478044800000,null],[1478131200000,1.27553],[1478217600000,1.28147],[1478304000000,1.28371],[1478390400000,1.28371],[1478476800000,1.28371],[1478563200000,1.28677],[1478649600000,1.28866],[1478736000000,1.29052],[1478822400000,1.29007],[1478908800000,1.28907],[1478995200000,1.28907],[1479081600000,1.28907],[1479168000000,1.28908],[1479254400000,1.29677],[1479340800000,1.30744],[1479427200000,1.29116],[1479513600000,1.28157],[1479600000000,1.28157],[1479686400000,1.28157],[1479772800000,1.27626],[1479859200000,1.27082],[1479945600000,1.26554],[1480032000000,1.26364],[1480118400000,1.26868],[1480204800000,1.26868],[1480291200000,1.26868],[1480377600000,1.26559],[1480464000000,1.26226],[1480550400000,1.26101],[1480636800000,1.26502],[1480723200000,1.27866],[1480809600000,1.27866],[1480896000000,1.27866],[1480982400000,1.29174],[1481068800000,1.29132],[1481155200000,1.28995],[1481241600000,1.28018],[1481328000000,1.28639],[1481414400000,1.28639],[1481500800000,1.28639],[1481587200000,1.30104],[1481673600000,1.29733],[1481760000000,1.30889],[1481846400000,1.3086],[1481932800000,1.30824],[1482019200000,1.30824],[1482105600000,1.30824],[1482192000000,1.30967],[1482278400000,1.31075],[1482364800000,1.30622],[1482451200000,1.29896],[1482537600000,1.30002],[1482624000000,1.30002],[1482710400000,1.30002],[1482796800000,1.30491],[1482883200000,1.30491],[1482969600000,1.34179],[1483056000000,1.36081]], 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, 1.196672],[1452816000000, 1.196672],[1455494400000, 1.313537],[1458000000000, 1.330089],[1460678400000, 1.298468],[1463270400000, 1.269727],[1465948800000, 1.259624],[1468540800000, 1.252420],[1471219200000, 1.269074],[1473897600000, 1.327533],[1476489600000, 1.294782],[1479168000000, 1.280763],[1481760000000, 1.300446]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });