$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1483228800000,33.3208],[1483315200000,33.3208],[1483401600000,33.3208],[1483488000000,33.3208],[1483574400000,32.7963],[1483660800000,32.7963],[1483747200000,33.407],[1483833600000,33.407],[1483920000000,33.407],[1484006400000,33.407],[1484092800000,33.0439],[1484179200000,32.836],[1484265600000,33.5111],[1484352000000,null],[1484438400000,33.6937],[1484524800000,33.6937],[1484611200000,33.4459],[1484697600000,34.0128],[1484784000000,33.7629],[1484870400000,33.8228],[1484956800000,33.6763],[1485043200000,33.6763],[1485129600000,33.6763],[1485216000000,33.9959],[1485302400000,33.8956],[1485388800000,34.2577],[1485475200000,34.1989],[1485561600000,34.1012],[1485648000000,34.1012],[1485734400000,34.1012],[1485820800000,33.9407],[1485907200000,33.8239],[1485993600000,34.1046],[1486080000000,33.8889],[1486166400000,33.814],[1486252800000,33.814],[1486339200000,33.814],[1486425600000,33.9777],[1486512000000,33.4259],[1486598400000,33.6426],[1486684800000,33.9585],[1486771200000,33.9057],[1486857600000,33.9057],[1486944000000,33.9057],[1487030400000,34.0132],[1487116800000,33.9925],[1487203200000,33.5205],[1487289600000,33.7779],[1487376000000,33.5777],[1487462400000,33.5777],[1487548800000,33.5777],[1487635200000,33.6955],[1487721600000,33.5785],[1487808000000,33.5779],[1487894400000,33.6154],[1487980800000,33.868],[1488067200000,33.868],[1488153600000,33.868],[1488240000000,33.5855],[1488326400000,33.7441],[1488412800000,33.4651],[1488499200000,33.291],[1488585600000,33.1787],[1488672000000,33.1787],[1488758400000,33.1787],[1488844800000,33.1645],[1488931200000,32.8824],[1489017600000,32.8824],[1489104000000,32.7644],[1489190400000,32.5901],[1489276800000,32.5901],[1489363200000,32.5901],[1489449600000,32.8654],[1489536000000,32.6644],[1489622400000,32.7917],[1489708800000,33.3345],[1489795200000,33.2602],[1489881600000,33.2602],[1489968000000,33.2602],[1490054400000,33.3089],[1490140800000,33.4334],[1490227200000,33.5204],[1490313600000,33.828],[1490400000000,33.8431],[1490486400000,33.8431],[1490572800000,33.8431],[1490659200000,34.2205],[1490745600000,34.0643],[1490832000000,33.6432],[1490918400000,33.609],[1491004800000,33.7673],[1491091200000,33.7673],[1491177600000,33.7673],[1491264000000,33.7919],[1491350400000,33.7344],[1491436800000,33.9121],[1491523200000,33.7717],[1491609600000,33.5075],[1491696000000,33.5075],[1491782400000,33.5075],[1491868800000,33.386],[1491955200000,33.4589],[1492041600000,33.5946],[1492128000000,33.69],[1492214400000,33.6246],[1492300800000,33.6246],[1492387200000,33.6246],[1492473600000,33.6246],[1492560000000,33.9861],[1492646400000,34.435],[1492732800000,34.2589],[1492819200000,34.16],[1492905600000,34.16],[1492992000000,34.16],[1493078400000,34.1101],[1493164800000,34.1521],[1493251200000,34.1134],[1493337600000,34.2225],[1493424000000,34.3673],[1493510400000,34.3673],[1493596800000,34.3673],[1493683200000,34.3673],[1493769600000,34.3673],[1493856000000,34.2976],[1493942400000,34.1426],[1494028800000,34.3016],[1494115200000,34.3016],[1494201600000,34.3016],[1494288000000,34.3016],[1494374400000,34.3016],[1494460800000,34.2791],[1494547200000,33.9727],[1494633600000,34.0397],[1494720000000,34.0397],[1494806400000,34.0397],[1494892800000,34.1996],[1494979200000,34.0438],[1495065600000,34.2507],[1495152000000,34.4098],[1495238400000,34.3142],[1495324800000,34.3142],[1495411200000,34.3142],[1495497600000,34.2967],[1495584000000,34.1192],[1495670400000,34.051],[1495756800000,34.0545],[1495843200000,33.8299],[1495929600000,33.8299],[1496016000000,33.8299],[1496102400000,33.8979],[1496188800000,33.9243],[1496275200000,33.7925],[1496361600000,33.7881],[1496448000000,33.7802],[1496534400000,33.7802],[1496620800000,33.7802],[1496707200000,33.7802],[1496793600000,33.8741],[1496880000000,33.8227],[1496966400000,33.8458],[1497052800000,33.3155],[1497139200000,33.3155],[1497225600000,33.3155],[1497312000000,33.0385],[1497398400000,33.1068],[1497484800000,33.1339],[1497571200000,33.135],[1497657600000,33.2277],[1497744000000,33.2277],[1497830400000,33.2277],[1497916800000,33.2998],[1498003200000,32.9516],[1498089600000,33.0355],[1498176000000,32.969],[1498262400000,33.124],[1498348800000,33.124],[1498435200000,33.124],[1498521600000,33.1631],[1498608000000,33.2841],[1498694400000,33.2841],[1498780800000,33.8525],[1498867200000,33.7733],[1498953600000,33.7733],[1499040000000,33.7733],[1499126400000,33.6961],[1499212800000,33.6399],[1499299200000,33.7272],[1499385600000,33.7105],[1499472000000,33.5609],[1499558400000,33.5609],[1499644800000,33.5609],[1499731200000,33.4803],[1499817600000,33.5391],[1499904000000,33.3597],[1499990400000,33.6092],[1500076800000,33.7556],[1500163200000,33.7556],[1500249600000,33.7556],[1500336000000,33.9136],[1500422400000,33.7489],[1500508800000,33.8152],[1500595200000,33.5656],[1500681600000,33.6356],[1500768000000,33.6356],[1500854400000,33.6356],[1500940800000,33.6633],[1501027200000,33.8069],[1501113600000,33.7612],[1501200000000,34.0398],[1501286400000,33.9367],[1501372800000,33.9367],[1501459200000,33.9367],[1501545600000,33.9073],[1501632000000,34.1485],[1501718400000,34.2656],[1501804800000,33.9916],[1501891200000,33.9725],[1501977600000,33.9725],[1502064000000,33.9725],[1502150400000,33.6357],[1502236800000,33.5257],[1502323200000,33.405],[1502409600000,33.3791],[1502496000000,33.351],[1502582400000,33.351],[1502668800000,33.351],[1502755200000,33.2507],[1502841600000,32.9833],[1502928000000,32.9098],[1503014400000,32.8234],[1503100800000,32.8176],[1503187200000,32.8176],[1503273600000,32.8176],[1503360000000,null],[1503446400000,32.6663],[1503532800000,32.7149],[1503619200000,32.7149],[1503705600000,32.7149],[1503792000000,32.7149],[1503878400000,32.7149],[1503964800000,32.9559],[1504051200000,32.9703],[1504137600000,33.0427],[1504224000000,33.0348],[1504310400000,33.3338],[1504396800000,33.3338],[1504483200000,33.3338],[1504569600000,33.5762],[1504656000000,33.6381],[1504742400000,33.9058],[1504828800000,34.0562],[1504915200000,34.4524],[1505001600000,34.4524],[1505088000000,34.4524],[1505174400000,34.3736],[1505260800000,34.5451],[1505347200000,34.6185],[1505433600000,34.8884],[1505520000000,35.6329],[1505606400000,35.6329],[1505692800000,35.6329],[1505779200000,35.4443],[1505865600000,35.2944],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,35.6439],[1506729600000,35.5855],[1506816000000,35.5855],[1506902400000,35.5855],[1506988800000,35.4036],[1507075200000,35.3467],[1507161600000,35.5979],[1507248000000,35.2968],[1507334400000,34.9634],[1507420800000,34.9634],[1507507200000,34.9634],[1507593600000,34.9657],[1507680000000,35.0785],[1507766400000,34.9893],[1507852800000,34.9953],[1507939200000,34.9953],[1508025600000,34.9953],[1508112000000,34.9953],[1508198400000,34.9953],[1508284800000,34.934],[1508371200000,34.774],[1508457600000,34.9163],[1508544000000,34.9951],[1508630400000,34.9951],[1508716800000,34.9951],[1508803200000,null],[1508889600000,35.1237],[1508976000000,35.4944],[1509062400000,35.4222],[1509148800000,35.1893],[1509235200000,35.1893],[1509321600000,35.1893],[1509408000000,35.4106],[1509494400000,35.5845],[1509580800000,35.7169],[1509667200000,35.3609],[1509753600000,35.3456],[1509840000000,35.3456],[1509926400000,35.3456],[1510012800000,35.2071],[1510099200000,35.1324],[1510185600000,34.9204],[1510272000000,34.8489],[1510358400000,34.9696],[1510444800000,34.9696],[1510531200000,34.9696],[1510617600000,34.6833],[1510704000000,34.7379],[1510790400000,34.8737],[1510876800000,34.9454],[1510963200000,34.9675],[1511049600000,34.9675],[1511136000000,34.9675],[1511222400000,35.0716],[1511308800000,35.0783],[1511395200000,35.253],[1511481600000,35.7569],[1511568000000,35.8677],[1511654400000,35.8677],[1511740800000,35.8677],[1511827200000,35.8865],[1511913600000,35.6778],[1512000000000,36.1856],[1512086400000,36.571],[1512172800000,36.491],[1512259200000,36.491],[1512345600000,36.491],[1512432000000,36.8093],[1512518400000,36.4942],[1512604800000,36.2652],[1512691200000,36.2934],[1512777600000,36.3688],[1512864000000,36.3688],[1512950400000,36.3688],[1513036800000,36.2712],[1513123200000,36.309],[1513209600000,36.4042],[1513296000000,36.8263],[1513382400000,36.9687],[1513468800000,36.9687],[1513555200000,36.9687],[1513641600000,37.2721],[1513728000000,37.2515],[1513814400000,37.3655],[1513900800000,37.2164],[1513987200000,37.4065],[1514073600000,37.4065],[1514160000000,37.4065],[1514246400000,37.4065],[1514332800000,37.398],[1514419200000,37.5252],[1514505600000,37.7337],[1514592000000,37.7337]], 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, 33.598261],[1484438400000, 33.598261],[1487116800000, 33.774111],[1489536000000, 33.293351],[1492214400000, 33.871838],[1494806400000, 34.164538],[1497484800000, 33.383330],[1500076800000, 33.711699],[1502755200000, 33.261955],[1505433600000, 34.493718],[1508025600000, 35.144830],[1510704000000, 35.279073],[1513296000000, 36.922099]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });