$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1451606400000,33.2855],[1451692800000,33.2855],[1451779200000,33.2855],[1451865600000,33.2855],[1451952000000,33.2855],[1452038400000,32.8111],[1452124800000,32.425],[1452211200000,32.425],[1452297600000,32.425],[1452384000000,32.425],[1452470400000,32.425],[1452556800000,32.567],[1452643200000,32.1581],[1452729600000,32.6253],[1452816000000,33.1702],[1452902400000,33.4644],[1452988800000,33.735],[1453075200000,33.735],[1453161600000,34.0866],[1453248000000,34.3032],[1453334400000,34.0928],[1453420800000,33.8796],[1453507200000,34.1934],[1453593600000,34.1934],[1453680000000,34.1934],[1453766400000,34.2102],[1453852800000,34.2433],[1453939200000,34.3492],[1454025600000,34.77],[1454112000000,35.2786],[1454198400000,35.2786],[1454284800000,35.2786],[1454371200000,35.0633],[1454457600000,35.7634],[1454544000000,35.5727],[1454630400000,36.1822],[1454716800000,36.2362],[1454803200000,36.2362],[1454889600000,36.2362],[1454976000000,36.0802],[1455062400000,36.3127],[1455148800000,36.3877],[1455235200000,36.7356],[1455321600000,36.7587],[1455408000000,36.7587],[1455494400000,36.7587],[1455580800000,37.7015],[1455667200000,37.7763],[1455753600000,37.3156],[1455840000000,36.9208],[1455926400000,37.4763],[1456012800000,37.4763],[1456099200000,37.4763],[1456185600000,37.5567],[1456272000000,37.8434],[1456358400000,37.7232],[1456444800000,37.8551],[1456531200000,37.5651],[1456617600000,37.5651],[1456704000000,37.5651],[1456790400000,37.4264],[1456876800000,37.4351],[1456963200000,37.0066],[1457049600000,36.2381],[1457136000000,36.7785],[1457222400000,36.7785],[1457308800000,36.7785],[1457395200000,36.7785],[1457481600000,36.7785],[1457568000000,36.3826],[1457654400000,35.4317],[1457740800000,36.0495],[1457827200000,36.2933],[1457913600000,36.2933],[1458000000000,37.0051],[1458086400000,37.4714],[1458172800000,37.3727],[1458259200000,37.5881],[1458345600000,36.9012],[1458432000000,36.9012],[1458518400000,36.9012],[1458604800000,37.3775],[1458691200000,36.5843],[1458777600000,36.373],[1458864000000,36.6431],[1458950400000,36.3893],[1459036800000,36.3893],[1459123200000,36.3893],[1459209600000,36.69],[1459296000000,36.9829],[1459382400000,36.8783],[1459468800000,36.9367],[1459555200000,36.7903],[1459641600000,36.7903],[1459728000000,36.7903],[1459814400000,36.5743],[1459900800000,36.7127],[1459987200000,36.4953],[1460073600000,36.3545],[1460160000000,36.0954],[1460246400000,null],[1460332800000,null],[1460419200000,36.0972],[1460505600000,36.1137],[1460592000000,35.8562],[1460678400000,36.0097],[1460764800000,35.8074],[1460851200000,35.8074],[1460937600000,35.8074],[1461024000000,35.8686],[1461110400000,35.8652],[1461196800000,35.8612],[1461283200000,35.7343],[1461369600000,35.6237],[1461456000000,35.6237],[1461542400000,35.6237],[1461628800000,35.6128],[1461715200000,35.6273],[1461801600000,35.5355],[1461888000000,35.6001],[1461974400000,35.718],[1462060800000,35.718],[1462147200000,35.718],[1462233600000,35.718],[1462320000000,35.718],[1462406400000,35.7754],[1462492800000,35.5899],[1462579200000,35.6653],[1462665600000,35.6653],[1462752000000,35.6653],[1462838400000,35.6653],[1462924800000,35.5665],[1463011200000,35.7945],[1463097600000,35.7662],[1463184000000,35.9122],[1463270400000,35.9122],[1463356800000,35.9122],[1463443200000,35.7937],[1463529600000,35.6364],[1463616000000,35.5663],[1463702400000,35.5255],[1463788800000,35.429],[1463875200000,null],[1463961600000,35.429],[1464048000000,35.3039],[1464134400000,35.3247],[1464220800000,35.2562],[1464307200000,35.2905],[1464393600000,35.3369],[1464480000000,35.3369],[1464566400000,35.3369],[1464652800000,35.379],[1464739200000,35.2707],[1464825600000,35.2068],[1464912000000,35.1957],[1464998400000,35.0587],[1465084800000,35.0587],[1465171200000,35.0587],[1465257600000,35.2824],[1465344000000,35.3143],[1465430400000,35.3176],[1465516800000,35.3523],[1465603200000,35.3064],[1465689600000,35.3064],[1465776000000,35.3064],[1465862400000,35.1563],[1465948800000,35.0336],[1466035200000,null],[1466121600000,35.0457],[1466208000000,35.1385],[1466294400000,35.1385],[1466380800000,35.1385],[1466467200000,35.1385],[1466553600000,35.3094],[1466640000000,35.2621],[1466726400000,35.3794],[1466812800000,34.7747],[1466899200000,34.7747],[1466985600000,34.7747],[1467072000000,34.7747],[1467158400000,34.7747],[1467244800000,34.6935],[1467331200000,34.7311],[1467417600000,34.6497],[1467504000000,34.6497],[1467590400000,34.6497],[1467676800000,34.6419],[1467763200000,34.7059],[1467849600000,34.6014],[1467936000000,34.571],[1468022400000,34.587],[1468108800000,34.587],[1468195200000,34.587],[1468281600000,34.5349],[1468368000000,34.578],[1468454400000,34.5495],[1468540800000,34.4995],[1468627200000,34.5793],[1468713600000,34.5793],[1468800000000,34.5793],[1468886400000,34.5216],[1468972800000,34.4421],[1469059200000,34.3768],[1469145600000,34.3986],[1469232000000,34.3767],[1469318400000,34.3767],[1469404800000,34.3767],[1469491200000,34.3168],[1469577600000,34.3743],[1469664000000,34.3727],[1469750400000,null],[1469836800000,34.565],[1469923200000,34.565],[1470009600000,34.565],[1470096000000,34.6209],[1470182400000,34.7335],[1470268800000,34.7777],[1470355200000,34.6772],[1470441600000,34.66],[1470528000000,34.66],[1470614400000,34.66],[1470700800000,34.5501],[1470787200000,34.5322],[1470873600000,34.6723],[1470960000000,34.6675],[1471046400000,34.9173],[1471132800000,34.9173],[1471219200000,34.9173],[1471305600000,35.05],[1471392000000,35.1358],[1471478400000,35.1543],[1471564800000,35.379],[1471651200000,35.5043],[1471737600000,35.5043],[1471824000000,35.5043],[1471910400000,35.4943],[1471996800000,35.5914],[1472083200000,35.5914],[1472169600000,35.5775],[1472256000000,35.7346],[1472342400000,35.7346],[1472428800000,35.7346],[1472515200000,35.7997],[1472601600000,35.8064],[1472688000000,36.3662],[1472774400000,37.1405],[1472860800000,37.2085],[1472947200000,37.2085],[1473033600000,37.2085],[1473120000000,37.4238],[1473206400000,37.5197],[1473292800000,37.505],[1473379200000,37.4287],[1473465600000,37.3999],[1473552000000,37.3999],[1473638400000,37.3999],[1473724800000,37.2959],[1473811200000,37.0177],[1473897600000,36.8409],[1473984000000,36.6976],[1474070400000,36.2584],[1474156800000,36.2584],[1474243200000,36.2584],[1474329600000,35.9654],[1474416000000,36.0142],[1474502400000,36.2352],[1474588800000,36.2993],[1474675200000,36.3587],[1474761600000,36.3587],[1474848000000,36.3587],[1474934400000,36.2522],[1475020800000,36.1669],[1475107200000,36.2321],[1475193600000,36.2326],[1475280000000,36.2031],[1475366400000,36.2031],[1475452800000,36.2031],[1475539200000,36.2288],[1475625600000,36.0225],[1475712000000,36.0833],[1475798400000,36.0132],[1475884800000,35.8183],[1475971200000,35.8183],[1476057600000,35.8183],[1476144000000,35.7993],[1476230400000,35.7345],[1476316800000,35.6172],[1476403200000,35.5799],[1476489600000,35.5799],[1476576000000,35.5799],[1476662400000,35.5799],[1476748800000,35.5053],[1476835200000,35.3974],[1476921600000,35.4328],[1477008000000,35.4172],[1477094400000,35.2487],[1477180800000,35.2487],[1477267200000,35.2487],[1477353600000,35.22],[1477440000000,35.1219],[1477526400000,35.1503],[1477612800000,35.0766],[1477699200000,34.973],[1477785600000,34.973],[1477872000000,34.973],[1477958400000,35.0544],[1478044800000,null],[1478131200000,35.3518],[1478217600000,35.4082],[1478304000000,35.4294],[1478390400000,35.4294],[1478476800000,35.4294],[1478563200000,35.3142],[1478649600000,35.2622],[1478736000000,35.3602],[1478822400000,35.0757],[1478908800000,35.1823],[1478995200000,35.1823],[1479081600000,35.1823],[1479168000000,35.1812],[1479254400000,35.4684],[1479340800000,35.808],[1479427200000,35.4859],[1479513600000,35.1096],[1479600000000,35.1096],[1479686400000,35.1096],[1479772800000,34.9413],[1479859200000,34.7742],[1479945600000,34.6329],[1480032000000,34.6335],[1480118400000,34.8181],[1480204800000,34.8181],[1480291200000,34.8181],[1480377600000,34.6858],[1480464000000,34.613],[1480550400000,34.6002],[1480636800000,34.6969],[1480723200000,35.0959],[1480809600000,35.0959],[1480896000000,35.0959],[1480982400000,35.4761],[1481068800000,35.4863],[1481155200000,35.3143],[1481241600000,35.0772],[1481328000000,34.9363],[1481414400000,34.9363],[1481500800000,34.9363],[1481587200000,35.3521],[1481673600000,35.2951],[1481760000000,35.6181],[1481846400000,35.2342],[1481932800000,35.2983],[1482019200000,35.2983],[1482105600000,35.2983],[1482192000000,35.3817],[1482278400000,35.4019],[1482364800000,35.4029],[1482451200000,35.2276],[1482537600000,35.1894],[1482624000000,35.1894],[1482710400000,35.1894],[1482796800000,35.3218],[1482883200000,35.3218],[1482969600000,35.9709],[1483056000000,36.4381]], 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, 33.544869],[1452816000000, 33.544869],[1455494400000, 36.833716],[1458000000000, 36.751199],[1460678400000, 36.047599],[1463270400000, 35.590240],[1465948800000, 35.115263],[1468540800000, 34.530804],[1471219200000, 35.123373],[1473897600000, 36.743669],[1476489600000, 35.576418],[1479168000000, 35.126516],[1481760000000, 35.310156]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });