$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1451606400000,2.85412],[1451692800000,2.85412],[1451779200000,2.85412],[1451865600000,2.85412],[1451952000000,2.85412],[1452038400000,2.77096],[1452124800000,2.73439],[1452211200000,2.73439],[1452297600000,2.73439],[1452384000000,2.73439],[1452470400000,2.73439],[1452556800000,2.76009],[1452643200000,2.72611],[1452729600000,2.76564],[1452816000000,2.80986],[1452902400000,2.82411],[1452988800000,2.84695],[1453075200000,2.84695],[1453161600000,2.87276],[1453248000000,2.89611],[1453334400000,2.87889],[1453420800000,2.85602],[1453507200000,2.88936],[1453593600000,2.88936],[1453680000000,2.88936],[1453766400000,2.895],[1453852800000,2.9067],[1453939200000,2.92458],[1454025600000,2.94725],[1454112000000,2.98515],[1454198400000,2.98515],[1454284800000,2.98515],[1454371200000,2.98357],[1454457600000,3.02348],[1454544000000,3.00235],[1454630400000,3.08555],[1454716800000,3.07742],[1454803200000,3.07742],[1454889600000,3.07742],[1454976000000,3.04606],[1455062400000,3.06398],[1455148800000,3.06866],[1455235200000,3.10934],[1455321600000,3.11806],[1455408000000,3.11806],[1455494400000,3.11806],[1455580800000,3.16066],[1455667200000,3.18447],[1455753600000,3.14174],[1455840000000,3.11983],[1455926400000,3.1756],[1456012800000,3.1756],[1456099200000,3.1756],[1456185600000,3.18324],[1456272000000,3.20422],[1456358400000,3.19202],[1456444800000,3.20304],[1456531200000,3.17747],[1456617600000,3.17747],[1456704000000,3.17747],[1456790400000,3.16468],[1456876800000,3.14437],[1456963200000,3.11675],[1457049600000,3.05228],[1457136000000,3.11397],[1457222400000,3.11397],[1457308800000,3.11397],[1457395200000,3.11397],[1457481600000,3.11397],[1457568000000,3.09194],[1457654400000,2.99977],[1457740800000,3.07898],[1457827200000,3.09981],[1457913600000,3.09981],[1458000000000,3.17689],[1458086400000,3.23163],[1458172800000,3.22014],[1458259200000,3.24962],[1458345600000,3.19051],[1458432000000,3.19051],[1458518400000,3.19051],[1458604800000,3.23993],[1458691200000,3.17024],[1458777600000,3.14807],[1458864000000,3.15916],[1458950400000,3.13728],[1459036800000,3.13728],[1459123200000,3.13728],[1459209600000,3.16253],[1459296000000,3.19301],[1459382400000,3.21244],[1459468800000,3.23561],[1459555200000,3.22976],[1459641600000,3.22976],[1459728000000,3.22976],[1459814400000,3.19828],[1459900800000,3.20246],[1459987200000,3.17678],[1460073600000,3.16723],[1460160000000,3.13395],[1460246400000,null],[1460332800000,null],[1460419200000,3.13795],[1460505600000,3.16052],[1460592000000,3.13767],[1460678400000,3.1512],[1460764800000,3.1279],[1460851200000,3.1279],[1460937600000,3.1279],[1461024000000,3.13363],[1461110400000,3.14477],[1461196800000,3.15524],[1461283200000,3.137],[1461369600000,3.12369],[1461456000000,3.12369],[1461542400000,3.12369],[1461628800000,3.11693],[1461715200000,3.11958],[1461801600000,3.11098],[1461888000000,3.11747],[1461974400000,3.13414],[1462060800000,3.13414],[1462147200000,3.13414],[1462233600000,3.13414],[1462320000000,3.13414],[1462406400000,3.12935],[1462492800000,3.10432],[1462579200000,3.09999],[1462665600000,3.09999],[1462752000000,3.09999],[1462838400000,3.09999],[1462924800000,3.08916],[1463011200000,3.10956],[1463097600000,3.10172],[1463184000000,3.09622],[1463270400000,3.09622],[1463356800000,3.09622],[1463443200000,3.07989],[1463529600000,3.05888],[1463616000000,3.04599],[1463702400000,3.01819],[1463788800000,3.02107],[1463875200000,null],[1463961600000,3.02107],[1464048000000,3.01544],[1464134400000,3.01626],[1464220800000,3.02106],[1464307200000,3.01838],[1464393600000,3.02914],[1464480000000,3.02914],[1464566400000,3.02914],[1464652800000,3.01976],[1464739200000,3.0183],[1464825600000,3.02212],[1464912000000,3.01547],[1464998400000,3.01143],[1465084800000,3.01143],[1465171200000,3.01143],[1465257600000,3.06686],[1465344000000,3.07102],[1465430400000,3.07548],[1465516800000,3.06817],[1465603200000,3.03298],[1465689600000,3.03298],[1465776000000,3.03298],[1465862400000,3.01664],[1465948800000,3.00127],[1466035200000,null],[1466121600000,2.96315],[1466208000000,2.98806],[1466294400000,2.98806],[1466380800000,2.98806],[1466467200000,2.98806],[1466553600000,3.02053],[1466640000000,3.00557],[1466726400000,3.04624],[1466812800000,2.9093],[1466899200000,2.9093],[1466985600000,2.9093],[1467072000000,2.9093],[1467158400000,2.9093],[1467244800000,2.92262],[1467331200000,2.92486],[1467417600000,2.94341],[1467504000000,2.94341],[1467590400000,2.94341],[1467676800000,2.94323],[1467763200000,2.93582],[1467849600000,2.90454],[1467936000000,2.90054],[1468022400000,2.90377],[1468108800000,2.90377],[1468195200000,2.90377],[1468281600000,2.89775],[1468368000000,2.91673],[1468454400000,2.91223],[1468540800000,2.93044],[1468627200000,2.91948],[1468713600000,2.91948],[1468800000000,2.91948],[1468886400000,2.9018],[1468972800000,2.88475],[1469059200000,2.88592],[1469145600000,2.88538],[1469232000000,2.87732],[1469318400000,2.87732],[1469404800000,2.87732],[1469491200000,2.86335],[1469577600000,2.86535],[1469664000000,2.85987],[1469750400000,null],[1469836800000,2.88143],[1469923200000,2.88143],[1470009600000,2.88143],[1470096000000,2.88714],[1470182400000,2.90825],[1470268800000,2.92119],[1470355200000,2.90494],[1470441600000,2.91165],[1470528000000,2.91165],[1470614400000,2.91165],[1470700800000,2.88898],[1470787200000,2.89788],[1470873600000,2.92739],[1470960000000,2.93878],[1471046400000,2.96337],[1471132800000,2.96337],[1471219200000,2.96337],[1471305600000,2.96812],[1471392000000,2.99417],[1471478400000,2.97943],[1471564800000,3.00721],[1471651200000,3.01384],[1471737600000,3.01384],[1471824000000,3.01384],[1471910400000,3.01547],[1471996800000,3.03085],[1472083200000,3.03085],[1472169600000,3.01157],[1472256000000,3.02671],[1472342400000,3.02671],[1472428800000,3.02671],[1472515200000,2.99883],[1472601600000,3.01537],[1472688000000,3.05107],[1472774400000,3.10672],[1472860800000,3.10572],[1472947200000,3.10572],[1473033600000,3.10572],[1473120000000,3.1299],[1473206400000,3.1418],[1473292800000,3.15897],[1473379200000,3.16921],[1473465600000,3.16326],[1473552000000,3.16326],[1473638400000,3.16326],[1473724800000,3.12758],[1473811200000,3.11609],[1473897600000,3.09797],[1473984000000,3.08828],[1474070400000,3.04243],[1474156800000,3.04243],[1474243200000,3.04243],[1474329600000,3.00653],[1474416000000,3.01378],[1474502400000,3.02636],[1474588800000,3.03988],[1474675200000,3.04173],[1474761600000,3.04173],[1474848000000,3.04173],[1474934400000,3.0362],[1475020800000,3.01214],[1475107200000,3.02282],[1475193600000,3.02186],[1475280000000,3.00885],[1475366400000,3.00885],[1475452800000,3.00885],[1475539200000,3.03601],[1475625600000,3.00685],[1475712000000,3.01627],[1475798400000,3.00631],[1475884800000,2.98819],[1475971200000,2.98819],[1476057600000,2.98819],[1476144000000,2.9832],[1476230400000,2.94304],[1476316800000,2.92235],[1476403200000,2.92383],[1476489600000,2.92383],[1476576000000,2.92383],[1476662400000,2.92383],[1476748800000,2.92143],[1476835200000,2.90764],[1476921600000,2.9087],[1477008000000,2.90834],[1477094400000,2.88264],[1477180800000,2.88264],[1477267200000,2.88264],[1477353600000,2.87739],[1477440000000,2.86347],[1477526400000,2.87031],[1477612800000,2.84255],[1477699200000,2.82363],[1477785600000,2.82363],[1477872000000,2.82363],[1477958400000,2.83114],[1478044800000,null],[1478131200000,2.86699],[1478217600000,2.85845],[1478304000000,2.8477],[1478390400000,2.8477],[1478476800000,2.8477],[1478563200000,2.83336],[1478649600000,2.84486],[1478736000000,2.81674],[1478822400000,2.81254],[1478908800000,2.83413],[1478995200000,2.83413],[1479081600000,2.83413],[1479168000000,2.82911],[1479254400000,2.84252],[1479340800000,2.86746],[1479427200000,2.83847],[1479513600000,2.80163],[1479600000000,2.80163],[1479686400000,2.80163],[1479772800000,2.79289],[1479859200000,2.78057],[1479945600000,2.77204],[1480032000000,2.76375],[1480118400000,2.78489],[1480204800000,2.78489],[1480291200000,2.78489],[1480377600000,2.778],[1480464000000,2.77203],[1480550400000,2.78676],[1480636800000,2.78202],[1480723200000,2.81288],[1480809600000,2.81288],[1480896000000,2.81288],[1480982400000,2.85279],[1481068800000,2.85759],[1481155200000,2.85666],[1481241600000,2.85271],[1481328000000,2.81973],[1481414400000,2.81973],[1481500800000,2.81973],[1481587200000,2.8458],[1481673600000,2.85053],[1481760000000,2.8704],[1481846400000,2.80489],[1481932800000,2.80803],[1482019200000,2.80803],[1482105600000,2.80803],[1482192000000,2.81288],[1482278400000,2.82054],[1482364800000,2.8575],[1482451200000,2.85946],[1482537600000,2.84452],[1482624000000,2.84452],[1482710400000,2.84452],[1482796800000,2.85522],[1482883200000,2.85522],[1482969600000,2.92031],[1483056000000,2.97354]], 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.842224],[1452816000000, 2.842224],[1455494400000, 3.117344],[1458000000000, 3.147268],[1460678400000, 3.154123],[1463270400000, 3.072756],[1465948800000, 2.998117],[1468540800000, 2.903579],[1471219200000, 2.966277],[1473897600000, 3.080887],[1476489600000, 2.929650],[1479168000000, 2.817448],[1481760000000, 2.843351]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });