$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1451606400000,24.0007],[1451692800000,24.0007],[1451779200000,24.0007],[1451865600000,24.0007],[1451952000000,24.0007],[1452038400000,23.7837],[1452124800000,23.5027],[1452211200000,23.5027],[1452297600000,23.5027],[1452384000000,23.5027],[1452470400000,23.5027],[1452556800000,23.5044],[1452643200000,23.2668],[1452729600000,23.642],[1452816000000,23.9508],[1452902400000,24.1874],[1452988800000,24.383],[1453075200000,24.383],[1453161600000,24.6371],[1453248000000,24.8443],[1453334400000,24.661],[1453420800000,24.5217],[1453507200000,24.7922],[1453593600000,24.7922],[1453680000000,24.7922],[1453766400000,24.8298],[1453852800000,24.849],[1453939200000,24.8705],[1454025600000,25.1518],[1454112000000,25.555],[1454198400000,25.555],[1454284800000,25.555],[1454371200000,25.4484],[1454457600000,25.8728],[1454544000000,25.6984],[1454630400000,25.8927],[1454716800000,25.913],[1454803200000,25.913],[1454889600000,25.913],[1454976000000,25.8774],[1455062400000,25.9445],[1455148800000,25.9412],[1455235200000,26.0837],[1455321600000,26.1474],[1455408000000,26.1474],[1455494400000,26.1474],[1455580800000,26.8181],[1455667200000,27.0198],[1455753600000,26.7237],[1455840000000,26.4623],[1455926400000,26.8558],[1456012800000,26.8558],[1456099200000,26.8558],[1456185600000,27.0145],[1456272000000,27.2339],[1456358400000,27.2186],[1456444800000,27.2486],[1456531200000,27.0544],[1456617600000,27.0544],[1456704000000,27.0544],[1456790400000,27.0948],[1456876800000,27.0852],[1456963200000,26.8108],[1457049600000,26.2136],[1457136000000,26.4971],[1457222400000,26.4971],[1457308800000,26.4971],[1457395200000,26.4971],[1457481600000,26.4971],[1457568000000,26.1828],[1457654400000,25.5192],[1457740800000,25.8451],[1457827200000,26.02],[1457913600000,26.02],[1458000000000,26.5174],[1458086400000,26.8854],[1458172800000,26.8447],[1458259200000,26.7],[1458345600000,26.2429],[1458432000000,26.2429],[1458518400000,26.2429],[1458604800000,26.6007],[1458691200000,26.1025],[1458777600000,26.0151],[1458864000000,26.2522],[1458950400000,26.0703],[1459036800000,26.0703],[1459123200000,26.0703],[1459209600000,26.2801],[1459296000000,26.4392],[1459382400000,26.2181],[1459468800000,26.2182],[1459555200000,26.1085],[1459641600000,26.1085],[1459728000000,26.1085],[1459814400000,25.9946],[1459900800000,26.0772],[1459987200000,25.9579],[1460073600000,25.8013],[1460160000000,25.6298],[1460246400000,null],[1460332800000,null],[1460419200000,25.5706],[1460505600000,25.5531],[1460592000000,25.4835],[1460678400000,25.6476],[1460764800000,25.475],[1460851200000,25.475],[1460937600000,25.475],[1461024000000,25.4848],[1461110400000,25.4435],[1461196800000,25.4114],[1461283200000,25.3737],[1461369600000,25.3436],[1461456000000,25.3436],[1461542400000,25.3436],[1461628800000,25.3389],[1461715200000,25.3018],[1461801600000,25.2151],[1461888000000,25.1865],[1461974400000,25.2009],[1462060800000,25.2009],[1462147200000,25.2009],[1462233600000,25.2009],[1462320000000,25.2009],[1462406400000,25.1953],[1462492800000,25.123],[1462579200000,25.1627],[1462665600000,25.1627],[1462752000000,25.1627],[1462838400000,25.1627],[1462924800000,25.1961],[1463011200000,25.3257],[1463097600000,25.3129],[1463184000000,25.4522],[1463270400000,25.4522],[1463356800000,25.4522],[1463443200000,25.3947],[1463529600000,25.2734],[1463616000000,25.2572],[1463702400000,25.2596],[1463788800000,25.2015],[1463875200000,null],[1463961600000,25.2015],[1464048000000,25.1237],[1464134400000,25.1337],[1464220800000,25.1125],[1464307200000,25.1],[1464393600000,25.136],[1464480000000,25.136],[1464566400000,25.136],[1464652800000,25.166],[1464739200000,25.1416],[1464825600000,25.0976],[1464912000000,25.0512],[1464998400000,25.0021],[1465084800000,25.0021],[1465171200000,25.0021],[1465257600000,24.9857],[1465344000000,24.9617],[1465430400000,24.9441],[1465516800000,25.0022],[1465603200000,25.0153],[1465689600000,25.0153],[1465776000000,25.0153],[1465862400000,24.9687],[1465948800000,24.9149],[1466035200000,null],[1466121600000,24.9046],[1466208000000,24.9089],[1466294400000,24.9089],[1466380800000,24.9089],[1466467200000,24.9089],[1466553600000,24.8926],[1466640000000,24.8981],[1466726400000,24.8829],[1466812800000,24.8734],[1466899200000,24.8734],[1466985600000,24.8734],[1467072000000,24.8734],[1467158400000,24.8734],[1467244800000,24.8544],[1467331200000,24.8284],[1467417600000,24.8214],[1467504000000,24.8214],[1467590400000,24.8214],[1467676800000,24.8158],[1467763200000,24.8459],[1467849600000,24.8419],[1467936000000,24.8148],[1468022400000,24.8368],[1468108800000,24.8368],[1468195200000,24.8368],[1468281600000,24.8521],[1468368000000,24.8417],[1468454400000,24.8213],[1468540800000,24.798],[1468627200000,24.8072],[1468713600000,24.8072],[1468800000000,24.8072],[1468886400000,24.8566],[1468972800000,24.8143],[1469059200000,24.8116],[1469145600000,24.8161],[1469232000000,24.8126],[1469318400000,24.8126],[1469404800000,24.8126],[1469491200000,24.7877],[1469577600000,24.7853],[1469664000000,24.8153],[1469750400000,null],[1469836800000,24.8065],[1469923200000,24.8065],[1470009600000,24.8065],[1470096000000,24.7835],[1470182400000,24.8232],[1470268800000,24.816],[1470355200000,24.8091],[1470441600000,24.8056],[1470528000000,24.8056],[1470614400000,24.8056],[1470700800000,24.8196],[1470787200000,24.8183],[1470873600000,24.8166],[1470960000000,24.8504],[1471046400000,25.0442],[1471132800000,25.0442],[1471219200000,25.0442],[1471305600000,25.1151],[1471392000000,25.0593],[1471478400000,25.0887],[1471564800000,25.1709],[1471651200000,25.2624],[1471737600000,25.2624],[1471824000000,25.2624],[1471910400000,25.2912],[1471996800000,25.3055],[1472083200000,25.3055],[1472169600000,25.3292],[1472256000000,25.4424],[1472342400000,25.4424],[1472428800000,25.4424],[1472515200000,25.4887],[1472601600000,25.6522],[1472688000000,26.0813],[1472774400000,26.6159],[1472860800000,26.633],[1472947200000,26.633],[1473033600000,26.633],[1473120000000,26.7871],[1473206400000,26.8485],[1473292800000,26.7243],[1473379200000,26.6378],[1473465600000,26.6749],[1473552000000,26.6749],[1473638400000,26.6749],[1473724800000,26.6307],[1473811200000,26.426],[1473897600000,26.33],[1473984000000,26.2067],[1474070400000,25.9011],[1474156800000,25.9011],[1474243200000,25.9011],[1474329600000,25.767],[1474416000000,25.8055],[1474502400000,25.9746],[1474588800000,25.9228],[1474675200000,25.9906],[1474761600000,25.9906],[1474848000000,25.9906],[1474934400000,25.9015],[1475020800000,25.8295],[1475107200000,25.8966],[1475193600000,25.9119],[1475280000000,25.9369],[1475366400000,25.9369],[1475452800000,25.9369],[1475539200000,25.9206],[1475625600000,25.8644],[1475712000000,25.8983],[1475798400000,25.8889],[1475884800000,25.8409],[1475971200000,25.8409],[1476057600000,25.8409],[1476144000000,25.8272],[1476230400000,25.8517],[1476316800000,25.8074],[1476403200000,25.7908],[1476489600000,25.7908],[1476576000000,25.7908],[1476662400000,25.7908],[1476748800000,25.7832],[1476835200000,25.663],[1476921600000,25.6932],[1477008000000,25.7036],[1477094400000,25.6628],[1477180800000,25.6628],[1477267200000,25.6628],[1477353600000,25.6405],[1477440000000,25.5953],[1477526400000,25.5814],[1477612800000,25.5328],[1477699200000,25.496],[1477785600000,25.496],[1477872000000,25.496],[1477958400000,25.5154],[1478044800000,null],[1478131200000,25.5587],[1478217600000,25.5948],[1478304000000,25.5762],[1478390400000,25.5762],[1478476800000,25.5762],[1478563200000,25.5707],[1478649600000,25.5633],[1478736000000,25.562],[1478822400000,25.5801],[1478908800000,25.6304],[1478995200000,25.6304],[1479081600000,25.6304],[1479168000000,25.7512],[1479254400000,26.0118],[1479340800000,26.3457],[1479427200000,26.0534],[1479513600000,25.8953],[1479600000000,25.8953],[1479686400000,25.8953],[1479772800000,25.7838],[1479859200000,25.6589],[1479945600000,25.5876],[1480032000000,25.588],[1480118400000,25.7244],[1480204800000,25.7244],[1480291200000,25.7244],[1480377600000,25.6595],[1480464000000,25.5994],[1480550400000,25.5586],[1480636800000,25.6382],[1480723200000,25.8987],[1480809600000,25.8987],[1480896000000,25.8987],[1480982400000,26.1275],[1481068800000,26.0974],[1481155200000,26.0201],[1481241600000,25.7725],[1481328000000,25.8794],[1481414400000,25.8794],[1481500800000,25.8794],[1481587200000,26.1711],[1481673600000,26.1088],[1481760000000,26.3074],[1481846400000,26.2985],[1481932800000,26.3318],[1482019200000,26.3318],[1482105600000,26.3318],[1482192000000,26.396],[1482278400000,26.4705],[1482364800000,26.4294],[1482451200000,26.286],[1482537600000,26.2668],[1482624000000,26.2668],[1482710400000,26.2668],[1482796800000,26.3656],[1482883200000,26.3656],[1482969600000,26.8932],[1483056000000,27.1909]], 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, 24.273208],[1452816000000, 24.273208],[1455494400000, 26.412593],[1458000000000, 26.357164],[1460678400000, 25.595430],[1463270400000, 25.219859],[1465948800000, 24.950177],[1468540800000, 24.819797],[1471219200000, 25.090759],[1473897600000, 26.263215],[1476489600000, 25.749172],[1479168000000, 25.705628],[1481760000000, 26.219940]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });