$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1451606400000,24.2492],[1451692800000,24.2492],[1451779200000,24.2492],[1451865600000,24.2492],[1451952000000,24.2492],[1452038400000,23.5622],[1452124800000,23.2773],[1452211200000,23.2773],[1452297600000,23.2773],[1452384000000,23.2773],[1452470400000,23.2773],[1452556800000,23.5585],[1452643200000,23.226],[1452729600000,23.4039],[1452816000000,23.8261],[1452902400000,24.1057],[1452988800000,24.3006],[1453075200000,24.3006],[1453161600000,24.5156],[1453248000000,24.7214],[1453334400000,24.6046],[1453420800000,24.3963],[1453507200000,24.4707],[1453593600000,24.4707],[1453680000000,24.4707],[1453766400000,24.4545],[1453852800000,24.4629],[1453939200000,24.466],[1454025600000,24.8104],[1454112000000,25.0414],[1454198400000,25.0414],[1454284800000,25.0414],[1454371200000,24.9622],[1454457600000,25.3436],[1454544000000,25.2776],[1454630400000,25.9784],[1454716800000,26.1488],[1454803200000,26.1488],[1454889600000,26.1488],[1454976000000,25.9945],[1455062400000,26.5084],[1455148800000,26.6441],[1455235200000,26.8406],[1455321600000,26.8279],[1455408000000,26.8279],[1455494400000,26.8279],[1455580800000,27.2346],[1455667200000,27.3827],[1455753600000,26.9707],[1455840000000,26.5966],[1455926400000,27.0483],[1456012800000,27.0483],[1456099200000,27.0483],[1456185600000,27.0587],[1456272000000,27.4358],[1456358400000,27.3857],[1456444800000,27.4779],[1456531200000,27.245],[1456617600000,27.245],[1456704000000,27.245],[1456790400000,27.0303],[1456876800000,27.1152],[1456963200000,26.838],[1457049600000,26.3611],[1457136000000,26.6722],[1457222400000,26.6722],[1457308800000,26.6722],[1457395200000,26.6722],[1457481600000,26.6722],[1457568000000,26.1708],[1457654400000,25.3233],[1457740800000,26.1804],[1457827200000,26.3575],[1457913600000,26.3575],[1458000000000,26.8801],[1458086400000,27.2659],[1458172800000,27.0994],[1458259200000,27.5576],[1458345600000,27.1081],[1458432000000,27.1081],[1458518400000,27.1081],[1458604800000,27.4658],[1458691200000,26.8817],[1458777600000,26.6765],[1458864000000,26.9257],[1458950400000,26.7392],[1459036800000,26.7392],[1459123200000,26.7392],[1459209600000,26.9544],[1459296000000,27.115],[1459382400000,27.2055],[1459468800000,27.3071],[1459555200000,27.2677],[1459641600000,27.2677],[1459728000000,27.2677],[1459814400000,27.0921],[1459900800000,27.2145],[1459987200000,27.0285],[1460073600000,26.9392],[1460160000000,26.7824],[1460246400000,null],[1460332800000,null],[1460419200000,26.7766],[1460505600000,26.7798],[1460592000000,26.4455],[1460678400000,26.5294],[1460764800000,26.3266],[1460851200000,26.3266],[1460937600000,26.3266],[1461024000000,26.3953],[1461110400000,26.4242],[1461196800000,26.4335],[1461283200000,26.2188],[1461369600000,25.9708],[1461456000000,25.9708],[1461542400000,25.9708],[1461628800000,26.0109],[1461715200000,25.962],[1461801600000,25.9144],[1461888000000,26.0678],[1461974400000,26.1622],[1462060800000,26.1622],[1462147200000,26.1622],[1462233600000,26.1622],[1462320000000,26.1622],[1462406400000,26.3688],[1462492800000,26.083],[1462579200000,25.9742],[1462665600000,25.9742],[1462752000000,25.9742],[1462838400000,25.9742],[1462924800000,25.8693],[1463011200000,26.033],[1463097600000,26.0588],[1463184000000,26.2002],[1463270400000,26.2002],[1463356800000,26.2002],[1463443200000,26.0032],[1463529600000,25.8163],[1463616000000,25.697],[1463702400000,25.5056],[1463788800000,25.419],[1463875200000,null],[1463961600000,25.419],[1464048000000,25.3726],[1464134400000,25.3356],[1464220800000,25.333],[1464307200000,25.3108],[1464393600000,25.3631],[1464480000000,25.3631],[1464566400000,25.3631],[1464652800000,25.3503],[1464739200000,25.3921],[1464825600000,25.3677],[1464912000000,25.3365],[1464998400000,25.2374],[1465084800000,25.2374],[1465171200000,25.2374],[1465257600000,25.6594],[1465344000000,25.8006],[1465430400000,25.9381],[1465516800000,25.9802],[1465603200000,25.9783],[1465689600000,25.9783],[1465776000000,25.9783],[1465862400000,25.8401],[1465948800000,25.8189],[1466035200000,null],[1466121600000,25.7385],[1466208000000,25.9128],[1466294400000,25.9128],[1466380800000,25.9128],[1466467200000,25.9128],[1466553600000,25.9571],[1466640000000,25.9395],[1466726400000,26.0566],[1466812800000,25.4672],[1466899200000,25.4672],[1466985600000,25.4672],[1467072000000,25.4672],[1467158400000,25.4672],[1467244800000,25.3948],[1467331200000,25.3653],[1467417600000,25.5087],[1467504000000,25.5087],[1467590400000,25.5087],[1467676800000,25.5004],[1467763200000,25.5544],[1467849600000,25.4113],[1467936000000,25.4111],[1468022400000,25.3288],[1468108800000,25.3288],[1468195200000,25.3288],[1468281600000,25.2683],[1468368000000,25.27],[1468454400000,25.1922],[1468540800000,25.3827],[1468627200000,25.3284],[1468713600000,25.3284],[1468800000000,25.3284],[1468886400000,25.2774],[1468972800000,25.1748],[1469059200000,25.1103],[1469145600000,25.1425],[1469232000000,25.1644],[1469318400000,25.1644],[1469404800000,25.1644],[1469491200000,25.1148],[1469577600000,25.0748],[1469664000000,24.9584],[1469750400000,null],[1469836800000,25.4712],[1469923200000,25.4712],[1470009600000,25.4712],[1470096000000,25.6022],[1470182400000,25.7027],[1470268800000,25.6283],[1470355200000,25.5006],[1470441600000,25.5005],[1470528000000,25.5005],[1470614400000,25.5005],[1470700800000,25.2849],[1470787200000,25.2259],[1470873600000,25.4096],[1470960000000,25.5232],[1471046400000,25.6652],[1471132800000,25.6652],[1471219200000,25.6652],[1471305600000,25.7769],[1471392000000,26.0895],[1471478400000,26.0425],[1471564800000,26.2563],[1471651200000,26.3659],[1471737600000,26.3659],[1471824000000,26.3659],[1471910400000,26.2669],[1471996800000,26.3344],[1472083200000,26.3344],[1472169600000,26.2235],[1472256000000,26.2731],[1472342400000,26.2731],[1472428800000,26.2731],[1472515200000,26.0317],[1472601600000,26.1606],[1472688000000,26.4978],[1472774400000,27.0232],[1472860800000,27.2017],[1472947200000,27.2017],[1473033600000,27.2017],[1473120000000,27.3534],[1473206400000,27.4285],[1473292800000,27.5733],[1473379200000,27.5626],[1473465600000,27.402],[1473552000000,27.402],[1473638400000,27.402],[1473724800000,27.3394],[1473811200000,27.2049],[1473897600000,26.9867],[1473984000000,26.9564],[1474070400000,26.5758],[1474156800000,26.5758],[1474243200000,26.5758],[1474329600000,26.261],[1474416000000,26.3738],[1474502400000,26.6119],[1474588800000,26.8078],[1474675200000,26.7713],[1474761600000,26.7713],[1474848000000,26.7713],[1474934400000,26.7495],[1475020800000,26.6366],[1475107200000,26.6908],[1475193600000,26.7338],[1475280000000,26.6166],[1475366400000,26.6166],[1475452800000,26.6166],[1475539200000,26.6756],[1475625600000,26.3652],[1475712000000,26.4939],[1475798400000,26.4639],[1475884800000,26.2989],[1475971200000,26.2989],[1476057600000,26.2989],[1476144000000,26.2985],[1476230400000,26.185],[1476316800000,26.0772],[1476403200000,26.1077],[1476489600000,26.1077],[1476576000000,26.1077],[1476662400000,26.1077],[1476748800000,26.0725],[1476835200000,25.9153],[1476921600000,25.9891],[1477008000000,26.0067],[1477094400000,25.8074],[1477180800000,25.8074],[1477267200000,25.8074],[1477353600000,25.8063],[1477440000000,25.6519],[1477526400000,25.7867],[1477612800000,25.7425],[1477699200000,25.6533],[1477785600000,25.6533],[1477872000000,25.6533],[1477958400000,25.8126],[1478044800000,null],[1478131200000,26.2885],[1478217600000,26.2521],[1478304000000,26.3335],[1478390400000,26.3335],[1478476800000,26.3335],[1478563200000,26.2177],[1478649600000,26.1799],[1478736000000,26.1044],[1478822400000,25.8962],[1478908800000,26.0412],[1478995200000,26.0412],[1479081600000,26.0412],[1479168000000,25.8424],[1479254400000,26.0287],[1479340800000,26.2574],[1479427200000,26.0049],[1479513600000,25.697],[1479600000000,25.697],[1479686400000,25.697],[1479772800000,25.5531],[1479859200000,25.3887],[1479945600000,25.28],[1480032000000,25.1611],[1480118400000,25.3794],[1480204800000,25.3794],[1480291200000,25.3794],[1480377600000,25.2705],[1480464000000,25.1803],[1480550400000,25.1611],[1480636800000,25.3119],[1480723200000,25.6362],[1480809600000,25.6362],[1480896000000,25.6362],[1480982400000,25.8976],[1481068800000,25.8589],[1481155200000,25.7703],[1481241600000,25.5564],[1481328000000,25.4054],[1481414400000,25.4054],[1481500800000,25.4054],[1481587200000,25.7435],[1481673600000,25.788],[1481760000000,26.0553],[1481846400000,25.5291],[1481932800000,25.5677],[1482019200000,25.5677],[1482105600000,25.5677],[1482192000000,25.6886],[1482278400000,25.6704],[1482364800000,25.7667],[1482451200000,25.6427],[1482537600000,25.6169],[1482624000000,25.6169],[1482710400000,25.6169],[1482796800000,25.7133],[1482883200000,25.7133],[1482969600000,26.1075],[1483056000000,26.5285]], 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.123968],[1452816000000, 24.123968],[1455494400000, 26.618750],[1458000000000, 26.795617],[1460678400000, 26.542130],[1463270400000, 25.807027],[1465948800000, 25.684625],[1468540800000, 25.304725],[1471219200000, 25.879985],[1473897600000, 26.954793],[1476489600000, 26.099668],[1479168000000, 25.830048],[1481760000000, 25.700321]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });