$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1451606400000,16.974],[1451692800000,16.974],[1451779200000,16.974],[1451865600000,16.974],[1451952000000,16.974],[1452038400000,16.6936],[1452124800000,16.3843],[1452211200000,16.3843],[1452297600000,16.3843],[1452384000000,16.3843],[1452470400000,16.3843],[1452556800000,16.3975],[1452643200000,16.1926],[1452729600000,16.506],[1452816000000,16.6494],[1452902400000,16.7767],[1452988800000,16.9123],[1453075200000,16.9123],[1453161600000,17.1205],[1453248000000,17.3171],[1453334400000,17.1356],[1453420800000,17.0463],[1453507200000,17.3759],[1453593600000,17.3759],[1453680000000,17.3759],[1453766400000,17.3595],[1453852800000,17.3757],[1453939200000,17.4231],[1454025600000,17.6286],[1454112000000,17.946],[1454198400000,17.946],[1454284800000,17.946],[1454371200000,17.8697],[1454457600000,18.1255],[1454544000000,17.9746],[1454630400000,18.4576],[1454716800000,18.5647],[1454803200000,18.5647],[1454889600000,18.5647],[1454976000000,18.3673],[1455062400000,18.4888],[1455148800000,18.6308],[1455235200000,18.7632],[1455321600000,18.7111],[1455408000000,18.7111],[1455494400000,18.7111],[1455580800000,19.1668],[1455667200000,19.2708],[1455753600000,18.9515],[1455840000000,18.8453],[1455926400000,19.0812],[1456012800000,19.0812],[1456099200000,19.0812],[1456185600000,19.2554],[1456272000000,19.3507],[1456358400000,19.3105],[1456444800000,19.4316],[1456531200000,19.3],[1456617600000,19.3],[1456704000000,19.3],[1456790400000,19.2501],[1456876800000,19.3248],[1456963200000,19.1158],[1457049600000,18.8517],[1457136000000,19.1864],[1457222400000,19.1864],[1457308800000,19.1864],[1457395200000,19.1864],[1457481600000,19.1864],[1457568000000,18.9377],[1457654400000,18.4548],[1457740800000,18.7691],[1457827200000,18.896],[1457913600000,18.896],[1458000000000,19.295],[1458086400000,19.4903],[1458172800000,19.3934],[1458259200000,19.7207],[1458345600000,19.3751],[1458432000000,19.3751],[1458518400000,19.3751],[1458604800000,19.5651],[1458691200000,19.1783],[1458777600000,19.0193],[1458864000000,19.1785],[1458950400000,19.0456],[1459036800000,19.0456],[1459123200000,19.0456],[1459209600000,19.1989],[1459296000000,19.3299],[1459382400000,19.3908],[1459468800000,19.5043],[1459555200000,19.3952],[1459641600000,19.3952],[1459728000000,19.3952],[1459814400000,19.2428],[1459900800000,19.2106],[1459987200000,19.1413],[1460073600000,19.0777],[1460160000000,18.9913],[1460246400000,null],[1460332800000,null],[1460419200000,18.985],[1460505600000,18.966],[1460592000000,18.8609],[1460678400000,18.8054],[1460764800000,18.7515],[1460851200000,18.7515],[1460937600000,18.7515],[1461024000000,18.7977],[1461110400000,18.9909],[1461196800000,18.966],[1461283200000,18.8905],[1461369600000,18.7657],[1461456000000,18.7657],[1461542400000,18.7657],[1461628800000,18.759],[1461715200000,18.6899],[1461801600000,18.6877],[1461888000000,18.7303],[1461974400000,18.7686],[1462060800000,18.7686],[1462147200000,18.7686],[1462233600000,18.7686],[1462320000000,18.7686],[1462406400000,18.5756],[1462492800000,18.5038],[1462579200000,18.5195],[1462665600000,18.5195],[1462752000000,18.5195],[1462838400000,18.5195],[1462924800000,18.3993],[1463011200000,18.51],[1463097600000,18.4564],[1463184000000,18.572],[1463270400000,18.572],[1463356800000,18.572],[1463443200000,18.5397],[1463529600000,18.4533],[1463616000000,18.333],[1463702400000,18.3062],[1463788800000,18.2422],[1463875200000,null],[1463961600000,18.2422],[1464048000000,18.204],[1464134400000,18.1737],[1464220800000,18.2087],[1464307200000,18.2249],[1464393600000,18.276],[1464480000000,18.276],[1464566400000,18.276],[1464652800000,18.2218],[1464739200000,18.2488],[1464825600000,18.24],[1464912000000,18.2007],[1464998400000,18.1664],[1465084800000,18.1664],[1465171200000,18.1664],[1465257600000,18.3845],[1465344000000,18.4393],[1465430400000,18.5052],[1465516800000,18.4925],[1465603200000,18.4735],[1465689600000,18.4735],[1465776000000,18.4735],[1465862400000,18.4224],[1465948800000,18.3643],[1466035200000,null],[1466121600000,18.4099],[1466208000000,18.4582],[1466294400000,18.4582],[1466380800000,18.4582],[1466467200000,18.4582],[1466553600000,18.5664],[1466640000000,18.5895],[1466726400000,18.5806],[1466812800000,18.383],[1466899200000,18.383],[1466985600000,18.383],[1467072000000,18.383],[1467158400000,18.383],[1467244800000,18.4359],[1467331200000,18.4292],[1467417600000,18.4763],[1467504000000,18.4763],[1467590400000,18.4763],[1467676800000,18.4401],[1467763200000,18.4131],[1467849600000,18.3697],[1467936000000,18.4109],[1468022400000,18.4489],[1468108800000,18.4489],[1468195200000,18.4489],[1468281600000,18.4166],[1468368000000,18.4446],[1468454400000,18.4407],[1468540800000,18.4719],[1468627200000,18.4516],[1468713600000,18.4516],[1468800000000,18.4516],[1468886400000,18.4389],[1468972800000,18.3517],[1469059200000,18.2629],[1469145600000,18.3075],[1469232000000,18.2995],[1469318400000,18.2995],[1469404800000,18.2995],[1469491200000,18.2159],[1469577600000,18.2622],[1469664000000,18.2732],[1469750400000,null],[1469836800000,18.36],[1469923200000,18.36],[1470009600000,18.36],[1470096000000,18.4875],[1470182400000,18.5404],[1470268800000,18.5046],[1470355200000,18.4774],[1470441600000,18.5068],[1470528000000,18.5068],[1470614400000,18.5068],[1470700800000,18.4138],[1470787200000,18.4138],[1470873600000,18.5428],[1470960000000,18.4907],[1471046400000,18.601],[1471132800000,18.601],[1471219200000,18.601],[1471305600000,18.688],[1471392000000,18.7521],[1471478400000,18.6609],[1471564800000,18.7548],[1471651200000,18.7412],[1471737600000,18.7412],[1471824000000,18.7412],[1471910400000,18.7184],[1471996800000,18.7579],[1472083200000,18.7579],[1472169600000,18.7188],[1472256000000,18.8122],[1472342400000,18.8122],[1472428800000,18.8122],[1472515200000,18.7161],[1472601600000,18.8526],[1472688000000,19.125],[1472774400000,19.5198],[1472860800000,19.6172],[1472947200000,19.6172],[1473033600000,19.6172],[1473120000000,19.7447],[1473206400000,19.8019],[1473292800000,19.8546],[1473379200000,19.7948],[1473465600000,19.671],[1473552000000,19.671],[1473638400000,19.671],[1473724800000,19.569],[1473811200000,19.4029],[1473897600000,19.2712],[1473984000000,19.1937],[1474070400000,18.982],[1474156800000,18.982],[1474243200000,18.982],[1474329600000,18.902],[1474416000000,18.9413],[1474502400000,19.1204],[1474588800000,19.1394],[1474675200000,19.1359],[1474761600000,19.1359],[1474848000000,19.1359],[1474934400000,19.0456],[1475020800000,18.9975],[1475107200000,19.0367],[1475193600000,19.0199],[1475280000000,19.0011],[1475366400000,19.0011],[1475452800000,19.0011],[1475539200000,19.0033],[1475625600000,18.8811],[1475712000000,18.8966],[1475798400000,18.8459],[1475884800000,18.7903],[1475971200000,18.7903],[1476057600000,18.7903],[1476144000000,18.7932],[1476230400000,18.7479],[1476316800000,18.6613],[1476403200000,18.6369],[1476489600000,18.6369],[1476576000000,18.6369],[1476662400000,18.6369],[1476748800000,18.5632],[1476835200000,18.509],[1476921600000,18.5242],[1477008000000,18.5102],[1477094400000,18.4047],[1477180800000,18.4047],[1477267200000,18.4047],[1477353600000,18.4214],[1477440000000,18.3884],[1477526400000,18.4096],[1477612800000,18.3418],[1477699200000,18.2853],[1477785600000,18.2853],[1477872000000,18.2853],[1477958400000,18.313],[1478044800000,null],[1478131200000,18.4618],[1478217600000,18.4699],[1478304000000,18.4747],[1478390400000,18.4747],[1478476800000,18.4747],[1478563200000,18.3964],[1478649600000,18.3858],[1478736000000,18.3368],[1478822400000,18.1584],[1478908800000,18.1961],[1478995200000,18.1961],[1479081600000,18.1961],[1479168000000,18.1874],[1479254400000,18.4197],[1479340800000,18.5812],[1479427200000,18.3936],[1479513600000,18.2194],[1479600000000,18.2194],[1479686400000,18.2194],[1479772800000,18.1228],[1479859200000,18.0101],[1479945600000,17.9228],[1480032000000,17.8661],[1480118400000,18.0064],[1480204800000,18.0064],[1480291200000,18.0064],[1480377600000,17.9756],[1480464000000,17.9143],[1480550400000,17.9073],[1480636800000,17.9543],[1480723200000,18.2044],[1480809600000,18.2044],[1480896000000,18.2044],[1480982400000,18.3596],[1481068800000,18.3957],[1481155200000,18.3464],[1481241600000,18.1616],[1481328000000,18.1219],[1481414400000,18.1219],[1481500800000,18.1219],[1481587200000,18.3103],[1481673600000,18.2993],[1481760000000,18.4744],[1481846400000,18.2572],[1481932800000,18.2461],[1482019200000,18.2461],[1482105600000,18.2461],[1482192000000,18.2149],[1482278400000,18.2869],[1482364800000,18.3174],[1482451200000,18.1376],[1482537600000,18.1542],[1482624000000,18.1542],[1482710400000,18.1542],[1482796800000,18.2225],[1482883200000,18.2225],[1482969600000,18.5156],[1483056000000,18.7534]], 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, 16.976071],[1452816000000, 16.976071],[1455494400000, 18.799216],[1458000000000, 19.175821],[1460678400000, 18.957256],[1463270400000, 18.443035],[1465948800000, 18.398203],[1468540800000, 18.389926],[1471219200000, 18.632003],[1473897600000, 19.323283],[1476489600000, 18.628674],[1479168000000, 18.227787],[1481760000000, 18.260327]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });