$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1483228800000,3.82343],[1483315200000,3.82343],[1483401600000,3.82343],[1483488000000,3.82343],[1483574400000,3.74734],[1483660800000,3.74734],[1483747200000,3.84871],[1483833600000,3.84871],[1483920000000,3.84871],[1484006400000,3.84871],[1484092800000,3.8645],[1484179200000,3.83074],[1484265600000,3.91461],[1484352000000,null],[1484438400000,3.96747],[1484524800000,3.96747],[1484611200000,3.94941],[1484697600000,3.96962],[1484784000000,3.94257],[1484870400000,3.93697],[1484956800000,3.92178],[1485043200000,3.92178],[1485129600000,3.92178],[1485216000000,3.93841],[1485302400000,3.93605],[1485388800000,3.93052],[1485475200000,3.91545],[1485561600000,3.90539],[1485648000000,3.90539],[1485734400000,3.90539],[1485820800000,3.87597],[1485907200000,3.91594],[1485993600000,3.9171],[1486080000000,3.92153],[1486166400000,3.91046],[1486252800000,3.91046],[1486339200000,3.91046],[1486425600000,3.92672],[1486512000000,3.88102],[1486598400000,3.86083],[1486684800000,3.88654],[1486771200000,3.88978],[1486857600000,3.88978],[1486944000000,3.88978],[1487030400000,3.88303],[1487116800000,3.89017],[1487203200000,3.83237],[1487289600000,3.86709],[1487376000000,3.8721],[1487462400000,3.8721],[1487548800000,3.8721],[1487635200000,3.85967],[1487721600000,3.83339],[1487808000000,3.81486],[1487894400000,3.827],[1487980800000,3.8496],[1488067200000,3.8496],[1488153600000,3.8496],[1488240000000,3.85327],[1488326400000,3.87254],[1488412800000,3.8515],[1488499200000,3.83176],[1488585600000,3.85427],[1488672000000,3.85427],[1488758400000,3.85427],[1488844800000,3.85017],[1488931200000,3.8354],[1489017600000,3.8354],[1489104000000,3.81927],[1489190400000,3.82544],[1489276800000,3.82544],[1489363200000,3.82544],[1489449600000,3.85764],[1489536000000,3.84755],[1489622400000,3.84089],[1489708800000,3.89245],[1489795200000,3.88638],[1489881600000,3.88638],[1489968000000,3.88638],[1490054400000,3.88855],[1490140800000,3.90092],[1490227200000,3.91173],[1490313600000,3.92496],[1490400000000,3.94042],[1490486400000,3.94042],[1490572800000,3.94042],[1490659200000,3.97391],[1490745600000,3.95806],[1490832000000,3.90565],[1490918400000,3.89377],[1491004800000,3.88402],[1491091200000,3.88402],[1491177600000,3.88402],[1491264000000,3.8738],[1491350400000,3.88362],[1491436800000,3.90003],[1491523200000,3.88772],[1491609600000,3.85586],[1491696000000,3.85586],[1491782400000,3.85586],[1491868800000,3.8312],[1491955200000,3.83887],[1492041600000,3.83246],[1492128000000,3.8395],[1492214400000,3.83204],[1492300800000,3.83204],[1492387200000,3.83204],[1492473600000,3.83204],[1492560000000,3.85526],[1492646400000,3.86212],[1492732800000,3.86525],[1492819200000,3.84552],[1492905600000,3.84552],[1492992000000,3.84552],[1493078400000,3.88972],[1493164800000,3.8987],[1493251200000,3.89317],[1493337600000,3.88383],[1493424000000,3.90292],[1493510400000,3.90292],[1493596800000,3.90292],[1493683200000,3.90292],[1493769600000,3.90292],[1493856000000,3.89406],[1493942400000,3.89175],[1494028800000,3.90712],[1494115200000,3.90712],[1494201600000,3.90712],[1494288000000,3.90712],[1494374400000,3.90712],[1494460800000,3.86906],[1494547200000,3.85772],[1494633600000,3.86998],[1494720000000,3.86998],[1494806400000,3.86998],[1494892800000,3.90416],[1494979200000,3.92944],[1495065600000,3.94719],[1495152000000,3.94728],[1495238400000,3.9616],[1495324800000,3.9616],[1495411200000,3.9616],[1495497600000,3.97896],[1495584000000,3.96299],[1495670400000,3.95077],[1495756800000,3.96009],[1495843200000,3.96375],[1495929600000,3.96375],[1496016000000,3.96375],[1496102400000,3.96783],[1496188800000,3.95773],[1496275200000,3.96823],[1496361600000,3.9618],[1496448000000,3.9627],[1496534400000,3.9627],[1496620800000,3.9627],[1496707200000,3.9627],[1496793600000,3.97241],[1496880000000,3.95158],[1496966400000,3.94753],[1497052800000,3.92549],[1497139200000,3.92549],[1497225600000,3.92549],[1497312000000,3.93372],[1497398400000,3.92104],[1497484800000,3.91923],[1497571200000,3.90526],[1497657600000,3.90778],[1497744000000,3.90778],[1497830400000,3.90778],[1497916800000,3.91864],[1498003200000,3.90499],[1498089600000,3.89884],[1498176000000,3.90763],[1498262400000,3.91069],[1498348800000,3.91069],[1498435200000,3.91069],[1498521600000,3.91683],[1498608000000,3.95567],[1498694400000,3.95567],[1498780800000,4.00538],[1498867200000,3.99347],[1498953600000,3.99347],[1499040000000,3.99347],[1499126400000,3.97401],[1499212800000,3.97186],[1499299200000,3.97889],[1499385600000,3.98952],[1499472000000,3.99314],[1499558400000,3.99314],[1499644800000,3.99314],[1499731200000,3.98179],[1499817600000,3.9832],[1499904000000,3.98891],[1499990400000,3.98677],[1500076800000,3.9937],[1500163200000,3.9937],[1500249600000,3.9937],[1500336000000,4.002],[1500422400000,4.02876],[1500508800000,4.02337],[1500595200000,4.00429],[1500681600000,4.05293],[1500768000000,4.05293],[1500854400000,4.05293],[1500940800000,4.04489],[1501027200000,4.06418],[1501113600000,4.05286],[1501200000000,4.07304],[1501286400000,4.08751],[1501372800000,4.08751],[1501459200000,4.08751],[1501545600000,4.07723],[1501632000000,4.10687],[1501718400000,4.11944],[1501804800000,4.12747],[1501891200000,4.12302],[1501977600000,4.12302],[1502064000000,4.12302],[1502150400000,4.08938],[1502236800000,4.08685],[1502323200000,4.05654],[1502409600000,4.05242],[1502496000000,4.06495],[1502582400000,4.06495],[1502668800000,4.06495],[1502755200000,4.06591],[1502841600000,4.04225],[1502928000000,4.02674],[1503014400000,4.01254],[1503100800000,4.02428],[1503187200000,4.02428],[1503273600000,4.02428],[1503360000000,null],[1503446400000,4.02802],[1503532800000,4.05271],[1503619200000,4.05271],[1503705600000,4.05271],[1503792000000,4.05271],[1503878400000,4.05271],[1503964800000,4.09011],[1504051200000,4.12012],[1504137600000,4.09735],[1504224000000,4.08463],[1504310400000,4.1265],[1504396800000,4.1265],[1504483200000,4.1265],[1504569600000,4.14696],[1504656000000,4.14886],[1504742400000,4.16697],[1504828800000,4.18438],[1504915200000,4.22623],[1505001600000,4.22623],[1505088000000,4.22623],[1505174400000,4.19407],[1505260800000,4.17317],[1505347200000,4.19881],[1505433600000,4.1793],[1505520000000,4.21619],[1505606400000,4.21619],[1505692800000,4.21619],[1505779200000,4.20349],[1505865600000,4.20332],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,4.19835],[1506729600000,4.21625],[1506816000000,4.21625],[1506902400000,4.21625],[1506988800000,4.2064],[1507075200000,4.21711],[1507161600000,4.24571],[1507248000000,4.22823],[1507334400000,4.20606],[1507420800000,4.20606],[1507507200000,4.20606],[1507593600000,4.1902],[1507680000000,4.21397],[1507766400000,4.21724],[1507852800000,4.24219],[1507939200000,4.24219],[1508025600000,4.24219],[1508112000000,4.24219],[1508198400000,4.24219],[1508284800000,4.18368],[1508371200000,4.17089],[1508457600000,4.21279],[1508544000000,4.2134],[1508630400000,4.2134],[1508716800000,4.2134],[1508803200000,null],[1508889600000,4.21406],[1508976000000,4.23874],[1509062400000,4.23599],[1509148800000,4.19172],[1509235200000,4.19172],[1509321600000,4.19172],[1509408000000,4.18684],[1509494400000,4.20121],[1509580800000,4.19421],[1509667200000,4.21425],[1509753600000,4.22332],[1509840000000,4.22332],[1509926400000,4.22332],[1510012800000,4.18167],[1510099200000,4.15595],[1510185600000,4.14749],[1510272000000,4.15034],[1510358400000,4.15246],[1510444800000,4.15246],[1510531200000,4.15246],[1510617600000,4.14889],[1510704000000,4.18201],[1510790400000,4.2129],[1510876800000,4.18788],[1510963200000,4.20047],[1511049600000,4.20047],[1511136000000,4.20047],[1511222400000,4.19177],[1511308800000,4.17174],[1511395200000,4.20696],[1511481600000,4.27646],[1511568000000,4.2952],[1511654400000,4.2952],[1511740800000,4.2952],[1511827200000,4.30957],[1511913600000,4.29239],[1512000000000,4.29294],[1512086400000,4.32387],[1512172800000,4.32062],[1512259200000,4.32062],[1512345600000,4.32062],[1512432000000,4.33913],[1512518400000,4.32462],[1512604800000,4.30455],[1512691200000,4.29522],[1512777600000,4.27749],[1512864000000,4.27749],[1512950400000,4.27749],[1513036800000,4.30042],[1513123200000,4.2966],[1513209600000,4.29943],[1513296000000,4.36193],[1513382400000,4.38268],[1513468800000,4.38268],[1513555200000,4.38268],[1513641600000,4.41657],[1513728000000,4.42905],[1513814400000,4.43308],[1513900800000,4.4373],[1513987200000,4.45041],[1514073600000,4.45041],[1514160000000,4.45041],[1514246400000,4.45041],[1514332800000,4.4494],[1514419200000,4.46537],[1514505600000,4.49875],[1514592000000,4.49875]], 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, 3.886817],[1484438400000, 3.886817],[1487116800000, 3.876297],[1489536000000, 3.877795],[1492214400000, 3.864182],[1494806400000, 3.924175],[1497484800000, 3.934238],[1500076800000, 4.016472],[1502755200000, 4.069984],[1505433600000, 4.182059],[1508025600000, 4.214628],[1510704000000, 4.211099],[1513296000000, 4.377962]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });