$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1420070400000,15.7686],[1420156800000,15.7686],[1420243200000,15.7686],[1420329600000,15.7686],[1420416000000,15.7686],[1420502400000,15.7686],[1420588800000,15.7796],[1420675200000,15.7796],[1420761600000,null],[1420848000000,15.7496],[1420934400000,15.7496],[1421020800000,15.7496],[1421107200000,15.758],[1421193600000,15.7679],[1421280000000,null],[1421366400000,15.7761],[1421452800000,15.798],[1421539200000,15.8764],[1421625600000,15.8764],[1421712000000,15.8077],[1421798400000,15.7722],[1421884800000,15.7848],[1421971200000,null],[1422057600000,15.792],[1422144000000,15.792],[1422230400000,15.792],[1422316800000,15.81],[1422403200000,15.8996],[1422489600000,15.8694],[1422576000000,15.9543],[1422662400000,16.1578],[1422748800000,16.1578],[1422835200000,16.1578],[1422921600000,16.147],[1423008000000,16.2414],[1423094400000,16.7289],[1423180800000,17.9998],[1423267200000,null],[1423353600000,23.1306],[1423440000000,23.1306],[1423526400000,24.9562],[1423612800000,24.8405],[1423699200000,25.5581],[1423785600000,25.0991],[1423872000000,25.9185],[1423958400000,25.9185],[1424044800000,25.9185],[1424131200000,26.0499],[1424217600000,26.3587],[1424304000000,26.7997],[1424390400000,27.358],[1424476800000,27.8585],[1424563200000,27.8585],[1424649600000,27.8585],[1424736000000,28.3481],[1424822400000,28.2912],[1424908800000,28.046],[1424995200000,30.0102],[1425081600000,27.7631],[1425168000000,27.7631],[1425254400000,27.7631],[1425340800000,26.8581],[1425427200000,24.8207],[1425513600000,23.7713],[1425600000000,23.0906],[1425686400000,22.897],[1425772800000,22.897],[1425859200000,22.897],[1425945600000,22.897],[1426032000000,21.7357],[1426118400000,21.5529],[1426204800000,21.5539],[1426291200000,21.6161],[1426377600000,21.6161],[1426464000000,21.6161],[1426550400000,21.7704],[1426636800000,22.2469],[1426723200000,23.2968],[1426809600000,23.394],[1426896000000,23.1906],[1426982400000,23.1906],[1427068800000,23.1906],[1427155200000,23.1499],[1427241600000,23.2878],[1427328000000,23.557],[1427414400000,23.5008],[1427500800000,23.513],[1427587200000,23.513],[1427673600000,23.513],[1427760000000,23.4426],[1427846400000,23.4514],[1427932800000,23.4819],[1428019200000,23.5095],[1428105600000,23.3048],[1428192000000,23.3048],[1428278400000,23.3048],[1428364800000,23.4475],[1428451200000,23.506],[1428537600000,23.5103],[1428624000000,23.4354],[1428710400000,22.882],[1428796800000,22.882],[1428883200000,22.882],[1428969600000,22.882],[1429056000000,22.9266],[1429142400000,21.783],[1429228800000,21.4459],[1429315200000,21.0577],[1429401600000,21.0577],[1429488000000,21.0577],[1429574400000,22.2544],[1429660800000,22.2762],[1429747200000,22.5422],[1429833600000,22.5311],[1429920000000,22.4516],[1430006400000,22.4516],[1430092800000,22.4516],[1430179200000,22.8986],[1430265600000,22.2624],[1430352000000,21.0468],[1430438400000,21.1324],[1430524800000,21.1324],[1430611200000,21.1324],[1430697600000,21.1324],[1430784000000,21.1324],[1430870400000,21.1331],[1430956800000,21.0255],[1431043200000,20.7225],[1431129600000,20.5899],[1431216000000,20.5899],[1431302400000,20.5899],[1431388800000,20.5899],[1431475200000,20.6376],[1431561600000,20.5708],[1431648000000,20.5693],[1431734400000,20.6982],[1431820800000,20.6982],[1431907200000,20.6982],[1431993600000,22.1187],[1432080000000,21.2526],[1432166400000,20.8127],[1432252800000,20.6788],[1432339200000,20.8369],[1432425600000,20.8369],[1432512000000,20.8369],[1432598400000,21.1337],[1432684800000,21.4235],[1432771200000,null],[1432857600000,21.0482],[1432944000000,21.0849],[1433030400000,21.0849],[1433116800000,21.0849],[1433203200000,21.0849],[1433289600000,21.0708],[1433376000000,21.006],[1433462400000,21.0137],[1433548800000,21.0258],[1433635200000,21.0258],[1433721600000,21.0258],[1433808000000,21.1024],[1433894400000,21.1693],[1433980800000,21.1533],[1434067200000,21.0275],[1434153600000,21.0588],[1434240000000,21.0588],[1434326400000,21.0588],[1434412800000,21.4488],[1434499200000,22.1477],[1434585600000,21.6502],[1434672000000,21.3292],[1434758400000,21.6354],[1434844800000,21.6354],[1434931200000,21.6354],[1435017600000,21.7687],[1435104000000,21.5257],[1435190400000,21.178],[1435276800000,21.1961],[1435363200000,21.0154],[1435449600000,21.0154],[1435536000000,21.0154],[1435622400000,21.0154],[1435708800000,21.0052],[1435795200000,21.0064],[1435881600000,21.0116],[1435968000000,21.0182],[1436054400000,21.0182],[1436140800000,21.0182],[1436227200000,21.2659],[1436313600000,21.7004],[1436400000000,21.9718],[1436486400000,21.8482],[1436572800000,21.9165],[1436659200000,21.9165],[1436745600000,21.9165],[1436832000000,21.9638],[1436918400000,21.9953],[1437004800000,22.1073],[1437091200000,21.9867],[1437177600000,22.0149],[1437264000000,22.0149],[1437350400000,22.0149],[1437436800000,22.0321],[1437523200000,22.0215],[1437609600000,22.0121],[1437696000000,22.0157],[1437782400000,22.0735],[1437868800000,22.0735],[1437955200000,22.0735],[1438041600000,22.0735],[1438128000000,22.0396],[1438214400000,22.0736],[1438300800000,21.6118],[1438387200000,21.1267],[1438473600000,21.1267],[1438560000000,21.1267],[1438646400000,21.7175],[1438732800000,21.7141],[1438819200000,21.5659],[1438905600000,21.4841],[1438992000000,21.0899],[1439078400000,21.0899],[1439164800000,21.0899],[1439251200000,21.263],[1439337600000,21.3715],[1439424000000,21.3854],[1439510400000,21.3962],[1439596800000,21.7577],[1439683200000,21.7577],[1439769600000,21.7577],[1439856000000,22.0188],[1439942400000,22.0874],[1440028800000,22.0662],[1440115200000,22.0308],[1440201600000,22.0955],[1440288000000,22.0955],[1440374400000,22.0955],[1440460800000,null],[1440547200000,22.6234],[1440633600000,21.4257],[1440720000000,21.3171],[1440806400000,21.1854],[1440892800000,21.1854],[1440979200000,21.1854],[1441065600000,21.8054],[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,21.8226],[1442534400000,null],[1442620800000,21.6394],[1442707200000,21.6394],[1442793600000,21.6394],[1442880000000,21.8551],[1442966400000,21.7386],[1443052800000,21.5751],[1443139200000,21.4645],[1443225600000,21.616],[1443312000000,21.616],[1443398400000,21.616],[1443484800000,21.5884],[1443571200000,21.5275],[1443657600000,21.2956],[1443744000000,21.1533],[1443830400000,21.1474],[1443916800000,21.1474],[1444003200000,21.1474],[1444089600000,21.2156],[1444176000000,21.264],[1444262400000,21.2702],[1444348800000,21.2993],[1444435200000,21.4962],[1444521600000,21.4962],[1444608000000,21.4962],[1444694400000,21.8177],[1444780800000,21.9328],[1444867200000,21.9328],[1444953600000,21.6906],[1445040000000,21.2977],[1445126400000,21.2977],[1445212800000,21.2977],[1445299200000,21.6175],[1445385600000,21.9889],[1445472000000,22.6093],[1445558400000,22.2806],[1445644800000,22.5747],[1445731200000,22.5747],[1445817600000,22.5747],[1445904000000,22.9059],[1445990400000,22.8633],[1446076800000,22.8865],[1446163200000,22.904],[1446249600000,22.9937],[1446336000000,22.9937],[1446422400000,22.9937],[1446508800000,23.0152],[1446595200000,23.0194],[1446681600000,23.0814],[1446768000000,22.9255],[1446854400000,22.649],[1446940800000,22.649],[1447027200000,22.649],[1447113600000,22.7549],[1447200000000,22.7613],[1447286400000,22.7569],[1447372800000,22.9172],[1447459200000,23.0598],[1447545600000,23.0598],[1447632000000,23.0598],[1447718400000,23.207],[1447804800000,23.7711],[1447891200000,23.9136],[1447977600000,23.8391],[1448064000000,23.9846],[1448150400000,23.9846],[1448236800000,23.9846],[1448323200000,24.0636],[1448409600000,23.9492],[1448496000000,23.7716],[1448582400000,23.5973],[1448668800000,23.8847],[1448755200000,23.8847],[1448841600000,23.8847],[1448928000000,23.9481],[1449014400000,23.8416],[1449100800000,23.6477],[1449187200000,23.0888],[1449273600000,23.6486],[1449360000000,23.6486],[1449446400000,23.6486],[1449532800000,23.4507],[1449619200000,22.9132],[1449705600000,22.8949],[1449792000000,23.3683],[1449878400000,23.8601],[1449964800000,23.8601],[1450051200000,23.8601],[1450137600000,23.8116],[1450224000000,23.4513],[1450310400000,23.5193],[1450396800000,23.4877],[1450483200000,23.5464],[1450569600000,23.5464],[1450656000000,23.5464],[1450742400000,23.5182],[1450828800000,23.1468],[1450915200000,22.9973],[1451001600000,22.9645],[1451088000000,23.1375],[1451174400000,23.1375],[1451260800000,23.1375],[1451347200000,23.8075],[1451433600000,23.7907]], 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, 15.810860],[1421280000000, 15.810860],[1423958400000, 24.314954],[1426377600000, 23.325901],[1429056000000, 22.609317],[1431648000000, 20.930776],[1434326400000, 21.239297],[1436918400000, 21.768124],[1439596800000, 21.574420],[1442275200000, 21.653098],[1444867200000, 21.853864],[1447545600000, 23.335535],[1450137600000, 23.491182]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });