$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1420070400000,24.5255],[1420156800000,24.5255],[1420243200000,24.5255],[1420329600000,24.5255],[1420416000000,24.5255],[1420502400000,24.5255],[1420588800000,24.0211],[1420675200000,24.0211],[1420761600000,null],[1420848000000,23.7282],[1420934400000,23.7282],[1421020800000,23.7282],[1421107200000,23.8683],[1421193600000,23.8897],[1421280000000,null],[1421366400000,23.9602],[1421452800000,24.1088],[1421539200000,24.0901],[1421625600000,24.0901],[1421712000000,23.9859],[1421798400000,23.8826],[1421884800000,23.9324],[1421971200000,null],[1422057600000,24.0021],[1422144000000,24.0021],[1422230400000,24.0021],[1422316800000,23.6907],[1422403200000,23.8701],[1422489600000,24.0107],[1422576000000,24.2414],[1422662400000,24.4501],[1422748800000,24.4501],[1422835200000,24.4501],[1422921600000,24.3033],[1423008000000,24.4075],[1423094400000,25.2415],[1423180800000,27.4116],[1423267200000,null],[1423353600000,35.274],[1423440000000,35.274],[1423526400000,38.2274],[1423612800000,37.7716],[1423699200000,38.9123],[1423785600000,38.3953],[1423872000000,39.8055],[1423958400000,39.8055],[1424044800000,39.8055],[1424131200000,40.0586],[1424217600000,40.5202],[1424304000000,41.1512],[1424390400000,42.2023],[1424476800000,42.9902],[1424563200000,42.9902],[1424649600000,42.9902],[1424736000000,43.5869],[1424822400000,43.4758],[1424908800000,43.2605],[1424995200000,46.465],[1425081600000,43.0345],[1425168000000,43.0345],[1425254400000,43.0345],[1425340800000,41.4791],[1425427200000,38.2042],[1425513600000,36.4867],[1425600000000,35.385],[1425686400000,34.9534],[1425772800000,34.9534],[1425859200000,34.9534],[1425945600000,34.9534],[1426032000000,32.8486],[1426118400000,32.4685],[1426204800000,32.4067],[1426291200000,32.3525],[1426377600000,32.3525],[1426464000000,32.3525],[1426550400000,32.1785],[1426636800000,32.9351],[1426723200000,34.4137],[1426809600000,34.2724],[1426896000000,34.4711],[1426982400000,34.4711],[1427068800000,34.4711],[1427155200000,34.385],[1427241600000,34.7249],[1427328000000,35.1238],[1427414400000,35.0518],[1427500800000,35.0032],[1427587200000,35.0032],[1427673600000,35.0032],[1427760000000,34.8716],[1427846400000,34.6918],[1427932800000,34.6669],[1428019200000,34.8015],[1428105600000,34.4985],[1428192000000,34.4985],[1428278400000,34.4985],[1428364800000,34.7098],[1428451200000,34.9945],[1428537600000,35.1555],[1428624000000,34.7403],[1428710400000,33.3881],[1428796800000,33.3881],[1428883200000,33.3881],[1428969600000,33.3881],[1429056000000,33.5591],[1429142400000,32.1488],[1429228800000,31.9525],[1429315200000,31.6318],[1429401600000,31.6318],[1429488000000,31.6318],[1429574400000,33.1643],[1429660800000,33.1648],[1429747200000,33.9698],[1429833600000,33.85],[1429920000000,33.9456],[1430006400000,33.9456],[1430092800000,33.9456],[1430179200000,34.6004],[1430265600000,34.0226],[1430352000000,32.3359],[1430438400000,32.6132],[1430524800000,32.6132],[1430611200000,32.6132],[1430697600000,32.6132],[1430784000000,32.6132],[1430870400000,31.9641],[1430956800000,32.0114],[1431043200000,31.5512],[1431129600000,31.7361],[1431216000000,31.7361],[1431302400000,31.7361],[1431388800000,31.7361],[1431475200000,32.3765],[1431561600000,32.1752],[1431648000000,32.4825],[1431734400000,32.5156],[1431820800000,32.5156],[1431907200000,32.5156],[1431993600000,34.6505],[1432080000000,32.916],[1432166400000,32.3313],[1432252800000,32.4296],[1432339200000,32.5893],[1432425600000,32.5893],[1432512000000,32.5893],[1432598400000,32.5029],[1432684800000,32.9866],[1432771200000,null],[1432857600000,32.1928],[1432944000000,32.1698],[1433030400000,32.1698],[1433116800000,32.1698],[1433203200000,32.1698],[1433289600000,32.0848],[1433376000000,32.1485],[1433462400000,32.3378],[1433548800000,32.2355],[1433635200000,32.2355],[1433721600000,32.2355],[1433808000000,32.1871],[1433894400000,32.3815],[1433980800000,32.7551],[1434067200000,32.5049],[1434153600000,32.6128],[1434240000000,32.6128],[1434326400000,32.6128],[1434412800000,33.2614],[1434499200000,34.5846],[1434585600000,34.0576],[1434672000000,33.9386],[1434758400000,34.2667],[1434844800000,34.2667],[1434931200000,34.2667],[1435017600000,34.4491],[1435104000000,33.9634],[1435190400000,33.3618],[1435276800000,33.3319],[1435363200000,33.0498],[1435449600000,33.0498],[1435536000000,33.0498],[1435622400000,33.0498],[1435708800000,33.0373],[1435795200000,32.885],[1435881600000,32.7347],[1435968000000,32.8384],[1436054400000,32.8384],[1436140800000,32.8384],[1436227200000,33.0643],[1436313600000,33.518],[1436400000000,33.7678],[1436486400000,33.6552],[1436572800000,34.0089],[1436659200000,34.0089],[1436745600000,34.0089],[1436832000000,34.1079],[1436918400000,34.2505],[1437004800000,34.5464],[1437091200000,34.2257],[1437177600000,34.3292],[1437264000000,34.3292],[1437350400000,34.3292],[1437436800000,34.2982],[1437523200000,34.2504],[1437609600000,34.3706],[1437696000000,34.3769],[1437782400000,34.1579],[1437868800000,34.1579],[1437955200000,34.1579],[1438041600000,34.1579],[1438128000000,34.3492],[1438214400000,34.5203],[1438300800000,33.7742],[1438387200000,32.9067],[1438473600000,32.9067],[1438560000000,32.9067],[1438646400000,33.8401],[1438732800000,33.9053],[1438819200000,33.7069],[1438905600000,33.3411],[1438992000000,32.7251],[1439078400000,32.7251],[1439164800000,32.7251],[1439251200000,32.9574],[1439337600000,33.3327],[1439424000000,33.3689],[1439510400000,33.4493],[1439596800000,34.0175],[1439683200000,34.0175],[1439769600000,34.0175],[1439856000000,34.3995],[1439942400000,34.6899],[1440028800000,34.5627],[1440115200000,34.5153],[1440201600000,34.629],[1440288000000,34.629],[1440374400000,34.629],[1440460800000,null],[1440547200000,35.7071],[1440633600000,33.4011],[1440720000000,32.8968],[1440806400000,32.6072],[1440892800000,32.6072],[1440979200000,32.6072],[1441065600000,33.6134],[1441152000000,null],[1441238400000,null],[1441324800000,null],[1441411200000,null],[1441497600000,null],[1441584000000,null],[1441670400000,null],[1441756800000,null],[1441843200000,null],[1441929600000,null],[1442016000000,null],[1442102400000,null],[1442188800000,null],[1442275200000,null],[1442361600000,null],[1442448000000,33.7197],[1442534400000,null],[1442620800000,33.8586],[1442707200000,33.8586],[1442793600000,33.8586],[1442880000000,33.9459],[1442966400000,33.5724],[1443052800000,32.9673],[1443139200000,32.6631],[1443225600000,32.8057],[1443312000000,32.8057],[1443398400000,32.8057],[1443484800000,32.7995],[1443571200000,32.6336],[1443657600000,32.3053],[1443744000000,32.0243],[1443830400000,32.0747],[1443916800000,32.0747],[1444003200000,32.0747],[1444089600000,32.2047],[1444176000000,32.2567],[1444262400000,32.5672],[1444348800000,32.5417],[1444435200000,32.9742],[1444521600000,32.9742],[1444608000000,32.9742],[1444694400000,33.527],[1444780800000,33.3507],[1444867200000,33.3507],[1444953600000,33.5432],[1445040000000,32.8904],[1445126400000,32.8904],[1445212800000,32.8904],[1445299200000,33.4825],[1445385600000,34.0152],[1445472000000,34.9307],[1445558400000,34.4627],[1445644800000,34.7742],[1445731200000,34.7742],[1445817600000,34.7742],[1445904000000,35.1081],[1445990400000,35.0555],[1446076800000,35.0023],[1446163200000,34.9296],[1446249600000,35.2718],[1446336000000,35.2718],[1446422400000,35.2718],[1446508800000,35.6007],[1446595200000,35.4289],[1446681600000,35.5787],[1446768000000,35.0124],[1446854400000,34.2867],[1446940800000,34.2867],[1447027200000,34.2867],[1447113600000,34.3379],[1447200000000,34.4151],[1447286400000,34.5415],[1447372800000,34.7976],[1447459200000,35.1058],[1447545600000,35.1058],[1447632000000,35.1058],[1447718400000,35.2577],[1447804800000,36.1461],[1447891200000,36.3907],[1447977600000,36.406],[1448064000000,36.5688],[1448150400000,36.5688],[1448236800000,36.5688],[1448323200000,36.4157],[1448409600000,36.1206],[1448496000000,35.8599],[1448582400000,35.631],[1448668800000,35.951],[1448755200000,35.951],[1448841600000,35.951],[1448928000000,35.9459],[1449014400000,35.9182],[1449100800000,35.5503],[1449187200000,34.5943],[1449273600000,35.803],[1449360000000,35.803],[1449446400000,35.803],[1449532800000,35.3182],[1449619200000,34.2705],[1449705600000,34.546],[1449792000000,35.3448],[1449878400000,36.1667],[1449964800000,36.1667],[1450051200000,36.1667],[1450137600000,36.0225],[1450224000000,35.5391],[1450310400000,35.3064],[1450396800000,35.044],[1450483200000,35.1126],[1450569600000,35.1126],[1450656000000,35.1126],[1450742400000,35.0267],[1450828800000,34.4341],[1450915200000,34.2481],[1451001600000,34.2403],[1451088000000,34.4982],[1451174400000,34.4982],[1451260800000,34.4982],[1451347200000,35.4903],[1451433600000,35.2079]], 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: [[1421280000000, 24.087761],[1421280000000, 24.087761],[1423958400000, 37.268915],[1426377600000, 35.116089],[1429056000000, 33.676945],[1431648000000, 32.407839],[1434326400000, 33.041085],[1436918400000, 33.867526],[1439596800000, 33.624361],[1442275200000, 33.279137],[1444867200000, 33.486148],[1447545600000, 35.474026],[1450137600000, 35.236197]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });