$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1451606400000,3.69809],[1451692800000,3.69809],[1451779200000,3.69809],[1451865600000,3.69809],[1451952000000,3.69809],[1452038400000,3.64728],[1452124800000,3.58678],[1452211200000,3.58678],[1452297600000,3.58678],[1452384000000,3.58678],[1452470400000,3.58678],[1452556800000,3.57654],[1452643200000,3.53722],[1452729600000,3.59544],[1452816000000,3.63319],[1452902400000,3.67212],[1452988800000,3.70181],[1453075200000,3.70181],[1453161600000,3.74484],[1453248000000,3.77654],[1453334400000,3.74788],[1453420800000,3.72722],[1453507200000,3.76848],[1453593600000,3.76848],[1453680000000,3.76848],[1453766400000,3.77388],[1453852800000,3.77609],[1453939200000,3.78087],[1454025600000,3.82442],[1454112000000,3.8861],[1454198400000,3.8861],[1454284800000,3.8861],[1454371200000,3.86817],[1454457600000,3.93203],[1454544000000,3.90679],[1454630400000,3.93743],[1454716800000,3.9427],[1454803200000,3.9427],[1454889600000,3.9427],[1454976000000,3.93541],[1455062400000,3.94341],[1455148800000,3.94584],[1455235200000,3.96787],[1455321600000,3.97782],[1455408000000,3.97782],[1455494400000,3.97782],[1455580800000,4.1295],[1455667200000,4.14763],[1455753600000,4.09431],[1455840000000,4.06007],[1455926400000,4.11716],[1456012800000,4.11716],[1456099200000,4.11716],[1456185600000,4.14221],[1456272000000,4.17226],[1456358400000,4.16313],[1456444800000,4.1717],[1456531200000,4.13821],[1456617600000,4.13821],[1456704000000,4.13821],[1456790400000,4.1346],[1456876800000,4.13408],[1456963200000,4.0922],[1457049600000,4.00789],[1457136000000,4.0665],[1457222400000,4.0665],[1457308800000,4.0665],[1457395200000,4.0665],[1457481600000,4.0665],[1457568000000,4.02014],[1457654400000,3.91402],[1457740800000,3.9743],[1457827200000,4.00118],[1457913600000,4.00118],[1458000000000,4.08206],[1458086400000,4.12893],[1458172800000,4.11485],[1458259200000,4.11915],[1458345600000,4.05265],[1458432000000,4.05265],[1458518400000,4.05265],[1458604800000,4.1055],[1458691200000,4.02057],[1458777600000,4.00031],[1458864000000,4.02984],[1458950400000,4.00193],[1459036800000,4.00193],[1459123200000,4.00193],[1459209600000,4.03414],[1459296000000,4.06131],[1459382400000,4.04674],[1459468800000,4.06037],[1459555200000,4.0387],[1459641600000,4.0387],[1459728000000,4.0387],[1459814400000,4.01404],[1459900800000,4.02772],[1459987200000,4.0008],[1460073600000,3.9873],[1460160000000,3.95857],[1460246400000,null],[1460332800000,null],[1460419200000,3.95134],[1460505600000,3.95485],[1460592000000,3.93473],[1460678400000,3.95487],[1460764800000,3.93393],[1460851200000,3.93393],[1460937600000,3.93393],[1461024000000,3.93401],[1461110400000,3.93345],[1461196800000,3.92992],[1461283200000,3.91864],[1461369600000,3.90171],[1461456000000,3.90171],[1461542400000,3.90171],[1461628800000,3.90208],[1461715200000,3.89367],[1461801600000,3.88234],[1461888000000,3.88881],[1461974400000,3.88632],[1462060800000,3.88632],[1462147200000,3.88632],[1462233600000,3.88632],[1462320000000,3.88632],[1462406400000,3.87586],[1462492800000,3.86215],[1462579200000,3.8699],[1462665600000,3.8699],[1462752000000,3.8699],[1462838400000,3.8699],[1462924800000,3.86626],[1463011200000,3.89345],[1463097600000,3.8831],[1463184000000,3.90307],[1463270400000,3.90307],[1463356800000,3.90307],[1463443200000,3.89317],[1463529600000,3.87243],[1463616000000,3.86462],[1463702400000,3.8576],[1463788800000,3.84905],[1463875200000,null],[1463961600000,3.84905],[1464048000000,3.83313],[1464134400000,3.83325],[1464220800000,3.82717],[1464307200000,3.82753],[1464393600000,3.83072],[1464480000000,3.83072],[1464566400000,3.83072],[1464652800000,3.82361],[1464739200000,3.8225],[1464825600000,3.81562],[1464912000000,3.80604],[1464998400000,3.79584],[1465084800000,3.79584],[1465171200000,3.79584],[1465257600000,3.80518],[1465344000000,3.79819],[1465430400000,3.79801],[1465516800000,3.81158],[1465603200000,3.81389],[1465689600000,3.81389],[1465776000000,3.81389],[1465862400000,3.79113],[1465948800000,3.77856],[1466035200000,null],[1466121600000,3.7814],[1466208000000,3.77944],[1466294400000,3.77944],[1466380800000,3.77944],[1466467200000,3.77944],[1466553600000,3.78205],[1466640000000,3.78467],[1466726400000,3.78183],[1466812800000,3.75505],[1466899200000,3.75505],[1466985600000,3.75505],[1467072000000,3.75505],[1467158400000,3.75505],[1467244800000,3.74098],[1467331200000,3.73731],[1467417600000,3.72936],[1467504000000,3.72936],[1467590400000,3.72936],[1467676800000,3.72359],[1467763200000,3.72327],[1467849600000,3.71498],[1467936000000,3.71331],[1468022400000,3.7149],[1468108800000,3.7149],[1468195200000,3.7149],[1468281600000,3.7144],[1468368000000,3.71613],[1468454400000,3.70994],[1468540800000,3.70988],[1468627200000,3.71265],[1468713600000,3.71265],[1468800000000,3.71265],[1468886400000,3.70824],[1468972800000,3.70661],[1469059200000,3.71764],[1469145600000,3.71879],[1469232000000,3.71817],[1469318400000,3.71817],[1469404800000,3.71817],[1469491200000,3.71093],[1469577600000,3.71558],[1469664000000,3.72039],[1469750400000,null],[1469836800000,3.72998],[1469923200000,3.72998],[1470009600000,3.72998],[1470096000000,3.7321],[1470182400000,3.74289],[1470268800000,3.7441],[1470355200000,3.7354],[1470441600000,3.73407],[1470528000000,3.73407],[1470614400000,3.73407],[1470700800000,3.72624],[1470787200000,3.72553],[1470873600000,3.74211],[1470960000000,3.74379],[1471046400000,3.76745],[1471132800000,3.76745],[1471219200000,3.76745],[1471305600000,3.78404],[1471392000000,3.78544],[1471478400000,3.78082],[1471564800000,3.79612],[1471651200000,3.7977],[1471737600000,3.7977],[1471824000000,3.7977],[1471910400000,3.80267],[1471996800000,3.81057],[1472083200000,3.81057],[1472169600000,3.80548],[1472256000000,3.81375],[1472342400000,3.81375],[1472428800000,3.81375],[1472515200000,3.81606],[1472601600000,3.84207],[1472688000000,3.90705],[1472774400000,3.9846],[1472860800000,3.98773],[1472947200000,3.98773],[1473033600000,3.98773],[1473120000000,4.01144],[1473206400000,4.02015],[1473292800000,4.01065],[1473379200000,3.99841],[1473465600000,3.99294],[1473552000000,3.99294],[1473638400000,3.99294],[1473724800000,3.98635],[1473811200000,3.95556],[1473897600000,3.94384],[1473984000000,3.92706],[1474070400000,3.88127],[1474156800000,3.88127],[1474243200000,3.88127],[1474329600000,3.86321],[1474416000000,3.86855],[1474502400000,3.89354],[1474588800000,3.88692],[1474675200000,3.89667],[1474761600000,3.89667],[1474848000000,3.89667],[1474934400000,3.88394],[1475020800000,3.87308],[1475107200000,3.88047],[1475193600000,3.88609],[1475280000000,3.88759],[1475366400000,3.88759],[1475452800000,3.88759],[1475539200000,3.88522],[1475625600000,3.87678],[1475712000000,3.88013],[1475798400000,3.88134],[1475884800000,3.87325],[1475971200000,3.87325],[1476057600000,3.87325],[1476144000000,3.85078],[1476230400000,3.84754],[1476316800000,3.84171],[1476403200000,3.83349],[1476489600000,3.83349],[1476576000000,3.83349],[1476662400000,3.83349],[1476748800000,3.82667],[1476835200000,3.80926],[1476921600000,3.81388],[1477008000000,3.81489],[1477094400000,3.79444],[1477180800000,3.79444],[1477267200000,3.79444],[1477353600000,3.78516],[1477440000000,3.77651],[1477526400000,3.77906],[1477612800000,3.76605],[1477699200000,3.76037],[1477785600000,3.76037],[1477872000000,3.76037],[1477958400000,3.76628],[1478044800000,null],[1478131200000,3.78184],[1478217600000,3.78423],[1478304000000,3.78516],[1478390400000,3.78516],[1478476800000,3.78516],[1478563200000,3.77447],[1478649600000,3.7663],[1478736000000,3.7681],[1478822400000,3.76284],[1478908800000,3.7666],[1478995200000,3.7666],[1479081600000,3.7666],[1479168000000,3.76254],[1479254400000,3.79344],[1479340800000,3.82982],[1479427200000,3.7926],[1479513600000,3.76238],[1479600000000,3.76238],[1479686400000,3.76238],[1479772800000,3.73989],[1479859200000,3.72669],[1479945600000,3.70819],[1480032000000,3.6979],[1480118400000,3.71749],[1480204800000,3.71749],[1480291200000,3.71749],[1480377600000,3.71405],[1480464000000,3.71018],[1480550400000,3.71307],[1480636800000,3.72331],[1480723200000,3.75957],[1480809600000,3.75957],[1480896000000,3.75957],[1480982400000,3.79594],[1481068800000,3.79265],[1481155200000,3.7813],[1481241600000,3.74608],[1481328000000,3.74683],[1481414400000,3.74683],[1481500800000,3.74683],[1481587200000,3.78708],[1481673600000,3.78265],[1481760000000,3.80979],[1481846400000,3.79182],[1481932800000,3.78437],[1482019200000,3.78437],[1482105600000,3.78437],[1482192000000,3.7962],[1482278400000,3.80478],[1482364800000,3.80578],[1482451200000,3.7835],[1482537600000,3.78172],[1482624000000,3.78172],[1482710400000,3.78172],[1482796800000,3.79595],[1482883200000,3.79595],[1482969600000,3.86433],[1483056000000,3.90925]], 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, 3.700616],[1452816000000, 3.700616],[1455494400000, 4.032121],[1458000000000, 4.049009],[1460678400000, 3.951318],[1463270400000, 3.864589],[1465948800000, 3.786895],[1468540800000, 3.718206],[1471219200000, 3.774029],[1473897600000, 3.935224],[1476489600000, 3.829544],[1479168000000, 3.757732],[1481760000000, 3.787296]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });