$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1483228800000,20.081],[1483315200000,20.081],[1483401600000,20.081],[1483488000000,20.081],[1483574400000,20.051],[1483660800000,20.051],[1483747200000,20.3807],[1483833600000,20.3807],[1483920000000,20.3807],[1484006400000,20.3807],[1484092800000,20.532],[1484179200000,20.4591],[1484265600000,20.8706],[1484352000000,null],[1484438400000,21.0551],[1484524800000,21.0551],[1484611200000,21.0872],[1484697600000,21.1565],[1484784000000,20.9619],[1484870400000,20.6615],[1484956800000,20.512],[1485043200000,20.512],[1485129600000,20.512],[1485216000000,20.5291],[1485302400000,20.5151],[1485388800000,20.7745],[1485475200000,20.7275],[1485561600000,20.728],[1485648000000,20.728],[1485734400000,20.728],[1485820800000,20.6161],[1485907200000,20.72],[1485993600000,20.665],[1486080000000,20.7598],[1486166400000,20.7405],[1486252800000,20.7405],[1486339200000,20.7405],[1486425600000,20.8793],[1486512000000,20.5064],[1486598400000,20.4723],[1486684800000,20.6159],[1486771200000,20.7076],[1486857600000,20.7076],[1486944000000,20.7076],[1487030400000,20.7471],[1487116800000,20.8979],[1487203200000,20.6327],[1487289600000,20.7345],[1487376000000,20.664],[1487462400000,20.664],[1487548800000,20.664],[1487635200000,20.6136],[1487721600000,20.5887],[1487808000000,20.4829],[1487894400000,20.5134],[1487980800000,20.5792],[1488067200000,20.5792],[1488153600000,20.5792],[1488240000000,20.6219],[1488326400000,20.5845],[1488412800000,20.3855],[1488499200000,20.2458],[1488585600000,20.2327],[1488672000000,20.2327],[1488758400000,20.2327],[1488844800000,20.1798],[1488931200000,20.0918],[1489017600000,20.0918],[1489104000000,19.893],[1489190400000,19.854],[1489276800000,19.854],[1489363200000,19.854],[1489449600000,19.9844],[1489536000000,19.9484],[1489622400000,19.9795],[1489708800000,20.2687],[1489795200000,20.2102],[1489881600000,20.2102],[1489968000000,20.2102],[1490054400000,20.1336],[1490140800000,20.2136],[1490227200000,20.122],[1490313600000,20.2853],[1490400000000,20.2852],[1490486400000,20.2852],[1490572800000,20.2852],[1490659200000,20.3409],[1490745600000,20.2463],[1490832000000,20.2105],[1490918400000,20.2264],[1491004800000,20.2516],[1491091200000,20.2516],[1491177600000,20.2516],[1491264000000,20.2481],[1491350400000,20.1707],[1491436800000,20.2913],[1491523200000,20.1824],[1491609600000,20.1132],[1491696000000,20.1132],[1491782400000,20.1132],[1491868800000,20.1272],[1491955200000,20.1927],[1492041600000,20.1939],[1492128000000,20.2976],[1492214400000,20.2582],[1492300800000,20.2582],[1492387200000,20.2582],[1492473600000,20.2582],[1492560000000,20.0909],[1492646400000,19.93],[1492732800000,19.8359],[1492819200000,19.8423],[1492905600000,19.8423],[1492992000000,19.8423],[1493078400000,19.8597],[1493164800000,19.611],[1493251200000,19.5804],[1493337600000,19.5431],[1493424000000,19.4657],[1493510400000,19.4657],[1493596800000,19.4657],[1493683200000,19.4657],[1493769600000,19.4657],[1493856000000,19.3202],[1493942400000,19.2812],[1494028800000,19.2506],[1494115200000,19.2506],[1494201600000,19.2506],[1494288000000,19.2506],[1494374400000,19.2506],[1494460800000,19.3152],[1494547200000,19.2552],[1494633600000,19.2714],[1494720000000,19.2714],[1494806400000,19.2714],[1494892800000,19.4528],[1494979200000,19.4134],[1495065600000,19.4029],[1495152000000,19.3462],[1495238400000,19.4335],[1495324800000,19.4335],[1495411200000,19.4335],[1495497600000,19.5177],[1495584000000,19.5316],[1495670400000,19.4584],[1495756800000,19.5623],[1495843200000,19.5638],[1495929600000,19.5638],[1496016000000,19.5638],[1496102400000,19.6125],[1496188800000,19.5667],[1496275200000,19.5412],[1496361600000,19.448],[1496448000000,19.4339],[1496534400000,19.4339],[1496620800000,19.4339],[1496707200000,19.4339],[1496793600000,19.4782],[1496880000000,19.486],[1496966400000,19.3496],[1497052800000,19.3383],[1497139200000,19.3383],[1497225600000,19.3383],[1497312000000,19.4017],[1497398400000,19.5802],[1497484800000,19.6976],[1497571200000,19.5869],[1497657600000,19.6794],[1497744000000,19.6794],[1497830400000,19.6794],[1497916800000,19.6556],[1498003200000,19.6088],[1498089600000,19.5964],[1498176000000,19.5705],[1498262400000,19.6743],[1498348800000,19.6743],[1498435200000,19.6743],[1498521600000,19.6646],[1498608000000,19.747],[1498694400000,19.747],[1498780800000,20.0355],[1498867200000,20.0865],[1498953600000,20.0865],[1499040000000,20.0865],[1499126400000,20.0292],[1499212800000,20.0526],[1499299200000,20.1543],[1499385600000,20.1451],[1499472000000,20.0577],[1499558400000,20.0577],[1499644800000,20.0577],[1499731200000,20.1394],[1499817600000,20.1258],[1499904000000,20.0332],[1499990400000,20.3573],[1500076800000,20.4483],[1500163200000,20.4483],[1500249600000,20.4483],[1500336000000,20.5219],[1500422400000,20.5955],[1500508800000,20.5787],[1500595200000,20.5555],[1500681600000,20.5543],[1500768000000,20.5543],[1500854400000,20.5543],[1500940800000,20.6241],[1501027200000,20.6884],[1501113600000,20.6781],[1501200000000,20.7409],[1501286400000,20.661],[1501372800000,20.661],[1501459200000,20.661],[1501545600000,20.7316],[1501632000000,20.725],[1501718400000,20.6469],[1501804800000,20.5341],[1501891200000,20.5565],[1501977600000,20.5565],[1502064000000,20.5565],[1502150400000,20.3346],[1502236800000,20.3225],[1502323200000,20.2873],[1502409600000,20.1985],[1502496000000,20.2133],[1502582400000,20.2133],[1502668800000,20.2133],[1502755200000,20.1913],[1502841600000,20.0953],[1502928000000,20.087],[1503014400000,20.2037],[1503100800000,20.1398],[1503187200000,20.1398],[1503273600000,20.1398],[1503360000000,null],[1503446400000,20.2345],[1503532800000,20.2999],[1503619200000,20.2999],[1503705600000,20.2999],[1503792000000,20.2999],[1503878400000,20.2999],[1503964800000,20.4679],[1504051200000,20.3836],[1504137600000,20.3734],[1504224000000,20.296],[1504310400000,20.6959],[1504396800000,20.6959],[1504483200000,20.6959],[1504569600000,20.8755],[1504656000000,20.9473],[1504742400000,20.9639],[1504828800000,21.3398],[1504915200000,21.571],[1505001600000,21.571],[1505088000000,21.571],[1505174400000,21.4584],[1505260800000,21.4467],[1505347200000,21.4832],[1505433600000,21.4424],[1505520000000,21.6062],[1505606400000,21.6062],[1505692800000,21.6062],[1505779200000,21.453],[1505865600000,21.2577],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,21.2725],[1506729600000,21.3649],[1506816000000,21.3649],[1506902400000,21.3649],[1506988800000,21.3048],[1507075200000,21.3623],[1507161600000,21.5285],[1507248000000,21.4727],[1507334400000,21.2652],[1507420800000,21.2652],[1507507200000,21.2652],[1507593600000,21.1714],[1507680000000,21.2707],[1507766400000,21.2116],[1507852800000,21.3582],[1507939200000,21.3582],[1508025600000,21.3582],[1508112000000,21.3582],[1508198400000,21.3582],[1508284800000,21.1267],[1508371200000,21.0919],[1508457600000,21.2711],[1508544000000,21.2419],[1508630400000,21.2419],[1508716800000,21.2419],[1508803200000,null],[1508889600000,21.0867],[1508976000000,21.0843],[1509062400000,20.9623],[1509148800000,20.8471],[1509235200000,20.8471],[1509321600000,20.8471],[1509408000000,20.8837],[1509494400000,20.8358],[1509580800000,20.8269],[1509667200000,20.9636],[1509753600000,21.1938],[1509840000000,21.1938],[1509926400000,21.1938],[1510012800000,21.0452],[1510099200000,20.9538],[1510185600000,20.9255],[1510272000000,20.8997],[1510358400000,20.9282],[1510444800000,20.9282],[1510531200000,20.9282],[1510617600000,20.8484],[1510704000000,20.8397],[1510790400000,20.7607],[1510876800000,20.7423],[1510963200000,20.7638],[1511049600000,20.7638],[1511136000000,20.7638],[1511222400000,20.704],[1511308800000,20.6874],[1511395200000,20.9154],[1511481600000,21.1831],[1511568000000,21.1789],[1511654400000,21.1789],[1511740800000,21.1789],[1511827200000,21.1623],[1511913600000,21.0055],[1512000000000,21.0526],[1512086400000,21.0762],[1512172800000,21.0144],[1512259200000,21.0144],[1512345600000,21.0144],[1512432000000,21.4786],[1512518400000,21.5032],[1512604800000,21.4094],[1512691200000,21.1241],[1512777600000,21.1198],[1512864000000,21.1198],[1512950400000,21.1198],[1513036800000,21.1032],[1513123200000,21.1793],[1513209600000,21.204],[1513296000000,21.3656],[1513382400000,21.6496],[1513468800000,21.6496],[1513555200000,21.6496],[1513641600000,21.6509],[1513728000000,21.6792],[1513814400000,21.6814],[1513900800000,21.756],[1513987200000,22.0032],[1514073600000,22.0032],[1514160000000,22.0032],[1514246400000,22.0032],[1514332800000,21.9982],[1514419200000,22.1218],[1514505600000,22.2576],[1514592000000,22.2576]], 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, 20.555664],[1484438400000, 20.555664],[1487116800000, 20.661617],[1489536000000, 20.167033],[1492214400000, 20.024673],[1494806400000, 19.402977],[1497484800000, 19.566889],[1500076800000, 20.369134],[1502755200000, 20.334843],[1505433600000, 21.237301],[1508025600000, 21.213729],[1510704000000, 20.951529],[1513296000000, 21.563488]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });