$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1420070400000,1.00684],[1420156800000,1.00684],[1420243200000,1.00684],[1420329600000,1.00684],[1420416000000,1.00684],[1420502400000,1.00684],[1420588800000,1.00087],[1420675200000,1.00087],[1420761600000,null],[1420848000000,0.998972],[1420934400000,0.998972],[1421020800000,0.998972],[1421107200000,0.994947],[1421193600000,0.984202],[1421280000000,null],[1421366400000,0.957148],[1421452800000,0.94803],[1421539200000,0.947208],[1421625600000,0.947208],[1421712000000,0.937171],[1421798400000,0.92355],[1421884800000,0.915011],[1421971200000,null],[1422057600000,0.906672],[1422144000000,0.906672],[1422230400000,0.906672],[1422316800000,0.898571],[1422403200000,0.895383],[1422489600000,0.890666],[1422576000000,0.894066],[1422662400000,0.905022],[1422748800000,0.905022],[1422835200000,0.905022],[1422921600000,0.898318],[1423008000000,0.901406],[1423094400000,0.925677],[1423180800000,0.990674],[1423267200000,null],[1423353600000,1.26993],[1423440000000,1.26993],[1423526400000,1.36148],[1423612800000,1.34546],[1423699200000,1.37299],[1423785600000,1.34524],[1423872000000,1.37732],[1423958400000,1.37732],[1424044800000,1.37732],[1424131200000,1.37393],[1424217600000,1.34518],[1424304000000,1.27658],[1424390400000,1.31801],[1424476800000,1.38044],[1424563200000,1.38044],[1424649600000,1.38044],[1424736000000,1.45898],[1424822400000,1.54014],[1424908800000,1.57802],[1424995200000,1.66284],[1425081600000,1.47809],[1425168000000,1.47809],[1425254400000,1.47809],[1425340800000,1.45937],[1425427200000,1.35519],[1425513600000,1.28164],[1425600000000,1.2203],[1425686400000,1.20084],[1425772800000,1.20084],[1425859200000,1.20084],[1425945600000,1.20084],[1426032000000,1.14068],[1426118400000,1.14152],[1426204800000,1.1443],[1426291200000,1.16285],[1426377600000,1.16285],[1426464000000,1.16285],[1426550400000,1.17919],[1426636800000,1.21008],[1426723200000,1.27083],[1426809600000,1.27638],[1426896000000,1.26419],[1426982400000,1.26419],[1427068800000,1.26419],[1427155200000,1.25378],[1427241600000,1.25177],[1427328000000,1.25932],[1427414400000,1.25838],[1427500800000,1.26266],[1427587200000,1.26266],[1427673600000,1.26266],[1427760000000,1.26547],[1427846400000,1.27597],[1427932800000,1.28947],[1428019200000,1.3124],[1428105600000,1.32239],[1428192000000,1.32239],[1428278400000,1.32239],[1428364800000,1.33886],[1428451200000,1.34963],[1428537600000,1.32807],[1428624000000,1.32271],[1428710400000,1.29133],[1428796800000,1.29133],[1428883200000,1.29133],[1428969600000,1.29133],[1429056000000,1.29263],[1429142400000,1.22168],[1429228800000,1.19301],[1429315200000,1.16625],[1429401600000,1.16625],[1429488000000,1.16625],[1429574400000,1.23253],[1429660800000,1.22101],[1429747200000,1.22651],[1429833600000,1.21378],[1429920000000,1.20654],[1430006400000,1.20654],[1430092800000,1.20654],[1430179200000,1.22869],[1430265600000,1.20191],[1430352000000,1.15892],[1430438400000,1.16863],[1430524800000,1.16863],[1430611200000,1.16863],[1430697600000,1.16863],[1430784000000,1.16863],[1430870400000,1.15741],[1430956800000,1.15778],[1431043200000,1.14479],[1431129600000,1.14271],[1431216000000,1.14271],[1431302400000,1.14271],[1431388800000,1.14271],[1431475200000,1.15481],[1431561600000,1.15662],[1431648000000,1.16386],[1431734400000,1.16869],[1431820800000,1.16869],[1431907200000,1.16869],[1431993600000,1.24445],[1432080000000,1.19717],[1432166400000,1.17605],[1432252800000,1.16808],[1432339200000,1.16748],[1432425600000,1.16748],[1432512000000,1.16748],[1432598400000,1.1658],[1432684800000,1.1796],[1432771200000,null],[1432857600000,1.16543],[1432944000000,1.16734],[1433030400000,1.16734],[1433116800000,1.16734],[1433203200000,1.16734],[1433289600000,1.16471],[1433376000000,1.15776],[1433462400000,1.15319],[1433548800000,1.14878],[1433635200000,1.14878],[1433721600000,1.14878],[1433808000000,1.15348],[1433894400000,1.15902],[1433980800000,1.163],[1434067200000,1.15901],[1434153600000,1.16785],[1434240000000,1.16785],[1434326400000,1.16785],[1434412800000,1.1865],[1434499200000,1.22203],[1434585600000,1.18053],[1434672000000,1.1524],[1434758400000,1.15696],[1434844800000,1.15696],[1434931200000,1.15696],[1435017600000,1.14638],[1435104000000,1.13065],[1435190400000,1.11796],[1435276800000,1.12343],[1435363200000,1.12095],[1435449600000,1.12095],[1435536000000,1.12095],[1435622400000,1.12095],[1435708800000,1.12328],[1435795200000,1.11447],[1435881600000,1.10934],[1435968000000,1.10657],[1436054400000,1.10657],[1436140800000,1.10657],[1436227200000,1.11979],[1436313600000,1.14417],[1436400000000,1.15606],[1436486400000,1.14754],[1436572800000,1.15031],[1436659200000,1.15031],[1436745600000,1.15031],[1436832000000,1.15218],[1436918400000,1.16803],[1437004800000,1.16686],[1437091200000,1.16037],[1437177600000,1.15574],[1437264000000,1.15574],[1437350400000,1.15574],[1437436800000,1.1765],[1437523200000,1.15731],[1437609600000,1.15856],[1437696000000,1.15435],[1437782400000,1.15556],[1437868800000,1.15556],[1437955200000,1.15556],[1438041600000,1.15556],[1438128000000,1.18086],[1438214400000,1.17361],[1438300800000,1.15051],[1438387200000,1.12624],[1438473600000,1.12624],[1438560000000,1.12624],[1438646400000,1.1595],[1438732800000,1.15726],[1438819200000,1.14611],[1438905600000,1.13119],[1438992000000,1.10377],[1439078400000,1.10377],[1439164800000,1.10377],[1439251200000,1.1111],[1439337600000,1.11928],[1439424000000,1.12574],[1439510400000,1.12964],[1439596800000,1.14869],[1439683200000,1.14869],[1439769600000,1.14869],[1439856000000,1.16353],[1439942400000,1.16542],[1440028800000,1.16455],[1440115200000,1.15825],[1440201600000,1.16268],[1440288000000,1.16268],[1440374400000,1.16268],[1440460800000,null],[1440547200000,1.18673],[1440633600000,1.12125],[1440720000000,1.11557],[1440806400000,1.10868],[1440892800000,1.10868],[1440979200000,1.10868],[1441065600000,1.14112],[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,1.11427],[1442534400000,null],[1442620800000,1.08937],[1442707200000,1.08937],[1442793600000,1.08937],[1442880000000,1.09042],[1442966400000,1.09162],[1443052800000,1.08306],[1443139200000,1.07062],[1443225600000,1.07082],[1443312000000,1.07082],[1443398400000,1.07082],[1443484800000,1.07094],[1443571200000,1.06756],[1443657600000,1.05905],[1443744000000,1.05307],[1443830400000,1.05425],[1443916800000,1.05425],[1444003200000,1.05425],[1444089600000,1.05523],[1444176000000,1.05756],[1444262400000,1.05876],[1444348800000,1.06173],[1444435200000,1.07626],[1444521600000,1.07626],[1444608000000,1.07626],[1444694400000,1.09779],[1444780800000,1.10929],[1444867200000,1.10929],[1444953600000,1.10396],[1445040000000,1.08246],[1445126400000,1.08246],[1445212800000,1.08246],[1445299200000,1.0983],[1445385600000,1.11699],[1445472000000,1.14427],[1445558400000,1.12253],[1445644800000,1.1342],[1445731200000,1.1342],[1445817600000,1.1342],[1445904000000,1.14799],[1445990400000,1.14351],[1446076800000,1.1449],[1446163200000,1.14624],[1446249600000,1.14774],[1446336000000,1.14774],[1446422400000,1.14774],[1446508800000,1.14591],[1446595200000,1.14656],[1446681600000,1.15228],[1446768000000,1.14724],[1446854400000,1.13493],[1446940800000,1.13493],[1447027200000,1.13493],[1447113600000,1.1402],[1447200000000,1.14154],[1447286400000,1.14172],[1447372800000,1.14991],[1447459200000,1.15895],[1447545600000,1.15895],[1447632000000,1.15895],[1447718400000,1.16734],[1447804800000,1.19733],[1447891200000,1.20458],[1447977600000,1.19629],[1448064000000,1.20092],[1448150400000,1.20092],[1448236800000,1.20092],[1448323200000,1.2019],[1448409600000,1.19552],[1448496000000,1.18142],[1448582400000,1.17104],[1448668800000,1.18607],[1448755200000,1.18607],[1448841600000,1.18607],[1448928000000,1.19093],[1449014400000,1.19089],[1449100800000,1.18356],[1449187200000,1.15508],[1449273600000,1.18133],[1449360000000,1.18133],[1449446400000,1.18133],[1449532800000,1.17034],[1449619200000,1.14381],[1449705600000,1.14418],[1449792000000,1.16826],[1449878400000,1.1948],[1449964800000,1.1948],[1450051200000,1.1948],[1450137600000,1.1975],[1450224000000,1.18176],[1450310400000,1.18975],[1450396800000,1.19223],[1450483200000,1.20062],[1450569600000,1.20062],[1450656000000,1.20062],[1450742400000,1.20067],[1450828800000,1.17997],[1450915200000,1.16886],[1451001600000,1.16366],[1451088000000,1.17243],[1451174400000,1.17243],[1451260800000,1.17243],[1451347200000,1.20416],[1451433600000,1.20626]], 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.957067],[1421280000000, 0.957067],[1423958400000, 1.288748],[1426377600000, 1.251511],[1429056000000, 1.255289],[1431648000000, 1.166300],[1434326400000, 1.153642],[1436918400000, 1.147544],[1439596800000, 1.136843],[1442275200000, 1.086442],[1444867200000, 1.097409],[1447545600000, 1.167295],[1450137600000, 1.183848]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });