$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1451606400000,2.72703],[1451692800000,2.72703],[1451779200000,2.72703],[1451865600000,2.72703],[1451952000000,2.72703],[1452038400000,2.66562],[1452124800000,2.62371],[1452211200000,2.62371],[1452297600000,2.62371],[1452384000000,2.62371],[1452470400000,2.62371],[1452556800000,2.64458],[1452643200000,2.61566],[1452729600000,2.67514],[1452816000000,2.71566],[1452902400000,2.74737],[1452988800000,2.76959],[1453075200000,2.76959],[1453161600000,2.76995],[1453248000000,2.80647],[1453334400000,2.78301],[1453420800000,2.75283],[1453507200000,2.82995],[1453593600000,2.82995],[1453680000000,2.82995],[1453766400000,2.83908],[1453852800000,2.83886],[1453939200000,2.86526],[1454025600000,2.90298],[1454112000000,2.94228],[1454198400000,2.94228],[1454284800000,2.94228],[1454371200000,2.94159],[1454457600000,2.96677],[1454544000000,2.95319],[1454630400000,3.04224],[1454716800000,3.03431],[1454803200000,3.03431],[1454889600000,3.03431],[1454976000000,2.99593],[1455062400000,3.01445],[1455148800000,3.03571],[1455235200000,3.04858],[1455321600000,3.04643],[1455408000000,3.04643],[1455494400000,3.04643],[1455580800000,3.11304],[1455667200000,3.14114],[1455753600000,3.1014],[1455840000000,3.07983],[1455926400000,3.12498],[1456012800000,3.12498],[1456099200000,3.12498],[1456185600000,3.1377],[1456272000000,3.16764],[1456358400000,3.11803],[1456444800000,3.14916],[1456531200000,3.12626],[1456617600000,3.12626],[1456704000000,3.12626],[1456790400000,3.10394],[1456876800000,3.13034],[1456963200000,3.08913],[1457049600000,3.03204],[1457136000000,3.09787],[1457222400000,3.09787],[1457308800000,3.09787],[1457395200000,3.09787],[1457481600000,3.09787],[1457568000000,3.05759],[1457654400000,2.98153],[1457740800000,3.03755],[1457827200000,3.05809],[1457913600000,3.05809],[1458000000000,3.13201],[1458086400000,3.15053],[1458172800000,3.12576],[1458259200000,3.18677],[1458345600000,3.14515],[1458432000000,3.14515],[1458518400000,3.14515],[1458604800000,3.17508],[1458691200000,3.09793],[1458777600000,3.06352],[1458864000000,3.08423],[1458950400000,3.06287],[1459036800000,3.06287],[1459123200000,3.06287],[1459209600000,3.08752],[1459296000000,3.12066],[1459382400000,3.14839],[1459468800000,3.17058],[1459555200000,3.16175],[1459641600000,3.16175],[1459728000000,3.16175],[1459814400000,3.13504],[1459900800000,3.12038],[1459987200000,3.10531],[1460073600000,3.1012],[1460160000000,3.09219],[1460246400000,null],[1460332800000,null],[1460419200000,3.1047],[1460505600000,3.11398],[1460592000000,3.09207],[1460678400000,3.11515],[1460764800000,3.08951],[1460851200000,3.08951],[1460937600000,3.08951],[1461024000000,3.08739],[1461110400000,3.11743],[1461196800000,3.13156],[1461283200000,3.13121],[1461369600000,3.0878],[1461456000000,3.0878],[1461542400000,3.0878],[1461628800000,3.07778],[1461715200000,3.0948],[1461801600000,3.09746],[1461888000000,3.09397],[1461974400000,3.11846],[1462060800000,3.11846],[1462147200000,3.11846],[1462233600000,3.11846],[1462320000000,3.11846],[1462406400000,3.10322],[1462492800000,3.09063],[1462579200000,3.0748],[1462665600000,3.0748],[1462752000000,3.0748],[1462838400000,3.0748],[1462924800000,3.06465],[1463011200000,3.0911],[1463097600000,3.12271],[1463184000000,3.1165],[1463270400000,3.1165],[1463356800000,3.1165],[1463443200000,3.11323],[1463529600000,3.09044],[1463616000000,3.07029],[1463702400000,3.02193],[1463788800000,3.02861],[1463875200000,null],[1463961600000,3.02861],[1464048000000,3.00842],[1464134400000,3.00673],[1464220800000,3.0115],[1464307200000,3.03143],[1464393600000,3.02434],[1464480000000,3.02434],[1464566400000,3.02434],[1464652800000,3.01343],[1464739200000,3.0089],[1464825600000,3.0128],[1464912000000,3.00207],[1464998400000,3.00338],[1465084800000,3.00338],[1465171200000,3.00338],[1465257600000,3.05119],[1465344000000,3.07146],[1465430400000,3.08309],[1465516800000,3.06631],[1465603200000,3.04959],[1465689600000,3.04959],[1465776000000,3.04959],[1465862400000,3.01664],[1465948800000,2.98617],[1466035200000,null],[1466121600000,2.96685],[1466208000000,2.97237],[1466294400000,2.97237],[1466380800000,2.97237],[1466467200000,2.97237],[1466553600000,3.00513],[1466640000000,3.00278],[1466726400000,3.04745],[1466812800000,2.92196],[1466899200000,2.92196],[1466985600000,2.92196],[1467072000000,2.92196],[1467158400000,2.92196],[1467244800000,2.96175],[1467331200000,2.96367],[1467417600000,2.9727],[1467504000000,2.9727],[1467590400000,2.9727],[1467676800000,2.98687],[1467763200000,2.97148],[1467849600000,2.94038],[1467936000000,2.93178],[1468022400000,2.92711],[1468108800000,2.92711],[1468195200000,2.92711],[1468281600000,2.91928],[1468368000000,2.94702],[1468454400000,2.95047],[1468540800000,2.96708],[1468627200000,2.9625],[1468713600000,2.9625],[1468800000000,2.9625],[1468886400000,2.93441],[1468972800000,2.92896],[1469059200000,2.92084],[1469145600000,2.92224],[1469232000000,2.91203],[1469318400000,2.91203],[1469404800000,2.91203],[1469491200000,2.89281],[1469577600000,2.88824],[1469664000000,2.88965],[1469750400000,null],[1469836800000,2.89904],[1469923200000,2.89904],[1470009600000,2.89904],[1470096000000,2.92926],[1470182400000,2.94444],[1470268800000,2.9494],[1470355200000,2.9354],[1470441600000,2.94327],[1470528000000,2.94327],[1470614400000,2.94327],[1470700800000,2.92537],[1470787200000,2.9383],[1470873600000,2.99823],[1470960000000,3.00301],[1471046400000,3.04952],[1471132800000,3.04952],[1471219200000,3.04952],[1471305600000,3.06028],[1471392000000,3.0732],[1471478400000,3.04809],[1471564800000,3.08435],[1471651200000,3.075],[1471737600000,3.075],[1471824000000,3.075],[1471910400000,3.06538],[1471996800000,3.08952],[1472083200000,3.08952],[1472169600000,3.0825],[1472256000000,3.10531],[1472342400000,3.10531],[1472428800000,3.10531],[1472515200000,3.07026],[1472601600000,3.08469],[1472688000000,3.12981],[1472774400000,3.18819],[1472860800000,3.19956],[1472947200000,3.19956],[1473033600000,3.19956],[1473120000000,3.23213],[1473206400000,3.25255],[1473292800000,3.26616],[1473379200000,3.27244],[1473465600000,3.25049],[1473552000000,3.25049],[1473638400000,3.25049],[1473724800000,3.22454],[1473811200000,3.21955],[1473897600000,3.18465],[1473984000000,3.18334],[1474070400000,3.13917],[1474156800000,3.13917],[1474243200000,3.13917],[1474329600000,3.10998],[1474416000000,3.11511],[1474502400000,3.13717],[1474588800000,3.19876],[1474675200000,3.20186],[1474761600000,3.20186],[1474848000000,3.20186],[1474934400000,3.19436],[1475020800000,3.18091],[1475107200000,3.19833],[1475193600000,3.21623],[1475280000000,3.2213],[1475366400000,3.2213],[1475452800000,3.2213],[1475539200000,3.24959],[1475625600000,3.23715],[1475712000000,3.23066],[1475798400000,3.21964],[1475884800000,3.19817],[1475971200000,3.19817],[1476057600000,3.19817],[1476144000000,3.18671],[1476230400000,3.16844],[1476316800000,3.14982],[1476403200000,3.13633],[1476489600000,3.13633],[1476576000000,3.13633],[1476662400000,3.13633],[1476748800000,3.13857],[1476835200000,3.14982],[1476921600000,3.14881],[1477008000000,3.14896],[1477094400000,3.12007],[1477180800000,3.12007],[1477267200000,3.12007],[1477353600000,3.10779],[1477440000000,3.09646],[1477526400000,3.0907],[1477612800000,3.10486],[1477699200000,3.07885],[1477785600000,3.07885],[1477872000000,3.07885],[1477958400000,3.09139],[1478044800000,null],[1478131200000,3.12529],[1478217600000,3.12648],[1478304000000,3.11441],[1478390400000,3.11441],[1478476800000,3.11441],[1478563200000,3.10718],[1478649600000,3.10918],[1478736000000,3.08954],[1478822400000,3.07159],[1478908800000,3.06616],[1478995200000,3.06616],[1479081600000,3.06616],[1479168000000,3.038],[1479254400000,3.08225],[1479340800000,3.10793],[1479427200000,3.07241],[1479513600000,3.02336],[1479600000000,3.02336],[1479686400000,3.02336],[1479772800000,3.01738],[1479859200000,3.00808],[1479945600000,2.99162],[1480032000000,2.9706],[1480118400000,3.00445],[1480204800000,3.00445],[1480291200000,3.00445],[1480377600000,2.99052],[1480464000000,2.98286],[1480550400000,3.01381],[1480636800000,3.03987],[1480723200000,3.06715],[1480809600000,3.06715],[1480896000000,3.06715],[1480982400000,3.11238],[1481068800000,3.11938],[1481155200000,3.10535],[1481241600000,3.07686],[1481328000000,3.04282],[1481414400000,3.04282],[1481500800000,3.04282],[1481587200000,3.0985],[1481673600000,3.09531],[1481760000000,3.1036],[1481846400000,3.04473],[1481932800000,3.0332],[1482019200000,3.0332],[1482105600000,3.0332],[1482192000000,3.04028],[1482278400000,3.03665],[1482364800000,3.05141],[1482451200000,3.01765],[1482537600000,3.01758],[1482624000000,3.01758],[1482710400000,3.01758],[1482796800000,3.02893],[1482883200000,3.02893],[1482969600000,3.08135],[1483056000000,3.13169]], 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, 2.751282],[1452816000000, 2.751282],[1455494400000, 3.067056],[1458000000000, 3.097874],[1460678400000, 3.111350],[1463270400000, 3.069749],[1465948800000, 2.997960],[1468540800000, 2.935875],[1471219200000, 3.025469],[1473897600000, 3.195915],[1476489600000, 3.155758],[1479168000000, 3.055429],[1481760000000, 3.059375]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });