$(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: [[1420070400000,4.47038],[1420156800000,4.47038],[1420243200000,4.47038],[1420329600000,4.47038],[1420416000000,4.47038],[1420502400000,4.47038],[1420588800000,4.37454],[1420675200000,4.37454],[1420761600000,null],[1420848000000,4.3201],[1420934400000,4.3201],[1421020800000,4.3201],[1421107200000,4.35956],[1421193600000,4.35226],[1421280000000,null],[1421366400000,4.33389],[1421452800000,4.30066],[1421539200000,4.26078],[1421625600000,4.26078],[1421712000000,4.24234],[1421798400000,4.24049],[1421884800000,4.22349],[1421971200000,null],[1422057600000,4.26709],[1422144000000,4.26709],[1422230400000,4.26709],[1422316800000,4.18743],[1422403200000,4.2407],[1422489600000,4.24161],[1422576000000,4.27206],[1422662400000,4.31967],[1422748800000,4.31967],[1422835200000,4.31967],[1422921600000,4.33849],[1423008000000,4.39757],[1423094400000,4.57252],[1423180800000,4.9517],[1423267200000,null],[1423353600000,6.33585],[1423440000000,6.33585],[1423526400000,6.85891],[1423612800000,6.69687],[1423699200000,6.8732],[1423785600000,6.73238],[1423872000000,7.0046],[1423958400000,7.0046],[1424044800000,7.0046],[1424131200000,7.09811],[1424217600000,7.18828],[1424304000000,7.30603],[1424390400000,7.42359],[1424476800000,7.60822],[1424563200000,7.60822],[1424649600000,7.60822],[1424736000000,7.65992],[1424822400000,7.65664],[1424908800000,7.62578],[1424995200000,8.18204],[1425081600000,7.56459],[1425168000000,7.56459],[1425254400000,7.56459],[1425340800000,7.27014],[1425427200000,6.70456],[1425513600000,6.38443],[1425600000000,6.15571],[1425686400000,6.12236],[1425772800000,6.12236],[1425859200000,6.12236],[1425945600000,6.12236],[1426032000000,5.73201],[1426118400000,5.59455],[1426204800000,5.51185],[1426291200000,5.54522],[1426377600000,5.54522],[1426464000000,5.54522],[1426550400000,5.54073],[1426636800000,5.6893],[1426723200000,5.98573],[1426809600000,5.97573],[1426896000000,5.99705],[1426982400000,5.99705],[1427068800000,5.99705],[1427155200000,6.04436],[1427241600000,6.16564],[1427328000000,6.27141],[1427414400000,6.31838],[1427500800000,6.32948],[1427587200000,6.32948],[1427673600000,6.32948],[1427760000000,6.21048],[1427846400000,6.17598],[1427932800000,6.21918],[1428019200000,6.26388],[1428105600000,6.20934],[1428192000000,6.20934],[1428278400000,6.20934],[1428364800000,6.24736],[1428451200000,6.28345],[1428537600000,6.35705],[1428624000000,6.28607],[1428710400000,6.01934],[1428796800000,6.01934],[1428883200000,6.01934],[1428969600000,6.01934],[1429056000000,6.03905],[1429142400000,5.73554],[1429228800000,5.6985],[1429315200000,5.66645],[1429401600000,5.66645],[1429488000000,5.66645],[1429574400000,5.98215],[1429660800000,6.00648],[1429747200000,6.05094],[1429833600000,6.03968],[1429920000000,6.05558],[1430006400000,6.05558],[1430092800000,6.05558],[1430179200000,6.18948],[1430265600000,6.07925],[1430352000000,5.77162],[1430438400000,5.88819],[1430524800000,5.88819],[1430611200000,5.88819],[1430697600000,5.88819],[1430784000000,5.88819],[1430870400000,5.8468],[1430956800000,5.83248],[1431043200000,5.78996],[1431129600000,5.67956],[1431216000000,5.67956],[1431302400000,5.67956],[1431388800000,5.67956],[1431475200000,5.65335],[1431561600000,5.6475],[1431648000000,5.75308],[1431734400000,5.79911],[1431820800000,5.79911],[1431907200000,5.79911],[1431993600000,6.20237],[1432080000000,5.86879],[1432166400000,5.69196],[1432252800000,5.62068],[1432339200000,5.67331],[1432425600000,5.67331],[1432512000000,5.67331],[1432598400000,5.64834],[1432684800000,5.65516],[1432771200000,null],[1432857600000,5.55454],[1432944000000,5.60079],[1433030400000,5.60079],[1433116800000,5.60079],[1433203200000,5.60079],[1433289600000,5.62851],[1433376000000,5.66832],[1433462400000,5.70402],[1433548800000,5.69165],[1433635200000,5.69165],[1433721600000,5.69165],[1433808000000,5.66883],[1433894400000,5.71653],[1433980800000,5.74912],[1434067200000,5.70416],[1434153600000,5.69391],[1434240000000,5.69391],[1434326400000,5.69391],[1434412800000,5.78772],[1434499200000,5.99273],[1434585600000,5.87341],[1434672000000,5.83766],[1434758400000,5.85825],[1434844800000,5.85825],[1434931200000,5.85825],[1435017600000,5.93311],[1435104000000,5.78397],[1435190400000,5.69867],[1435276800000,5.69231],[1435363200000,5.63771],[1435449600000,5.63771],[1435536000000,5.63771],[1435622400000,5.63771],[1435708800000,5.60777],[1435795200000,5.5648],[1435881600000,5.5457],[1435968000000,5.55878],[1436054400000,5.55878],[1436140800000,5.55878],[1436227200000,5.57303],[1436313600000,5.65465],[1436400000000,5.7347],[1436486400000,5.73222],[1436572800000,5.87067],[1436659200000,5.87067],[1436745600000,5.87067],[1436832000000,5.85202],[1436918400000,5.84652],[1437004800000,5.89438],[1437091200000,5.81563],[1437177600000,5.83929],[1437264000000,5.83929],[1437350400000,5.83929],[1437436800000,5.80703],[1437523200000,5.81718],[1437609600000,5.82353],[1437696000000,5.87331],[1437782400000,5.84853],[1437868800000,5.84853],[1437955200000,5.84853],[1438041600000,5.84853],[1438128000000,5.89544],[1438214400000,5.88209],[1438300800000,5.71518],[1438387200000,5.5918],[1438473600000,5.5918],[1438560000000,5.5918],[1438646400000,5.73107],[1438732800000,5.7417],[1438819200000,5.62873],[1438905600000,5.58845],[1438992000000,5.51321],[1439078400000,5.51321],[1439164800000,5.51321],[1439251200000,5.55285],[1439337600000,5.62892],[1439424000000,5.69491],[1439510400000,5.67525],[1439596800000,5.8061],[1439683200000,5.8061],[1439769600000,5.8061],[1439856000000,5.86],[1439942400000,5.8686],[1440028800000,5.83817],[1440115200000,5.87939],[1440201600000,5.92939],[1440288000000,5.92939],[1440374400000,5.92939],[1440460800000,null],[1440547200000,6.16223],[1440633600000,5.77395],[1440720000000,5.67891],[1440806400000,5.62947],[1440892800000,5.62947],[1440979200000,5.62947],[1441065600000,5.78277],[1441152000000,null],[1441238400000,null],[1441324800000,null],[1441411200000,null],[1441497600000,null],[1441584000000,null],[1441670400000,null],[1441756800000,null],[1441843200000,null],[1441929600000,null],[1442016000000,null],[1442102400000,null],[1442188800000,null],[1442275200000,null],[1442361600000,null],[1442448000000,5.83808],[1442534400000,null],[1442620800000,5.87914],[1442707200000,5.87914],[1442793600000,5.87914],[1442880000000,5.87279],[1442966400000,5.77779],[1443052800000,5.72278],[1443139200000,5.70407],[1443225600000,5.70941],[1443312000000,5.70941],[1443398400000,5.70941],[1443484800000,5.69496],[1443571200000,5.69446],[1443657600000,5.62041],[1443744000000,5.55649],[1443830400000,5.55935],[1443916800000,5.55935],[1444003200000,5.55935],[1444089600000,5.61566],[1444176000000,5.61743],[1444262400000,5.665],[1444348800000,5.66391],[1444435200000,5.79179],[1444521600000,5.79179],[1444608000000,5.79179],[1444694400000,5.87353],[1444780800000,5.88482],[1444867200000,5.88482],[1444953600000,5.86695],[1445040000000,5.70847],[1445126400000,5.70847],[1445212800000,5.70847],[1445299200000,5.7826],[1445385600000,5.88895],[1445472000000,6.00383],[1445558400000,5.88252],[1445644800000,5.88346],[1445731200000,5.88346],[1445817600000,5.88346],[1445904000000,5.90976],[1445990400000,5.89227],[1446076800000,5.90872],[1446163200000,5.86291],[1446249600000,5.94039],[1446336000000,5.94039],[1446422400000,5.94039],[1446508800000,5.96971],[1446595200000,5.93938],[1446681600000,5.95595],[1446768000000,5.88551],[1446854400000,5.78362],[1446940800000,5.78362],[1447027200000,5.78362],[1447113600000,5.75199],[1447200000000,5.74559],[1447286400000,5.77669],[1447372800000,5.81524],[1447459200000,5.85014],[1447545600000,5.85014],[1447632000000,5.85014],[1447718400000,5.86797],[1447804800000,5.97145],[1447891200000,5.99582],[1447977600000,5.99456],[1448064000000,6.04436],[1448150400000,6.04436],[1448236800000,6.04436],[1448323200000,6.03307],[1448409600000,5.98689],[1448496000000,5.90678],[1448582400000,5.86121],[1448668800000,5.9276],[1448755200000,5.9276],[1448841600000,5.9276],[1448928000000,5.93026],[1449014400000,5.92143],[1449100800000,5.87318],[1449187200000,5.74863],[1449273600000,5.97754],[1449360000000,5.97754],[1449446400000,5.97754],[1449532800000,5.87667],[1449619200000,5.74719],[1449705600000,5.7712],[1449792000000,5.89365],[1449878400000,6.01224],[1449964800000,6.01224],[1450051200000,6.01224],[1450137600000,5.99027],[1450224000000,5.91979],[1450310400000,5.95416],[1450396800000,5.92728],[1450483200000,5.96059],[1450569600000,5.96059],[1450656000000,5.96059],[1450742400000,6.02902],[1450828800000,5.98212],[1450915200000,5.9111],[1451001600000,5.92738],[1451088000000,5.97204],[1451174400000,5.97204],[1451260800000,5.97204],[1451347200000,6.14716],[1451433600000,6.15041]], 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: [[1421280000000, 4.327452],[1421280000000, 4.327452],[1423958400000, 6.602820],[1426377600000, 6.154480],[1429056000000, 6.043237],[1431648000000, 5.751435],[1434326400000, 5.730763],[1436918400000, 5.768887],[1439596800000, 5.723768],[1442275200000, 5.775240],[1444867200000, 5.779038],[1447545600000, 5.905192],[1450137600000, 5.956543]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });