$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1483228800000,6.43905],[1483315200000,6.43905],[1483401600000,6.43905],[1483488000000,6.43905],[1483574400000,6.36366],[1483660800000,6.36366],[1483747200000,6.56972],[1483833600000,6.56972],[1483920000000,6.56972],[1484006400000,6.56972],[1484092800000,6.57083],[1484179200000,6.51603],[1484265600000,6.64961],[1484352000000,null],[1484438400000,6.74413],[1484524800000,6.74413],[1484611200000,6.71596],[1484697600000,6.75615],[1484784000000,6.71292],[1484870400000,6.69486],[1484956800000,6.67337],[1485043200000,6.67337],[1485129600000,6.67337],[1485216000000,6.69887],[1485302400000,6.69385],[1485388800000,6.69776],[1485475200000,6.70381],[1485561600000,6.69217],[1485648000000,6.69217],[1485734400000,6.69217],[1485820800000,6.65609],[1485907200000,6.73559],[1485993600000,6.74558],[1486080000000,6.77196],[1486166400000,6.76823],[1486252800000,6.76823],[1486339200000,6.76823],[1486425600000,6.82859],[1486512000000,6.70537],[1486598400000,6.65666],[1486684800000,6.70486],[1486771200000,6.73251],[1486857600000,6.73251],[1486944000000,6.73251],[1487030400000,6.69351],[1487116800000,6.72531],[1487203200000,6.62368],[1487289600000,6.65841],[1487376000000,6.64654],[1487462400000,6.64654],[1487548800000,6.64654],[1487635200000,6.63415],[1487721600000,6.61683],[1487808000000,6.59655],[1487894400000,6.60353],[1487980800000,6.63916],[1488067200000,6.63916],[1488153600000,6.63916],[1488240000000,6.63802],[1488326400000,6.67131],[1488412800000,6.6645],[1488499200000,6.63324],[1488585600000,6.66205],[1488672000000,6.66205],[1488758400000,6.66205],[1488844800000,6.64199],[1488931200000,6.61923],[1489017600000,6.61923],[1489104000000,6.57647],[1489190400000,6.57316],[1489276800000,6.57316],[1489363200000,6.57316],[1489449600000,6.61142],[1489536000000,6.61761],[1489622400000,6.60851],[1489708800000,6.73376],[1489795200000,6.72199],[1489881600000,6.72199],[1489968000000,6.72199],[1490054400000,6.75148],[1490140800000,6.8041],[1490227200000,6.79474],[1490313600000,6.83716],[1490400000000,6.86452],[1490486400000,6.86452],[1490572800000,6.86452],[1490659200000,6.93405],[1490745600000,6.93438],[1490832000000,6.85619],[1490918400000,6.85819],[1491004800000,6.83519],[1491091200000,6.83519],[1491177600000,6.83519],[1491264000000,6.81449],[1491350400000,6.78499],[1491436800000,6.85295],[1491523200000,6.83807],[1491609600000,6.78675],[1491696000000,6.78675],[1491782400000,6.78675],[1491868800000,6.73586],[1491955200000,6.73137],[1492041600000,6.70864],[1492128000000,6.72713],[1492214400000,6.71407],[1492300800000,6.71407],[1492387200000,6.71407],[1492473600000,6.71407],[1492560000000,6.76906],[1492646400000,6.78246],[1492732800000,6.75075],[1492819200000,6.69336],[1492905600000,6.69336],[1492992000000,6.69336],[1493078400000,6.82122],[1493164800000,6.86129],[1493251200000,6.85667],[1493337600000,6.84353],[1493424000000,6.8755],[1493510400000,6.8755],[1493596800000,6.8755],[1493683200000,6.8755],[1493769600000,6.8755],[1493856000000,6.90977],[1493942400000,6.87321],[1494028800000,6.88993],[1494115200000,6.88993],[1494201600000,6.88993],[1494288000000,6.88993],[1494374400000,6.88993],[1494460800000,6.82534],[1494547200000,6.79462],[1494633600000,6.82795],[1494720000000,6.82795],[1494806400000,6.82795],[1494892800000,6.90086],[1494979200000,6.96282],[1495065600000,7.01466],[1495152000000,6.95521],[1495238400000,7.01789],[1495324800000,7.01789],[1495411200000,7.01789],[1495497600000,7.06376],[1495584000000,7.02728],[1495670400000,7.02216],[1495756800000,7.05062],[1495843200000,7.05146],[1495929600000,7.05146],[1496016000000,7.05146],[1496102400000,7.06334],[1496188800000,7.05076],[1496275200000,7.07778],[1496361600000,7.04599],[1496448000000,7.03144],[1496534400000,7.03144],[1496620800000,7.03144],[1496707200000,7.03144],[1496793600000,7.03667],[1496880000000,7.01325],[1496966400000,6.98038],[1497052800000,6.96777],[1497139200000,6.96777],[1497225600000,6.96777],[1497312000000,6.98201],[1497398400000,6.95317],[1497484800000,6.94464],[1497571200000,6.89415],[1497657600000,6.88855],[1497744000000,6.88855],[1497830400000,6.88855],[1497916800000,6.91829],[1498003200000,6.86534],[1498089600000,6.8468],[1498176000000,6.85536],[1498262400000,6.87253],[1498348800000,6.87253],[1498435200000,6.87253],[1498521600000,6.91725],[1498608000000,6.97804],[1498694400000,6.97804],[1498780800000,7.01047],[1498867200000,7.02758],[1498953600000,7.02758],[1499040000000,7.02758],[1499126400000,6.97748],[1499212800000,6.96213],[1499299200000,6.96856],[1499385600000,6.98471],[1499472000000,7.01701],[1499558400000,7.01701],[1499644800000,7.01701],[1499731200000,6.99361],[1499817600000,6.97623],[1499904000000,6.98924],[1499990400000,7.00378],[1500076800000,7.04239],[1500163200000,7.04239],[1500249600000,7.04239],[1500336000000,7.07245],[1500422400000,7.12896],[1500508800000,7.10266],[1500595200000,7.07332],[1500681600000,7.11473],[1500768000000,7.11473],[1500854400000,7.11473],[1500940800000,7.09258],[1501027200000,7.09912],[1501113600000,7.07304],[1501200000000,7.11971],[1501286400000,7.15327],[1501372800000,7.15327],[1501459200000,7.15327],[1501545600000,7.13527],[1501632000000,7.1758],[1501718400000,7.20312],[1501804800000,7.21923],[1501891200000,7.23187],[1501977600000,7.23187],[1502064000000,7.23187],[1502150400000,7.15425],[1502236800000,7.14397],[1502323200000,7.07228],[1502409600000,7.05627],[1502496000000,7.04883],[1502582400000,7.04883],[1502668800000,7.04883],[1502755200000,7.06197],[1502841600000,7.02545],[1502928000000,7.005],[1503014400000,7.0076],[1503100800000,6.99085],[1503187200000,6.99085],[1503273600000,6.99085],[1503360000000,null],[1503446400000,6.99687],[1503532800000,7.03445],[1503619200000,7.03445],[1503705600000,7.03445],[1503792000000,7.03445],[1503878400000,7.03445],[1503964800000,7.1458],[1504051200000,7.18221],[1504137600000,7.1554],[1504224000000,7.1352],[1504310400000,7.23767],[1504396800000,7.23767],[1504483200000,7.23767],[1504569600000,7.27288],[1504656000000,7.28491],[1504742400000,7.30859],[1504828800000,7.3359],[1504915200000,7.39267],[1505001600000,7.39267],[1505088000000,7.39267],[1505174400000,7.35218],[1505260800000,7.2971],[1505347200000,7.29959],[1505433600000,7.25756],[1505520000000,7.33665],[1505606400000,7.33665],[1505692800000,7.33665],[1505779200000,7.29425],[1505865600000,7.31064],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,7.24376],[1506729600000,7.29022],[1506816000000,7.29022],[1506902400000,7.29022],[1506988800000,7.25753],[1507075200000,7.28167],[1507161600000,7.35369],[1507248000000,7.31818],[1507334400000,7.27351],[1507420800000,7.27351],[1507507200000,7.27351],[1507593600000,7.23997],[1507680000000,7.30561],[1507766400000,7.32513],[1507852800000,7.39014],[1507939200000,7.39014],[1508025600000,7.39014],[1508112000000,7.39014],[1508198400000,7.39014],[1508284800000,7.36274],[1508371200000,7.34378],[1508457600000,7.39763],[1508544000000,7.40355],[1508630400000,7.40355],[1508716800000,7.40355],[1508803200000,null],[1508889600000,7.39724],[1508976000000,7.44859],[1509062400000,7.44494],[1509148800000,7.34524],[1509235200000,7.34524],[1509321600000,7.34524],[1509408000000,7.34217],[1509494400000,7.36617],[1509580800000,7.37191],[1509667200000,7.40079],[1509753600000,7.41579],[1509840000000,7.41579],[1509926400000,7.41579],[1510012800000,7.33813],[1510099200000,7.29546],[1510185600000,7.29114],[1510272000000,7.29411],[1510358400000,7.3042],[1510444800000,7.3042],[1510531200000,7.3042],[1510617600000,7.29046],[1510704000000,7.34291],[1510790400000,7.38232],[1510876800000,7.36074],[1510963200000,7.38172],[1511049600000,7.38172],[1511136000000,7.38172],[1511222400000,7.37223],[1511308800000,7.34064],[1511395200000,7.42693],[1511481600000,7.55518],[1511568000000,7.59109],[1511654400000,7.59109],[1511740800000,7.59109],[1511827200000,7.62077],[1511913600000,7.59353],[1512000000000,7.60591],[1512086400000,7.6694],[1512172800000,7.63229],[1512259200000,7.63229],[1512345600000,7.63229],[1512432000000,7.68357],[1512518400000,7.65866],[1512604800000,7.60165],[1512691200000,7.58691],[1512777600000,7.57539],[1512864000000,7.57539],[1512950400000,7.57539],[1513036800000,7.61528],[1513123200000,7.6055],[1513209600000,7.59292],[1513296000000,7.68999],[1513382400000,7.73732],[1513468800000,7.73732],[1513555200000,7.73732],[1513641600000,7.81482],[1513728000000,7.85074],[1513814400000,7.84977],[1513900800000,7.8657],[1513987200000,7.89285],[1514073600000,7.89285],[1514160000000,7.89285],[1514246400000,7.89285],[1514332800000,7.89105],[1514419200000,7.93733],[1514505600000,8.01173],[1514592000000,8.01173]], 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, 6.613802],[1484438400000, 6.613802],[1487116800000, 6.689212],[1489536000000, 6.717186],[1492214400000, 6.781056],[1494806400000, 6.944594],[1497484800000, 6.953665],[1500076800000, 7.054275],[1502755200000, 7.090913],[1505433600000, 7.299262],[1508025600000, 7.347229],[1510704000000, 7.410925],[1513296000000, 7.753382]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });