$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1420070400000,0.30304],[1420156800000,0.30304],[1420243200000,0.30304],[1420329600000,0.30304],[1420416000000,0.30304],[1420502400000,0.30304],[1420588800000,0.28059],[1420675200000,0.28059],[1420761600000,null],[1420848000000,0.28005],[1420934400000,0.28005],[1421020800000,0.28005],[1421107200000,0.2802],[1421193600000,0.25134],[1421280000000,null],[1421366400000,0.23868],[1421452800000,0.24367],[1421539200000,0.2436],[1421625600000,0.2436],[1421712000000,0.24255],[1421798400000,0.24275],[1421884800000,0.24289],[1421971200000,null],[1422057600000,0.24147],[1422144000000,0.24147],[1422230400000,0.24147],[1422316800000,0.2494],[1422403200000,0.2424],[1422489600000,0.23401],[1422576000000,0.23759],[1422662400000,0.23509],[1422748800000,0.23509],[1422835200000,0.23509],[1422921600000,0.23426],[1423008000000,0.23314],[1423094400000,0.24684],[1423180800000,0.27503],[1423267200000,null],[1423353600000,0.33712],[1423440000000,0.33712],[1423526400000,0.37788],[1423612800000,0.37762],[1423699200000,0.39052],[1423785600000,0.37995],[1423872000000,0.39211],[1423958400000,0.39211],[1424044800000,0.39211],[1424131200000,0.40024],[1424217600000,0.42064],[1424304000000,0.42651],[1424390400000,0.43843],[1424476800000,0.44839],[1424563200000,0.44839],[1424649600000,0.44839],[1424736000000,0.45928],[1424822400000,0.45835],[1424908800000,0.44161],[1424995200000,0.47947],[1425081600000,0.4573],[1425168000000,0.4573],[1425254400000,0.4573],[1425340800000,0.43834],[1425427200000,0.39889],[1425513600000,0.38116],[1425600000000,0.37318],[1425686400000,0.37023],[1425772800000,0.37023],[1425859200000,0.37023],[1425945600000,0.37023],[1426032000000,0.3623],[1426118400000,0.35528],[1426204800000,0.34387],[1426291200000,0.3546],[1426377600000,0.3546],[1426464000000,0.3546],[1426550400000,0.35505],[1426636800000,0.35796],[1426723200000,0.37727],[1426809600000,0.38133],[1426896000000,0.3876],[1426982400000,0.3876],[1427068800000,0.3876],[1427155200000,0.38561],[1427241600000,0.39175],[1427328000000,0.40083],[1427414400000,0.40951],[1427500800000,0.4167],[1427587200000,0.4167],[1427673600000,0.4167],[1427760000000,0.40609],[1427846400000,0.40679],[1427932800000,0.40241],[1428019200000,0.41252],[1428105600000,0.41063],[1428192000000,0.41063],[1428278400000,0.41063],[1428364800000,0.41488],[1428451200000,0.42481],[1428537600000,0.43516],[1428624000000,0.44603],[1428710400000,0.44807],[1428796800000,0.44807],[1428883200000,0.44807],[1428969600000,0.44807],[1429056000000,0.44111],[1429142400000,0.43132],[1429228800000,0.43172],[1429315200000,0.41674],[1429401600000,0.41674],[1429488000000,0.41674],[1429574400000,0.43195],[1429660800000,0.41273],[1429747200000,0.42013],[1429833600000,0.43664],[1429920000000,0.44682],[1430006400000,0.44682],[1430092800000,0.44682],[1430179200000,0.4449],[1430265600000,0.42563],[1430352000000,0.40707],[1430438400000,0.41324],[1430524800000,0.41324],[1430611200000,0.41324],[1430697600000,0.41324],[1430784000000,0.41324],[1430870400000,0.40831],[1430956800000,0.42066],[1431043200000,0.41147],[1431129600000,0.4057],[1431216000000,0.4057],[1431302400000,0.4057],[1431388800000,0.4057],[1431475200000,0.40534],[1431561600000,0.41526],[1431648000000,0.41075],[1431734400000,0.41387],[1431820800000,0.41387],[1431907200000,0.41387],[1431993600000,0.44941],[1432080000000,0.43216],[1432166400000,0.41799],[1432252800000,0.41424],[1432339200000,0.41849],[1432425600000,0.41849],[1432512000000,0.41849],[1432598400000,0.42385],[1432684800000,0.42573],[1432771200000,null],[1432857600000,0.40252],[1432944000000,0.39804],[1433030400000,0.39804],[1433116800000,0.39804],[1433203200000,0.39804],[1433289600000,0.39428],[1433376000000,0.3959],[1433462400000,0.38213],[1433548800000,0.37382],[1433635200000,0.37382],[1433721600000,0.37382],[1433808000000,0.37654],[1433894400000,0.37863],[1433980800000,0.38586],[1434067200000,0.38562],[1434153600000,0.3862],[1434240000000,0.3862],[1434326400000,0.3862],[1434412800000,0.38809],[1434499200000,0.40983],[1434585600000,0.40167],[1434672000000,0.39995],[1434758400000,0.40214],[1434844800000,0.40214],[1434931200000,0.40214],[1435017600000,0.40646],[1435104000000,0.39709],[1435190400000,0.39164],[1435276800000,0.38819],[1435363200000,0.3834],[1435449600000,0.3834],[1435536000000,0.3834],[1435622400000,0.3834],[1435708800000,0.37616],[1435795200000,0.37866],[1435881600000,0.37753],[1435968000000,0.37799],[1436054400000,0.37799],[1436140800000,0.37799],[1436227200000,0.37698],[1436313600000,0.37925],[1436400000000,0.384],[1436486400000,0.38343],[1436572800000,0.38675],[1436659200000,0.38675],[1436745600000,0.38675],[1436832000000,0.388],[1436918400000,0.38604],[1437004800000,0.39015],[1437091200000,0.38607],[1437177600000,0.3873],[1437264000000,0.3873],[1437350400000,0.3873],[1437436800000,0.38766],[1437523200000,0.38632],[1437609600000,0.38602],[1437696000000,0.38383],[1437782400000,0.38033],[1437868800000,0.38033],[1437955200000,0.38033],[1438041600000,0.38033],[1438128000000,0.36597],[1438214400000,0.36933],[1438300800000,0.36636],[1438387200000,0.35009],[1438473600000,0.35009],[1438560000000,0.35009],[1438646400000,0.34766],[1438732800000,0.34512],[1438819200000,0.34385],[1438905600000,0.3364],[1438992000000,0.33036],[1439078400000,0.33036],[1439164800000,0.33036],[1439251200000,0.32967],[1439337600000,0.33811],[1439424000000,0.32892],[1439510400000,0.33432],[1439596800000,0.33506],[1439683200000,0.33506],[1439769600000,0.33506],[1439856000000,0.33615],[1439942400000,0.33553],[1440028800000,0.33575],[1440115200000,0.32901],[1440201600000,0.32435],[1440288000000,0.32435],[1440374400000,0.32435],[1440460800000,null],[1440547200000,0.32344],[1440633600000,0.30911],[1440720000000,0.31606],[1440806400000,0.31868],[1440892800000,0.31868],[1440979200000,0.31868],[1441065600000,0.32684],[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,0.33101],[1442534400000,null],[1442620800000,0.32965],[1442707200000,0.32965],[1442793600000,0.32965],[1442880000000,0.33041],[1442966400000,0.3285],[1443052800000,0.32669],[1443139200000,0.3227],[1443225600000,0.32915],[1443312000000,0.32915],[1443398400000,0.32915],[1443484800000,0.32936],[1443571200000,0.32501],[1443657600000,0.32396],[1443744000000,0.32527],[1443830400000,0.3207],[1443916800000,0.3207],[1444003200000,0.3207],[1444089600000,0.32329],[1444176000000,0.32666],[1444262400000,0.3392],[1444348800000,0.34191],[1444435200000,0.35069],[1444521600000,0.35069],[1444608000000,0.35069],[1444694400000,0.35677],[1444780800000,0.35248],[1444867200000,0.35248],[1444953600000,0.34848],[1445040000000,0.3471],[1445126400000,0.3471],[1445212800000,0.3471],[1445299200000,0.35184],[1445385600000,0.35374],[1445472000000,0.36099],[1445558400000,0.35485],[1445644800000,0.36453],[1445731200000,0.36453],[1445817600000,0.36453],[1445904000000,0.36647],[1445990400000,0.36005],[1446076800000,0.3504],[1446163200000,0.35693],[1446249600000,0.35719],[1446336000000,0.35719],[1446422400000,0.35719],[1446508800000,0.36074],[1446595200000,0.36051],[1446681600000,0.36148],[1446768000000,0.36161],[1446854400000,0.35565],[1446940800000,0.35565],[1447027200000,0.35565],[1447113600000,0.35191],[1447200000000,0.35349],[1447286400000,0.35244],[1447372800000,0.35013],[1447459200000,0.34606],[1447545600000,0.34606],[1447632000000,0.34606],[1447718400000,0.34918],[1447804800000,0.36303],[1447891200000,0.36916],[1447977600000,0.36725],[1448064000000,0.36975],[1448150400000,0.36975],[1448236800000,0.36975],[1448323200000,0.36684],[1448409600000,0.36496],[1448496000000,0.36304],[1448582400000,0.35926],[1448668800000,0.36058],[1448755200000,0.36058],[1448841600000,0.36058],[1448928000000,0.35884],[1449014400000,0.35983],[1449100800000,0.35432],[1449187200000,0.3407],[1449273600000,0.34947],[1449360000000,0.34947],[1449446400000,0.34947],[1449532800000,0.34227],[1449619200000,0.33063],[1449705600000,0.33085],[1449792000000,0.33762],[1449878400000,0.34492],[1449964800000,0.34492],[1450051200000,0.34492],[1450137600000,0.33908],[1450224000000,0.3311],[1450310400000,0.33407],[1450396800000,0.33278],[1450483200000,0.33014],[1450569600000,0.33014],[1450656000000,0.33014],[1450742400000,0.33005],[1450828800000,0.32546],[1450915200000,0.32421],[1451001600000,0.33035],[1451088000000,0.32927],[1451174400000,0.32927],[1451260800000,0.32927],[1451347200000,0.33633],[1451433600000,0.32812]], 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, 0.263277],[1421280000000, 0.263277],[1423958400000, 0.376407],[1426377600000, 0.386795],[1429056000000, 0.428022],[1431648000000, 0.413995],[1434326400000, 0.389935],[1436918400000, 0.381587],[1439596800000, 0.332157],[1442275200000, 0.328351],[1444867200000, 0.346839],[1447545600000, 0.358851],[1450137600000, 0.337333]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });