$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1451606400000,0.199173],[1451692800000,0.199173],[1451779200000,0.199173],[1451865600000,0.199173],[1451952000000,0.199173],[1452038400000,0.199859],[1452124800000,0.198495],[1452211200000,0.198495],[1452297600000,0.198495],[1452384000000,0.198495],[1452470400000,0.198495],[1452556800000,0.19942],[1452643200000,0.197291],[1452729600000,0.200181],[1452816000000,0.203412],[1452902400000,0.206558],[1452988800000,0.208228],[1453075200000,0.208228],[1453161600000,0.210007],[1453248000000,0.210746],[1453334400000,0.211328],[1453420800000,0.209617],[1453507200000,0.209716],[1453593600000,0.209716],[1453680000000,0.209716],[1453766400000,0.209678],[1453852800000,0.21002],[1453939200000,0.210061],[1454025600000,0.211564],[1454112000000,0.21101],[1454198400000,0.21101],[1454284800000,0.21101],[1454371200000,0.209849],[1454457600000,0.214278],[1454544000000,0.215163],[1454630400000,0.220666],[1454716800000,0.222077],[1454803200000,0.222077],[1454889600000,0.222077],[1454976000000,0.222496],[1455062400000,0.225856],[1455148800000,0.225637],[1455235200000,0.232499],[1455321600000,0.232008],[1455408000000,0.232008],[1455494400000,0.232008],[1455580800000,0.234974],[1455667200000,0.237524],[1455753600000,0.234143],[1455840000000,0.23247],[1455926400000,0.237633],[1456012800000,0.237633],[1456099200000,0.237633],[1456185600000,0.238576],[1456272000000,0.243362],[1456358400000,0.243275],[1456444800000,0.242296],[1456531200000,0.239319],[1456617600000,0.239319],[1456704000000,0.239319],[1456790400000,0.239571],[1456876800000,0.239524],[1456963200000,0.234592],[1457049600000,0.230021],[1457136000000,0.232967],[1457222400000,0.232967],[1457308800000,0.232967],[1457395200000,0.232967],[1457481600000,0.232967],[1457568000000,0.23239],[1457654400000,0.223671],[1457740800000,0.227172],[1457827200000,0.228708],[1457913600000,0.228708],[1458000000000,0.233339],[1458086400000,0.23825],[1458172800000,0.236322],[1458259200000,0.239154],[1458345600000,0.235308],[1458432000000,0.235308],[1458518400000,0.235308],[1458604800000,0.238063],[1458691200000,0.233886],[1458777600000,0.230628],[1458864000000,0.233487],[1458950400000,0.23187],[1459036800000,0.23187],[1459123200000,0.23187],[1459209600000,0.233736],[1459296000000,0.232801],[1459382400000,0.233095],[1459468800000,0.233381],[1459555200000,0.233054],[1459641600000,0.233054],[1459728000000,0.233054],[1459814400000,0.232983],[1459900800000,0.235609],[1459987200000,0.235163],[1460073600000,0.238088],[1460160000000,0.236083],[1460246400000,null],[1460332800000,null],[1460419200000,0.23625],[1460505600000,0.235907],[1460592000000,0.233184],[1460678400000,0.234452],[1460764800000,0.233879],[1460851200000,0.233879],[1460937600000,0.233879],[1461024000000,0.235555],[1461110400000,0.232559],[1461196800000,0.232815],[1461283200000,0.23142],[1461369600000,0.228612],[1461456000000,0.228612],[1461542400000,0.228612],[1461628800000,0.228426],[1461715200000,0.227646],[1461801600000,0.226573],[1461888000000,0.232879],[1461974400000,0.234891],[1462060800000,0.234891],[1462147200000,0.234891],[1462233600000,0.234891],[1462320000000,0.234891],[1462406400000,0.236398],[1462492800000,0.234579],[1462579200000,0.23524],[1462665600000,0.23524],[1462752000000,0.23524],[1462838400000,0.23524],[1462924800000,0.230911],[1463011200000,0.232847],[1463097600000,0.231557],[1463184000000,0.233758],[1463270400000,0.233758],[1463356800000,0.233758],[1463443200000,0.233284],[1463529600000,0.230812],[1463616000000,0.230894],[1463702400000,0.229627],[1463788800000,0.228363],[1463875200000,null],[1463961600000,0.228363],[1464048000000,0.229635],[1464134400000,0.229025],[1464220800000,0.227953],[1464307200000,0.22803],[1464393600000,0.229233],[1464480000000,0.229233],[1464566400000,0.229233],[1464652800000,0.226342],[1464739200000,0.226464],[1464825600000,0.229737],[1464912000000,0.229807],[1464998400000,0.229582],[1465084800000,0.229582],[1465171200000,0.229582],[1465257600000,0.233231],[1465344000000,0.23188],[1465430400000,0.233074],[1465516800000,0.234924],[1465603200000,0.234103],[1465689600000,0.234103],[1465776000000,0.234103],[1465862400000,0.235417],[1465948800000,0.235057],[1466035200000,null],[1466121600000,0.238564],[1466208000000,0.238899],[1466294400000,0.238899],[1466380800000,0.238899],[1466467200000,0.238899],[1466553600000,0.237887],[1466640000000,0.238052],[1466726400000,0.235414],[1466812800000,0.243088],[1466899200000,0.243088],[1466985600000,0.243088],[1467072000000,0.243088],[1467158400000,0.243088],[1467244800000,0.242104],[1467331200000,0.241688],[1467417600000,0.241829],[1467504000000,0.241829],[1467590400000,0.241829],[1467676800000,0.24184],[1467763200000,0.243994],[1467849600000,0.246659],[1467936000000,0.245709],[1468022400000,0.247318],[1468108800000,0.247318],[1468195200000,0.247318],[1468281600000,0.242507],[1468368000000,0.239],[1468454400000,0.237283],[1468540800000,0.234706],[1468627200000,0.23468],[1468713600000,0.23468],[1468800000000,0.23468],[1468886400000,0.235182],[1468972800000,0.23364],[1469059200000,0.23289],[1469145600000,0.233532],[1469232000000,0.233857],[1469318400000,0.233857],[1469404800000,0.233857],[1469491200000,0.233384],[1469577600000,0.237694],[1469664000000,0.23466],[1469750400000,null],[1469836800000,0.240072],[1469923200000,0.240072],[1470009600000,0.240072],[1470096000000,0.24211],[1470182400000,0.244325],[1470268800000,0.245486],[1470355200000,0.245228],[1470441600000,0.245482],[1470528000000,0.245482],[1470614400000,0.245482],[1470700800000,0.242253],[1470787200000,0.242727],[1470873600000,0.245423],[1470960000000,0.245163],[1471046400000,0.245621],[1471132800000,0.245621],[1471219200000,0.245621],[1471305600000,0.24855],[1471392000000,0.25106],[1471478400000,0.249185],[1471564800000,0.250845],[1471651200000,0.252024],[1471737600000,0.252024],[1471824000000,0.252024],[1471910400000,0.251422],[1471996800000,0.252855],[1472083200000,0.252855],[1472169600000,0.252064],[1472256000000,0.253458],[1472342400000,0.253458],[1472428800000,0.253458],[1472515200000,0.24922],[1472601600000,0.250708],[1472688000000,0.252445],[1472774400000,0.256649],[1472860800000,0.257362],[1472947200000,0.257362],[1473033600000,0.257362],[1473120000000,0.259317],[1473206400000,0.259643],[1473292800000,0.262892],[1473379200000,0.262109],[1473465600000,0.25945],[1473552000000,0.25945],[1473638400000,0.25945],[1473724800000,0.261371],[1473811200000,0.258491],[1473897600000,0.25602],[1473984000000,0.256506],[1474070400000,0.254277],[1474156800000,0.254277],[1474243200000,0.254277],[1474329600000,0.253136],[1474416000000,0.253321],[1474502400000,0.25746],[1474588800000,0.257373],[1474675200000,0.257883],[1474761600000,0.257883],[1474848000000,0.257883],[1474934400000,0.257893],[1475020800000,0.25756],[1475107200000,0.257407],[1475193600000,0.255319],[1475280000000,0.255975],[1475366400000,0.255975],[1475452800000,0.255975],[1475539200000,0.255702],[1475625600000,0.252116],[1475712000000,0.251056],[1475798400000,0.249627],[1475884800000,0.249365],[1475971200000,0.249365],[1476057600000,0.249365],[1476144000000,0.249789],[1476230400000,0.24927],[1476316800000,0.248382],[1476403200000,0.248649],[1476489600000,0.248649],[1476576000000,0.248649],[1476662400000,0.248649],[1476748800000,0.24765],[1476835200000,0.246668],[1476921600000,0.248556],[1477008000000,0.248088],[1477094400000,0.247313],[1477180800000,0.247313],[1477267200000,0.247313],[1477353600000,0.246492],[1477440000000,0.24485],[1477526400000,0.245219],[1477612800000,0.2439],[1477699200000,0.241935],[1477785600000,0.241935],[1477872000000,0.241935],[1477958400000,0.242926],[1478044800000,null],[1478131200000,0.247403],[1478217600000,0.247861],[1478304000000,0.248351],[1478390400000,0.248351],[1478476800000,0.248351],[1478563200000,0.245115],[1478649600000,0.243963],[1478736000000,0.245979],[1478822400000,0.239428],[1478908800000,0.241009],[1478995200000,0.241009],[1479081600000,0.241009],[1479168000000,0.238687],[1479254400000,0.240255],[1479340800000,0.24047],[1479427200000,0.2384],[1479513600000,0.235349],[1479600000000,0.235349],[1479686400000,0.235349],[1479772800000,0.233105],[1479859200000,0.231375],[1479945600000,0.22982],[1480032000000,0.225992],[1480118400000,0.227573],[1480204800000,0.227573],[1480291200000,0.227573],[1480377600000,0.227826],[1480464000000,0.226598],[1480550400000,0.22561],[1480636800000,0.224448],[1480723200000,0.227405],[1480809600000,0.227405],[1480896000000,0.227405],[1480982400000,0.228594],[1481068800000,0.229088],[1481155200000,0.228064],[1481241600000,0.226216],[1481328000000,0.224942],[1481414400000,0.224942],[1481500800000,0.224942],[1481587200000,0.226024],[1481673600000,0.22656],[1481760000000,0.22879],[1481846400000,0.222713],[1481932800000,0.22279],[1482019200000,0.22279],[1482105600000,0.22279],[1482192000000,0.225141],[1482278400000,0.224079],[1482364800000,0.225182],[1482451200000,0.22345],[1482537600000,0.223803],[1482624000000,0.223803],[1482710400000,0.223803],[1482796800000,0.224645],[1482883200000,0.224645],[1482969600000,0.228545],[1483056000000,0.232896]], 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.204700],[1452816000000, 0.204700],[1455494400000, 0.230248],[1458000000000, 0.233338],[1460678400000, 0.232875],[1463270400000, 0.231937],[1465948800000, 0.235990],[1468540800000, 0.238919],[1471219200000, 0.248107],[1473897600000, 0.257394],[1476489600000, 0.248572],[1479168000000, 0.238002],[1481760000000, 0.225949]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });