$(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: [[1483228800000,1.36081],[1483315200000,1.36081],[1483401600000,1.36081],[1483488000000,1.36081],[1483574400000,1.32594],[1483660800000,1.32594],[1483747200000,1.33868],[1483833600000,1.33868],[1483920000000,1.33868],[1484006400000,1.33868],[1484092800000,1.34885],[1484179200000,1.34573],[1484265600000,1.35076],[1484352000000,null],[1484438400000,1.37105],[1484524800000,1.37105],[1484611200000,1.3737],[1484697600000,1.37081],[1484784000000,1.36396],[1484870400000,1.36226],[1484956800000,1.36018],[1485043200000,1.36018],[1485129600000,1.36018],[1485216000000,1.35673],[1485302400000,1.35167],[1485388800000,1.35284],[1485475200000,1.35329],[1485561600000,1.35521],[1485648000000,1.35521],[1485734400000,1.35521],[1485820800000,1.35329],[1485907200000,1.35316],[1485993600000,1.35156],[1486080000000,1.35406],[1486166400000,1.35883],[1486252800000,1.35883],[1486339200000,1.35883],[1486425600000,1.36929],[1486512000000,1.35964],[1486598400000,1.35261],[1486684800000,1.35608],[1486771200000,1.36139],[1486857600000,1.36139],[1486944000000,1.36139],[1487030400000,1.35806],[1487116800000,1.36007],[1487203200000,1.34751],[1487289600000,1.34548],[1487376000000,1.34891],[1487462400000,1.34891],[1487548800000,1.34891],[1487635200000,1.35177],[1487721600000,1.35198],[1487808000000,1.34889],[1487894400000,1.34237],[1487980800000,1.34579],[1488067200000,1.34579],[1488153600000,1.34579],[1488240000000,1.35275],[1488326400000,1.35944],[1488412800000,1.36199],[1488499200000,1.36018],[1488585600000,1.36186],[1488672000000,1.36186],[1488758400000,1.36186],[1488844800000,1.35941],[1488931200000,1.35733],[1489017600000,1.35733],[1489104000000,1.35533],[1489190400000,1.35039],[1489276800000,1.35039],[1489363200000,1.35039],[1489449600000,1.35599],[1489536000000,1.35902],[1489622400000,1.35813],[1489708800000,1.36371],[1489795200000,1.36513],[1489881600000,1.36513],[1489968000000,1.36513],[1490054400000,1.36597],[1490140800000,1.36632],[1490227200000,1.37242],[1490313600000,1.38529],[1490400000000,1.38642],[1490486400000,1.38642],[1490572800000,1.38642],[1490659200000,1.39035],[1490745600000,1.38955],[1490832000000,1.38867],[1490918400000,1.38483],[1491004800000,1.38891],[1491091200000,1.38891],[1491177600000,1.38891],[1491264000000,1.38846],[1491350400000,1.3936],[1491436800000,1.39644],[1491523200000,1.39571],[1491609600000,1.39059],[1491696000000,1.39059],[1491782400000,1.39059],[1491868800000,1.38966],[1491955200000,1.38807],[1492041600000,1.38804],[1492128000000,1.38996],[1492214400000,1.38883],[1492300800000,1.38883],[1492387200000,1.38883],[1492473600000,1.38883],[1492560000000,1.39204],[1492646400000,1.38921],[1492732800000,1.38757],[1492819200000,1.38633],[1492905600000,1.38633],[1492992000000,1.38633],[1493078400000,1.38156],[1493164800000,1.37718],[1493251200000,1.37778],[1493337600000,1.37882],[1493424000000,1.38248],[1493510400000,1.38248],[1493596800000,1.38248],[1493683200000,1.38248],[1493769600000,1.38248],[1493856000000,1.38611],[1493942400000,1.39063],[1494028800000,1.39781],[1494115200000,1.39781],[1494201600000,1.39781],[1494288000000,1.39781],[1494374400000,1.39781],[1494460800000,1.40528],[1494547200000,1.41013],[1494633600000,1.41255],[1494720000000,1.41255],[1494806400000,1.41255],[1494892800000,1.41989],[1494979200000,1.42156],[1495065600000,1.42654],[1495152000000,1.42962],[1495238400000,1.43245],[1495324800000,1.43245],[1495411200000,1.43245],[1495497600000,1.43619],[1495584000000,1.43522],[1495670400000,1.43544],[1495756800000,1.4389],[1495843200000,1.44357],[1495929600000,1.44357],[1496016000000,1.44357],[1496102400000,1.44665],[1496188800000,1.44625],[1496275200000,1.44392],[1496361600000,1.44044],[1496448000000,1.43944],[1496534400000,1.43944],[1496620800000,1.43944],[1496707200000,1.43944],[1496793600000,1.43908],[1496880000000,1.43541],[1496966400000,1.43576],[1497052800000,1.4347],[1497139200000,1.4347],[1497225600000,1.4347],[1497312000000,1.4319],[1497398400000,1.42855],[1497484800000,1.42895],[1497571200000,1.42819],[1497657600000,1.42706],[1497744000000,1.42706],[1497830400000,1.42706],[1497916800000,1.427],[1498003200000,1.42596],[1498089600000,1.42388],[1498176000000,1.42242],[1498262400000,1.42184],[1498348800000,1.42184],[1498435200000,1.42184],[1498521600000,1.42216],[1498608000000,1.42808],[1498694400000,1.42808],[1498780800000,1.43761],[1498867200000,1.43284],[1498953600000,1.43284],[1499040000000,1.43284],[1499126400000,1.43244],[1499212800000,1.43399],[1499299200000,1.44016],[1499385600000,1.43529],[1499472000000,1.43401],[1499558400000,1.43401],[1499644800000,1.43401],[1499731200000,1.43114],[1499817600000,1.43164],[1499904000000,1.42712],[1499990400000,1.43039],[1500076800000,1.43295],[1500163200000,1.43295],[1500249600000,1.43295],[1500336000000,1.43147],[1500422400000,1.42904],[1500508800000,1.42868],[1500595200000,1.43008],[1500681600000,1.42861],[1500768000000,1.42861],[1500854400000,1.42861],[1500940800000,1.42466],[1501027200000,1.42529],[1501113600000,1.42748],[1501200000000,1.42914],[1501286400000,1.43204],[1501372800000,1.43204],[1501459200000,1.43204],[1501545600000,1.42919],[1501632000000,1.42999],[1501718400000,1.43792],[1501804800000,1.43851],[1501891200000,1.43914],[1501977600000,1.43914],[1502064000000,1.43914],[1502150400000,1.43636],[1502236800000,1.43752],[1502323200000,1.43489],[1502409600000,1.43417],[1502496000000,1.43667],[1502582400000,1.43667],[1502668800000,1.43667],[1502755200000,1.43125],[1502841600000,1.4327],[1502928000000,1.43219],[1503014400000,1.42945],[1503100800000,1.42855],[1503187200000,1.42855],[1503273600000,1.42855],[1503360000000,null],[1503446400000,1.4239],[1503532800000,1.42856],[1503619200000,1.42856],[1503705600000,1.42856],[1503792000000,1.42856],[1503878400000,1.42856],[1503964800000,1.4263],[1504051200000,1.4249],[1504137600000,1.43268],[1504224000000,1.44075],[1504310400000,1.44633],[1504396800000,1.44633],[1504483200000,1.44633],[1504569600000,1.45578],[1504656000000,1.46145],[1504742400000,1.46257],[1504828800000,1.46636],[1504915200000,1.4693],[1505001600000,1.4693],[1505088000000,1.4693],[1505174400000,1.46671],[1505260800000,1.4707],[1505347200000,1.47469],[1505433600000,1.48161],[1505520000000,1.48507],[1505606400000,1.48507],[1505692800000,1.48507],[1505779200000,1.48448],[1505865600000,1.48039],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,1.50588],[1506729600000,1.50915],[1506816000000,1.50915],[1506902400000,1.50915],[1506988800000,1.51417],[1507075200000,1.51842],[1507161600000,1.52527],[1507248000000,1.52657],[1507334400000,1.52509],[1507420800000,1.52509],[1507507200000,1.52509],[1507593600000,1.51495],[1507680000000,1.51995],[1507766400000,1.51721],[1507852800000,1.52653],[1507939200000,1.52653],[1508025600000,1.52653],[1508112000000,1.52653],[1508198400000,1.52653],[1508284800000,1.52445],[1508371200000,1.52175],[1508457600000,1.52837],[1508544000000,1.53149],[1508630400000,1.53149],[1508716800000,1.53149],[1508803200000,null],[1508889600000,1.53964],[1508976000000,1.54703],[1509062400000,1.55067],[1509148800000,1.55601],[1509235200000,1.55601],[1509321600000,1.55601],[1509408000000,1.5492],[1509494400000,1.54706],[1509580800000,1.54295],[1509667200000,1.54244],[1509753600000,1.54366],[1509840000000,1.54366],[1509926400000,1.54366],[1510012800000,1.53669],[1510099200000,1.53069],[1510185600000,1.52013],[1510272000000,1.5129],[1510358400000,1.50625],[1510444800000,1.50625],[1510531200000,1.50625],[1510617600000,1.50015],[1510704000000,1.49928],[1510790400000,1.49965],[1510876800000,1.50072],[1510963200000,1.50395],[1511049600000,1.50395],[1511136000000,1.50395],[1511222400000,1.5075],[1511308800000,1.51471],[1511395200000,1.52657],[1511481600000,1.54334],[1511568000000,1.5533],[1511654400000,1.5533],[1511740800000,1.5533],[1511827200000,1.55386],[1511913600000,1.56045],[1512000000000,1.5721],[1512086400000,1.58138],[1512172800000,1.57532],[1512259200000,1.57532],[1512345600000,1.57532],[1512432000000,1.58448],[1512518400000,1.58137],[1512604800000,1.57738],[1512691200000,1.57442],[1512777600000,1.57074],[1512864000000,1.57074],[1512950400000,1.57074],[1513036800000,1.56908],[1513123200000,1.57299],[1513209600000,1.58099],[1513296000000,1.59149],[1513382400000,1.6107],[1513468800000,1.6107],[1513555200000,1.6107],[1513641600000,1.6281],[1513728000000,1.62822],[1513814400000,1.62561],[1513900800000,1.62138],[1513987200000,1.62636],[1514073600000,1.62636],[1514160000000,1.62636],[1514246400000,1.62636],[1514332800000,1.62795],[1514419200000,1.63317],[1514505600000,1.64134],[1514592000000,1.64134]], 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, 1.354067],[1484438400000, 1.354067],[1487116800000, 1.353573],[1489536000000, 1.367182],[1492214400000, 1.387729],[1494806400000, 1.417118],[1497484800000, 1.431198],[1500076800000, 1.431270],[1502755200000, 1.432261],[1505433600000, 1.471027],[1508025600000, 1.529546],[1510704000000, 1.527756],[1513296000000, 1.602507]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });