$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1262736000000,1.12925],[1262822400000,1.12481],[1262908800000,1.12481],[1262995200000,1.12481],[1263081600000,1.12481],[1263168000000,1.12481],[1263254400000,1.13815],[1263340800000,1.13315],[1263427200000,1.14301],[1263513600000,1.13968],[1263600000000,1.13388],[1263686400000,1.13388],[1263772800000,1.13388],[1263859200000,1.13499],[1263945600000,1.12601],[1264032000000,1.11831],[1264118400000,1.11125],[1264204800000,1.10831],[1264291200000,1.10831],[1264377600000,1.10831],[1264464000000,1.11018],[1264550400000,1.09759],[1264636800000,1.09921],[1264723200000,1.0979],[1264809600000,1.09109],[1264896000000,1.09109],[1264982400000,1.09109],[1265068800000,1.09739],[1265155200000,1.10148],[1265241600000,1.10715],[1265328000000,1.09338],[1265414400000,1.06961],[1265500800000,1.06961],[1265587200000,1.06961],[1265673600000,1.0776],[1265760000000,1.08883],[1265846400000,1.0969],[1265932800000,1.10325],[1266019200000,1.09548],[1266105600000,1.09548],[1266192000000,1.09548],[1266278400000,1.102],[1266364800000,1.10585],[1266451200000,1.11874],[1266537600000,1.10845],[1266624000000,1.09816],[1266710400000,1.09816],[1266796800000,1.09816],[1266883200000,1.10996],[1266969600000,1.10793],[1267056000000,1.10619],[1267142400000,1.10545],[1267228800000,1.11479],[1267315200000,1.11479],[1267401600000,1.11479],[1267488000000,1.10667],[1267574400000,1.11164],[1267660800000,1.11195],[1267747200000,1.12007],[1267833600000,1.11585],[1267920000000,1.11585],[1268006400000,1.11585],[1268092800000,1.11585],[1268179200000,1.11265],[1268265600000,1.11793],[1268352000000,1.1203],[1268438400000,1.12878],[1268524800000,1.12878],[1268611200000,1.12878],[1268697600000,1.12536],[1268784000000,1.12569],[1268870400000,1.12643],[1268956800000,1.12041],[1269043200000,1.11439],[1269129600000,1.11439],[1269216000000,1.11439],[1269302400000,1.09806],[1269388800000,1.10477],[1269475200000,1.09198],[1269561600000,1.09598],[1269648000000,1.09071],[1269734400000,1.09071],[1269820800000,1.09071],[1269907200000,1.09204],[1269993600000,1.09245],[1270080000000,1.09972],[1270166400000,1.09709],[1270252800000,1.09709],[1270339200000,1.09709],[1270425600000,1.09709],[1270512000000,1.09709],[1270598400000,1.09866],[1270684800000,1.09254],[1270771200000,1.08889],[1270857600000,1.09436],[1270944000000,1.09436],[1271030400000,1.09436],[1271116800000,1.10488],[1271203200000,1.10339],[1271289600000,1.1088],[1271376000000,1.10588],[1271462400000,1.10742],[1271548800000,1.10742],[1271635200000,1.10742],[1271721600000,1.09776],[1271808000000,1.10819],[1271894400000,1.10464],[1271980800000,1.09953],[1272067200000,1.09999],[1272153600000,1.09999],[1272240000000,1.09999],[1272326400000,1.10351],[1272412800000,1.09988],[1272499200000,1.0906],[1272585600000,1.0914],[1272672000000,1.09683],[1272758400000,1.09683],[1272844800000,1.09683],[1272931200000,1.09683],[1273017600000,1.09683],[1273104000000,1.06239],[1273190400000,1.03864],[1273276800000,1.03473],[1273363200000,1.03473],[1273449600000,1.03473],[1273536000000,1.03473],[1273622400000,1.04225],[1273708800000,1.04977],[1273795200000,1.04677],[1273881600000,1.03411],[1273968000000,null],[1274054400000,1.03411],[1274140800000,1.01918],[1274227200000,1.03096],[1274313600000,1.01221],[1274400000000,1.00377],[1274486400000,1.00748],[1274572800000,1.00748],[1274659200000,1.00748],[1274745600000,1.00748],[1274832000000,0.985738],[1274918400000,1.00581],[1275004800000,1.00478],[1275091200000,1.0162],[1275177600000,1.0162],[1275264000000,1.0162],[1275350400000,1.01355],[1275436800000,1.00173],[1275523200000,1.0122],[1275609600000,1.02119],[1275696000000,1.00038],[1275782400000,1.00038],[1275868800000,1.00038],[1275955200000,0.982148],[1276041600000,0.979052],[1276128000000,0.988764],[1276214400000,0.995657],[1276300800000,1.00193],[1276387200000,1.00193],[1276473600000,1.00193],[1276560000000,1.01337],[1276646400000,1.00829],[1276732800000,1.0118],[1276819200000,1.02174],[1276905600000,1.02392],[1276992000000,1.02392],[1277078400000,1.02392],[1277164800000,1.02988],[1277251200000,1.0145],[1277337600000,1.02041],[1277424000000,1.01299],[1277510400000,1.01677],[1277596800000,1.01677],[1277683200000,1.01677],[1277769600000,1.01677],[1277856000000,1.01269],[1277942400000,1.01834],[1278028800000,1.01542],[1278115200000,1.03916],[1278201600000,1.03916],[1278288000000,1.03916],[1278374400000,1.0325],[1278460800000,1.03356],[1278547200000,1.03338],[1278633600000,1.04832],[1278720000000,1.05396],[1278806400000,1.05396],[1278892800000,1.05396],[1278979200000,1.05075],[1279065600000,1.05625],[1279152000000,1.06648],[1279238400000,1.07635],[1279324800000,1.08319],[1279411200000,1.08319],[1279497600000,1.08319],[1279584000000,1.07386],[1279670400000,1.06773],[1279756800000,1.07003],[1279843200000,1.07388],[1279929600000,1.07864],[1280016000000,1.07864],[1280102400000,1.07864],[1280188800000,1.07622],[1280275200000,1.08741],[1280361600000,1.08179],[1280448000000,1.08924],[1280534400000,1.09003],[1280620800000,1.09003],[1280707200000,1.09003],[1280793600000,1.10265],[1280880000000,1.11409],[1280966400000,1.11047],[1281052800000,1.10883],[1281139200000,1.10833],[1281225600000,null],[1281312000000,1.10833],[1281398400000,1.11312],[1281484800000,1.10199],[1281571200000,1.08341],[1281657600000,1.06471],[1281744000000,1.06276],[1281830400000,1.06276],[1281916800000,1.06276],[1282003200000,1.0655],[1282089600000,1.07564],[1282176000000,1.07591],[1282262400000,1.073],[1282348800000,1.05838],[1282435200000,null],[1282521600000,null],[1282608000000,1.05835],[1282694400000,1.05835],[1282780800000,1.05075],[1282867200000,1.06205],[1282953600000,1.06958],[1283040000000,1.06958],[1283126400000,1.06958],[1283212800000,1.06692],[1283299200000,1.06511],[1283385600000,1.07971],[1283472000000,1.08638],[1283558400000,1.0898],[1283644800000,1.0898],[1283731200000,1.0898],[1283817600000,1.09458],[1283904000000,1.08153],[1283990400000,1.08306],[1284076800000,1.0872],[1284163200000,1.0936],[1284249600000,1.0936],[1284336000000,1.0936],[1284422400000,1.10227],[1284508800000,1.10285],[1284595200000,1.11868],[1284681600000,1.12353],[1284768000000,1.12059],[1284854400000,1.12059],[1284940800000,1.12059],[1285027200000,1.12809],[1285113600000,1.13603],[1285200000000,1.15947],[1285286400000,1.14571],[1285372800000,1.15218],[1285459200000,1.15218],[1285545600000,1.15218],[1285632000000,1.16291],[1285718400000,1.15477],[1285804800000,1.17659],[1285891200000,1.18086],[1285977600000,1.17778],[1286064000000,1.17778],[1286150400000,1.17778],[1286236800000,1.17324],[1286323200000,1.17676],[1286409600000,1.17858],[1286496000000,1.18554],[1286582400000,1.17787],[1286668800000,1.17787],[1286755200000,1.17787],[1286841600000,1.18894],[1286928000000,1.18341],[1287014400000,1.1915],[1287100800000,1.20773],[1287187200000,1.20817],[1287273600000,1.20817],[1287360000000,1.20817],[1287446400000,1.18379],[1287532800000,1.17458],[1287619200000,1.17771],[1287705600000,1.19654],[1287792000000,1.19098],[1287878400000,1.19098],[1287964800000,1.19098],[1288051200000,1.20674],[1288137600000,1.18315],[1288224000000,1.17025],[1288310400000,1.17675],[1288396800000,1.17106],[1288483200000,1.17106],[1288569600000,1.17106],[1288656000000,1.18861],[1288742400000,1.19065],[1288828800000,1.19033],[1288915200000,1.21892],[1289001600000,1.19977],[1289088000000,1.19977],[1289174400000,1.19977],[1289260800000,1.18546],[1289347200000,1.18512],[1289433600000,1.17151],[1289520000000,1.16553],[1289606400000,1.16181],[1289692800000,1.16181],[1289779200000,1.16181],[1289865600000,1.15371],[1289952000000,1.15218],[1290038400000,1.13863],[1290124800000,1.15766],[1290211200000,1.15536],[1290297600000,1.15536],[1290384000000,1.15536],[1290470400000,1.15418],[1290556800000,1.14129],[1290643200000,1.13959],[1290729600000,1.14073],[1290816000000,1.12797],[1290902400000,1.12797],[1290988800000,1.12797],[1291075200000,1.13175],[1291161600000,1.12499],[1291248000000,1.13728],[1291334400000,1.14115],[1291420800000,1.15268],[1291507200000,1.15268],[1291593600000,1.15268],[1291680000000,1.15999],[1291766400000,1.16798],[1291852800000,1.14729],[1291939200000,1.15069],[1292025600000,1.1565],[1292112000000,1.1565],[1292198400000,1.1565],[1292284800000,1.15361],[1292371200000,1.17199],[1292457600000,1.17169],[1292544000000,1.1664],[1292630400000,1.17039],[1292716800000,1.17039],[1292803200000,1.17039],[1292889600000,1.1651],[1292976000000,1.16666],[1293062400000,1.16262],[1293148800000,1.16072],[1293235200000,1.16023],[1293321600000,1.16023],[1293408000000,1.16023],[1293494400000,1.16493],[1293580800000,1.1676],[1293667200000,1.16323]], 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: [[1263513600000, 1.119673],[1263513600000, 1.119673],[1266192000000, 1.097891],[1268611200000, 1.111426],[1271289600000, 1.099634],[1273881600000, 1.035734],[1276560000000, 1.009524],[1279152000000, 1.061498],[1281830400000, 1.079923],[1284508800000, 1.115231],[1287100800000, 1.185244],[1289779200000, 1.163721],[1292371200000, 1.159240]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });