$(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: [[1483228800000,0.45113],[1483315200000,0.45113],[1483401600000,0.45113],[1483488000000,0.45113],[1483574400000,0.44005],[1483660800000,0.44005],[1483747200000,0.44547],[1483833600000,0.44547],[1483920000000,0.44547],[1484006400000,0.44547],[1484092800000,0.45347],[1484179200000,0.45067],[1484265600000,0.45803],[1484352000000,null],[1484438400000,0.46605],[1484524800000,0.46605],[1484611200000,0.46507],[1484697600000,0.46514],[1484784000000,0.46452],[1484870400000,0.46236],[1484956800000,0.45967],[1485043200000,0.45967],[1485129600000,0.45967],[1485216000000,0.45934],[1485302400000,0.45987],[1485388800000,0.45999],[1485475200000,0.45632],[1485561600000,0.4508],[1485648000000,0.4508],[1485734400000,0.4508],[1485820800000,0.45077],[1485907200000,0.45069],[1485993600000,0.44766],[1486080000000,0.44989],[1486166400000,0.45652],[1486252800000,0.45652],[1486339200000,0.45652],[1486425600000,0.46435],[1486512000000,0.45667],[1486598400000,0.45221],[1486684800000,0.45787],[1486771200000,0.46234],[1486857600000,0.46234],[1486944000000,0.46234],[1487030400000,0.46786],[1487116800000,0.47161],[1487203200000,0.47547],[1487289600000,0.47224],[1487376000000,0.46893],[1487462400000,0.46893],[1487548800000,0.46893],[1487635200000,0.46518],[1487721600000,0.46739],[1487808000000,0.46929],[1487894400000,0.46813],[1487980800000,0.46935],[1488067200000,0.46935],[1488153600000,0.46935],[1488240000000,0.46695],[1488326400000,0.46864],[1488412800000,0.4656],[1488499200000,0.46384],[1488585600000,0.46035],[1488672000000,0.46035],[1488758400000,0.46035],[1488844800000,0.46319],[1488931200000,0.46272],[1489017600000,0.46272],[1489104000000,0.45738],[1489190400000,0.45274],[1489276800000,0.45274],[1489363200000,0.45274],[1489449600000,0.45482],[1489536000000,0.45636],[1489622400000,0.45474],[1489708800000,0.46321],[1489795200000,0.46448],[1489881600000,0.46448],[1489968000000,0.46448],[1490054400000,0.46937],[1490140800000,0.46916],[1490227200000,0.46707],[1490313600000,0.47038],[1490400000000,0.47235],[1490486400000,0.47235],[1490572800000,0.47235],[1490659200000,0.47618],[1490745600000,0.47633],[1490832000000,0.47419],[1490918400000,0.47849],[1491004800000,0.48287],[1491091200000,0.48287],[1491177600000,0.48287],[1491264000000,0.48138],[1491350400000,0.47951],[1491436800000,0.48587],[1491523200000,0.48019],[1491609600000,0.47389],[1491696000000,0.47389],[1491782400000,0.47389],[1491868800000,0.46931],[1491955200000,0.47219],[1492041600000,0.47353],[1492128000000,0.47462],[1492214400000,0.47628],[1492300800000,0.47628],[1492387200000,0.47628],[1492473600000,0.47628],[1492560000000,0.47955],[1492646400000,0.47685],[1492732800000,0.47427],[1492819200000,0.47541],[1492905600000,0.47541],[1492992000000,0.47541],[1493078400000,0.47564],[1493164800000,0.47689],[1493251200000,0.47216],[1493337600000,0.46605],[1493424000000,0.46611],[1493510400000,0.46611],[1493596800000,0.46611],[1493683200000,0.46611],[1493769600000,0.46611],[1493856000000,0.46457],[1493942400000,0.46005],[1494028800000,0.45286],[1494115200000,0.45286],[1494201600000,0.45286],[1494288000000,0.45286],[1494374400000,0.45286],[1494460800000,0.45549],[1494547200000,0.46272],[1494633600000,0.46313],[1494720000000,0.46313],[1494806400000,0.46313],[1494892800000,0.46832],[1494979200000,0.46984],[1495065600000,0.4656],[1495152000000,0.45927],[1495238400000,0.46133],[1495324800000,0.46133],[1495411200000,0.46133],[1495497600000,0.46624],[1495584000000,0.46511],[1495670400000,0.46675],[1495756800000,0.46864],[1495843200000,0.46419],[1495929600000,0.46419],[1496016000000,0.46419],[1496102400000,0.46531],[1496188800000,0.46628],[1496275200000,0.46413],[1496361600000,0.46467],[1496448000000,0.46361],[1496534400000,0.46361],[1496620800000,0.46361],[1496707200000,0.46361],[1496793600000,0.46311],[1496880000000,0.46309],[1496966400000,0.45887],[1497052800000,0.45831],[1497139200000,0.45831],[1497225600000,0.45831],[1497312000000,0.45736],[1497398400000,0.45678],[1497484800000,0.45616],[1497571200000,0.45274],[1497657600000,0.45067],[1497744000000,0.45067],[1497830400000,0.45067],[1497916800000,0.449],[1498003200000,0.44444],[1498089600000,0.43373],[1498176000000,0.43269],[1498262400000,0.43635],[1498348800000,0.43635],[1498435200000,0.43635],[1498521600000,0.44129],[1498608000000,0.4429],[1498694400000,0.4429],[1498780800000,0.44172],[1498867200000,0.43821],[1498953600000,0.43821],[1499040000000,0.43821],[1499126400000,0.44081],[1499212800000,0.43926],[1499299200000,0.4384],[1499385600000,0.43259],[1499472000000,0.43099],[1499558400000,0.43099],[1499644800000,0.43099],[1499731200000,0.43124],[1499817600000,0.4276],[1499904000000,0.42741],[1499990400000,0.43149],[1500076800000,0.43449],[1500163200000,0.43449],[1500249600000,0.43449],[1500336000000,0.43959],[1500422400000,0.43675],[1500508800000,0.43794],[1500595200000,0.43885],[1500681600000,0.43931],[1500768000000,0.43931],[1500854400000,0.43931],[1500940800000,0.43285],[1501027200000,0.43204],[1501113600000,0.43206],[1501200000000,0.43596],[1501286400000,0.43524],[1501372800000,0.43524],[1501459200000,0.43524],[1501545600000,0.43046],[1501632000000,0.43206],[1501718400000,0.42759],[1501804800000,0.4261],[1501891200000,0.42837],[1501977600000,0.42837],[1502064000000,0.42837],[1502150400000,0.42932],[1502236800000,0.42896],[1502323200000,0.42902],[1502409600000,0.42871],[1502496000000,0.42693],[1502582400000,0.42693],[1502668800000,0.42693],[1502755200000,0.42861],[1502841600000,0.42716],[1502928000000,0.4287],[1503014400000,0.4305],[1503100800000,0.42941],[1503187200000,0.42941],[1503273600000,0.42941],[1503360000000,null],[1503446400000,0.4311],[1503532800000,0.43202],[1503619200000,0.43202],[1503705600000,0.43202],[1503792000000,0.43202],[1503878400000,0.43202],[1503964800000,0.43582],[1504051200000,0.43464],[1504137600000,0.43554],[1504224000000,0.43887],[1504310400000,0.44351],[1504396800000,0.44351],[1504483200000,0.44351],[1504569600000,0.44835],[1504656000000,0.44865],[1504742400000,0.45314],[1504828800000,0.45507],[1504915200000,0.45745],[1505001600000,0.45745],[1505088000000,0.45745],[1505174400000,0.45494],[1505260800000,0.45436],[1505347200000,0.45224],[1505433600000,0.45286],[1505520000000,0.45581],[1505606400000,0.45581],[1505692800000,0.45581],[1505779200000,0.45433],[1505865600000,0.44969],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,0.45393],[1506729600000,0.45812],[1506816000000,0.45812],[1506902400000,0.45812],[1506988800000,0.46105],[1507075200000,0.46091],[1507161600000,0.46396],[1507248000000,0.46543],[1507334400000,0.46294],[1507420800000,0.46294],[1507507200000,0.46294],[1507593600000,0.45531],[1507680000000,0.45782],[1507766400000,0.45809],[1507852800000,0.46171],[1507939200000,0.46171],[1508025600000,0.46171],[1508112000000,0.46171],[1508198400000,0.46171],[1508284800000,0.46189],[1508371200000,0.4614],[1508457600000,0.4603],[1508544000000,0.46145],[1508630400000,0.46145],[1508716800000,0.46145],[1508803200000,null],[1508889600000,0.46314],[1508976000000,0.46464],[1509062400000,0.46442],[1509148800000,0.46271],[1509235200000,0.46271],[1509321600000,0.46271],[1509408000000,0.4636],[1509494400000,0.4622],[1509580800000,0.46218],[1509667200000,0.46364],[1509753600000,0.46146],[1509840000000,0.46146],[1509926400000,0.46146],[1510012800000,0.45953],[1510099200000,0.45763],[1510185600000,0.44957],[1510272000000,0.44823],[1510358400000,0.44731],[1510444800000,0.44731],[1510531200000,0.44731],[1510617600000,0.44757],[1510704000000,0.44442],[1510790400000,0.43955],[1510876800000,0.44135],[1510963200000,0.44437],[1511049600000,0.44437],[1511136000000,0.44437],[1511222400000,0.44669],[1511308800000,0.44554],[1511395200000,0.45161],[1511481600000,0.45947],[1511568000000,0.45981],[1511654400000,0.45981],[1511740800000,0.45981],[1511827200000,0.46048],[1511913600000,0.46004],[1512000000000,0.46311],[1512086400000,0.46356],[1512172800000,0.46232],[1512259200000,0.46232],[1512345600000,0.46232],[1512432000000,0.46135],[1512518400000,0.46283],[1512604800000,0.46004],[1512691200000,0.45736],[1512777600000,0.4573],[1512864000000,0.4573],[1512950400000,0.4573],[1513036800000,0.4581],[1513123200000,0.46191],[1513209600000,0.46103],[1513296000000,0.46689],[1513382400000,0.4692],[1513468800000,0.4692],[1513555200000,0.4692],[1513641600000,0.4749],[1513728000000,0.47575],[1513814400000,0.47449],[1513900800000,0.47569],[1513987200000,0.47931],[1514073600000,0.47931],[1514160000000,0.47931],[1514246400000,0.47931],[1514332800000,0.48402],[1514419200000,0.48645],[1514505600000,0.48703],[1514592000000,0.48703]], 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: [[1484438400000, 0.454519],[1484438400000, 0.454519],[1487116800000, 0.463389],[1489536000000, 0.464650],[1492214400000, 0.475729],[1494806400000, 0.462347],[1497484800000, 0.451867],[1500076800000, 0.435147],[1502755200000, 0.429951],[1505433600000, 0.452039],[1508025600000, 0.461602],[1510704000000, 0.453389],[1513296000000, 0.469973]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });