$(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: [[1451606400000,6.1847],[1451692800000,6.1847],[1451779200000,6.1847],[1451865600000,6.1847],[1451952000000,6.1847],[1452038400000,5.93212],[1452124800000,5.82067],[1452211200000,5.82067],[1452297600000,5.82067],[1452384000000,5.82067],[1452470400000,5.82067],[1452556800000,5.86344],[1452643200000,5.78678],[1452729600000,5.8841],[1452816000000,5.96606],[1452902400000,5.98204],[1452988800000,6.0304],[1453075200000,6.0304],[1453161600000,6.01595],[1453248000000,6.08345],[1453334400000,6.01714],[1453420800000,5.94342],[1453507200000,6.00968],[1453593600000,6.00968],[1453680000000,6.00968],[1453766400000,6.00883],[1453852800000,5.9919],[1453939200000,6.05658],[1454025600000,6.15776],[1454112000000,6.28544],[1454198400000,6.28544],[1454284800000,6.28544],[1454371200000,6.30188],[1454457600000,6.41254],[1454544000000,6.38807],[1454630400000,6.57169],[1454716800000,6.57718],[1454803200000,6.57718],[1454889600000,6.57718],[1454976000000,6.47693],[1455062400000,6.54644],[1455148800000,6.59351],[1455235200000,6.65329],[1455321600000,6.68372],[1455408000000,6.68372],[1455494400000,6.68372],[1455580800000,6.82276],[1455667200000,6.84724],[1455753600000,6.76676],[1455840000000,6.69392],[1455926400000,6.80703],[1456012800000,6.80703],[1456099200000,6.80703],[1456185600000,6.8245],[1456272000000,6.86148],[1456358400000,6.84267],[1456444800000,6.89454],[1456531200000,6.82452],[1456617600000,6.82452],[1456704000000,6.82452],[1456790400000,6.7751],[1456876800000,6.77442],[1456963200000,6.72235],[1457049600000,6.59348],[1457136000000,6.711],[1457222400000,6.711],[1457308800000,6.711],[1457395200000,6.711],[1457481600000,6.711],[1457568000000,6.6584],[1457654400000,6.45516],[1457740800000,6.65033],[1457827200000,6.69531],[1457913600000,6.69531],[1458000000000,6.88301],[1458086400000,6.96379],[1458172800000,6.90351],[1458259200000,7.04053],[1458345600000,6.94413],[1458432000000,6.94413],[1458518400000,6.94413],[1458604800000,7.04108],[1458691200000,6.86804],[1458777600000,6.82786],[1458864000000,6.84343],[1458950400000,6.79603],[1459036800000,6.79603],[1459123200000,6.79603],[1459209600000,6.85072],[1459296000000,6.9641],[1459382400000,6.97948],[1459468800000,7.01086],[1459555200000,7.0328],[1459641600000,7.0328],[1459728000000,7.0328],[1459814400000,6.98675],[1459900800000,6.98313],[1459987200000,6.90166],[1460073600000,6.84533],[1460160000000,6.78025],[1460246400000,null],[1460332800000,null],[1460419200000,6.806],[1460505600000,6.78433],[1460592000000,6.7161],[1460678400000,6.71258],[1460764800000,6.69026],[1460851200000,6.69026],[1460937600000,6.69026],[1461024000000,6.69153],[1461110400000,6.70754],[1461196800000,6.74416],[1461283200000,6.6872],[1461369600000,6.56106],[1461456000000,6.56106],[1461542400000,6.56106],[1461628800000,6.49991],[1461715200000,6.52028],[1461801600000,6.48951],[1461888000000,6.51934],[1461974400000,6.53624],[1462060800000,6.53624],[1462147200000,6.53624],[1462233600000,6.53624],[1462320000000,6.53624],[1462406400000,6.59759],[1462492800000,6.49686],[1462579200000,6.50558],[1462665600000,6.50558],[1462752000000,6.50558],[1462838400000,6.50558],[1462924800000,6.48415],[1463011200000,6.53061],[1463097600000,6.52341],[1463184000000,6.57496],[1463270400000,6.57496],[1463356800000,6.57496],[1463443200000,6.57782],[1463529600000,6.5575],[1463616000000,6.49143],[1463702400000,6.43852],[1463788800000,6.3963],[1463875200000,null],[1463961600000,6.3963],[1464048000000,6.35072],[1464134400000,6.32791],[1464220800000,6.33195],[1464307200000,6.35524],[1464393600000,6.39277],[1464480000000,6.39277],[1464566400000,6.39277],[1464652800000,6.3797],[1464739200000,6.39302],[1464825600000,6.37683],[1464912000000,6.38391],[1464998400000,6.35811],[1465084800000,6.35811],[1465171200000,6.35811],[1465257600000,6.47757],[1465344000000,6.51394],[1465430400000,6.56552],[1465516800000,6.54649],[1465603200000,6.48697],[1465689600000,6.48697],[1465776000000,6.48697],[1465862400000,6.41115],[1465948800000,6.30854],[1466035200000,null],[1466121600000,6.25499],[1466208000000,6.30467],[1466294400000,6.30467],[1466380800000,6.30467],[1466467200000,6.30467],[1466553600000,6.40209],[1466640000000,6.41601],[1466726400000,6.50413],[1466812800000,6.17843],[1466899200000,6.17843],[1466985600000,6.17843],[1467072000000,6.17843],[1467158400000,6.17843],[1467244800000,6.2275],[1467331200000,6.21354],[1467417600000,6.28637],[1467504000000,6.28637],[1467590400000,6.28637],[1467676800000,6.23868],[1467763200000,6.22923],[1467849600000,6.17063],[1467936000000,6.21],[1468022400000,6.20949],[1468108800000,6.20949],[1468195200000,6.20949],[1468281600000,6.21106],[1468368000000,6.23811],[1468454400000,6.23814],[1468540800000,6.2716],[1468627200000,6.25988],[1468713600000,6.25988],[1468800000000,6.25988],[1468886400000,6.27188],[1468972800000,6.26188],[1469059200000,6.24458],[1469145600000,6.25628],[1469232000000,6.27463],[1469318400000,6.27463],[1469404800000,6.27463],[1469491200000,6.24671],[1469577600000,6.2473],[1469664000000,6.23661],[1469750400000,null],[1469836800000,6.31848],[1469923200000,6.31848],[1470009600000,6.31848],[1470096000000,6.35907],[1470182400000,6.42552],[1470268800000,6.44422],[1470355200000,6.43395],[1470441600000,6.45951],[1470528000000,6.45951],[1470614400000,6.45951],[1470700800000,6.43143],[1470787200000,6.44348],[1470873600000,6.50241],[1470960000000,6.50541],[1471046400000,6.55078],[1471132800000,6.55078],[1471219200000,6.55078],[1471305600000,6.57658],[1471392000000,6.6293],[1471478400000,6.59332],[1471564800000,6.63855],[1471651200000,6.65525],[1471737600000,6.65525],[1471824000000,6.65525],[1471910400000,6.64687],[1471996800000,6.65351],[1472083200000,6.65351],[1472169600000,6.63142],[1472256000000,6.64241],[1472342400000,6.64241],[1472428800000,6.64241],[1472515200000,6.57313],[1472601600000,6.59555],[1472688000000,6.66934],[1472774400000,6.79714],[1472860800000,6.78833],[1472947200000,6.78833],[1473033600000,6.78833],[1473120000000,6.86333],[1473206400000,6.90518],[1473292800000,6.95367],[1473379200000,6.98097],[1473465600000,6.93442],[1473552000000,6.93442],[1473638400000,6.93442],[1473724800000,6.87351],[1473811200000,6.83594],[1473897600000,6.80262],[1473984000000,6.81857],[1474070400000,6.73583],[1474156800000,6.73583],[1474243200000,6.73583],[1474329600000,6.70213],[1474416000000,6.71574],[1474502400000,6.74862],[1474588800000,6.7983],[1474675200000,6.79883],[1474761600000,6.79883],[1474848000000,6.79883],[1474934400000,6.7767],[1475020800000,6.75745],[1475107200000,6.77709],[1475193600000,6.75159],[1475280000000,6.70221],[1475366400000,6.70221],[1475452800000,6.70221],[1475539200000,6.78369],[1475625600000,6.72333],[1475712000000,6.76152],[1475798400000,6.74543],[1475884800000,6.72383],[1475971200000,6.72383],[1476057600000,6.72383],[1476144000000,6.73107],[1476230400000,6.70564],[1476316800000,6.6179],[1476403200000,6.61736],[1476489600000,6.61736],[1476576000000,6.61736],[1476662400000,6.61736],[1476748800000,6.5493],[1476835200000,6.53283],[1476921600000,6.5328],[1477008000000,6.52062],[1477094400000,6.45916],[1477180800000,6.45916],[1477267200000,6.45916],[1477353600000,6.46922],[1477440000000,6.46513],[1477526400000,6.46263],[1477612800000,6.44453],[1477699200000,6.43006],[1477785600000,6.43006],[1477872000000,6.43006],[1477958400000,6.45344],[1478044800000,null],[1478131200000,6.55586],[1478217600000,6.55724],[1478304000000,6.56934],[1478390400000,6.56934],[1478476800000,6.56934],[1478563200000,6.53247],[1478649600000,6.51912],[1478736000000,6.49361],[1478822400000,6.39384],[1478908800000,6.34001],[1478995200000,6.34001],[1479081600000,6.34001],[1479168000000,6.29871],[1479254400000,6.32877],[1479340800000,6.34554],[1479427200000,6.28183],[1479513600000,6.19507],[1479600000000,6.19507],[1479686400000,6.19507],[1479772800000,6.18656],[1479859200000,6.16267],[1479945600000,6.14395],[1480032000000,6.10101],[1480118400000,6.16594],[1480204800000,6.16594],[1480291200000,6.16594],[1480377600000,6.14751],[1480464000000,6.11163],[1480550400000,6.11055],[1480636800000,6.09851],[1480723200000,6.1395],[1480809600000,6.1395],[1480896000000,6.1395],[1480982400000,6.213],[1481068800000,6.25568],[1481155200000,6.30523],[1481241600000,6.22729],[1481328000000,6.14703],[1481414400000,6.14703],[1481500800000,6.14703],[1481587200000,6.22747],[1481673600000,6.23317],[1481760000000,6.30639],[1481846400000,6.16432],[1481932800000,6.21896],[1482019200000,6.21896],[1482105600000,6.21896],[1482192000000,6.23667],[1482278400000,6.22157],[1482364800000,6.24791],[1482451200000,6.22576],[1482537600000,6.22211],[1482624000000,6.22211],[1482710400000,6.22211],[1482796800000,6.24552],[1482883200000,6.24552],[1482969600000,6.35313],[1483056000000,6.43905]], 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: [[1452816000000, 6.012167],[1452816000000, 6.012167],[1455494400000, 6.671069],[1458000000000, 6.805191],[1460678400000, 6.741966],[1463270400000, 6.476883],[1465948800000, 6.359578],[1468540800000, 6.250476],[1471219200000, 6.547728],[1473897600000, 6.810004],[1476489600000, 6.595512],[1479168000000, 6.324995],[1481760000000, 6.225116]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });