$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1451606400000,35.5332],[1451692800000,35.5332],[1451779200000,35.5332],[1451865600000,35.5332],[1451952000000,35.5332],[1452038400000,34.8986],[1452124800000,34.3772],[1452211200000,34.3772],[1452297600000,34.3772],[1452384000000,34.3772],[1452470400000,34.3772],[1452556800000,34.2568],[1452643200000,33.58],[1452729600000,34.0858],[1452816000000,34.4631],[1452902400000,34.666],[1452988800000,34.9462],[1453075200000,34.9462],[1453161600000,35.1871],[1453248000000,35.3076],[1453334400000,34.9322],[1453420800000,34.6085],[1453507200000,35.5098],[1453593600000,35.5098],[1453680000000,35.5098],[1453766400000,35.3847],[1453852800000,35.3884],[1453939200000,35.6466],[1454025600000,35.9749],[1454112000000,36.5215],[1454198400000,36.5215],[1454284800000,36.5215],[1454371200000,36.3969],[1454457600000,37.2403],[1454544000000,37.2973],[1454630400000,37.8815],[1454716800000,37.7106],[1454803200000,37.7106],[1454889600000,37.7106],[1454976000000,37.1912],[1455062400000,37.3998],[1455148800000,37.7638],[1455235200000,37.5884],[1455321600000,37.9253],[1455408000000,37.9253],[1455494400000,37.9253],[1455580800000,38.8376],[1455667200000,38.8893],[1455753600000,38.2341],[1455840000000,38.0213],[1455926400000,38.3441],[1456012800000,38.3441],[1456099200000,38.3441],[1456185600000,38.0688],[1456272000000,38.4211],[1456358400000,37.865],[1456444800000,38.0728],[1456531200000,37.8133],[1456617600000,37.8133],[1456704000000,37.8133],[1456790400000,37.5424],[1456876800000,37.8497],[1456963200000,37.5995],[1457049600000,36.9025],[1457136000000,37.5145],[1457222400000,37.5145],[1457308800000,37.5145],[1457395200000,37.5145],[1457481600000,37.5145],[1457568000000,37.2468],[1457654400000,36.1096],[1457740800000,36.9383],[1457827200000,37.1881],[1457913600000,37.1881],[1458000000000,38.0802],[1458086400000,38.1161],[1458172800000,37.7251],[1458259200000,38.6105],[1458345600000,38.0186],[1458432000000,38.0186],[1458518400000,38.0186],[1458604800000,38.2893],[1458691200000,37.1444],[1458777600000,36.7936],[1458864000000,37.0945],[1458950400000,36.8376],[1459036800000,36.8376],[1459123200000,36.8376],[1459209600000,37.134],[1459296000000,37.726],[1459382400000,37.7823],[1459468800000,37.7101],[1459555200000,37.3604],[1459641600000,37.3604],[1459728000000,37.3604],[1459814400000,37.0989],[1459900800000,36.9786],[1459987200000,36.4146],[1460073600000,36.3202],[1460160000000,36.0748],[1460246400000,null],[1460332800000,null],[1460419200000,36.3789],[1460505600000,36.4734],[1460592000000,36.2665],[1460678400000,36.2729],[1460764800000,36.1245],[1460851200000,36.1245],[1460937600000,36.1245],[1461024000000,36.1157],[1461110400000,36.5439],[1461196800000,36.5557],[1461283200000,36.6129],[1461369600000,36.4391],[1461456000000,36.4391],[1461542400000,36.4391],[1461628800000,36.7617],[1461715200000,36.8573],[1461801600000,36.7869],[1461888000000,36.7518],[1461974400000,36.83],[1462060800000,36.83],[1462147200000,36.83],[1462233600000,36.83],[1462320000000,36.83],[1462406400000,36.5612],[1462492800000,36.4421],[1462579200000,36.4659],[1462665600000,36.4659],[1462752000000,36.4659],[1462838400000,36.4659],[1462924800000,36.3898],[1463011200000,36.5942],[1463097600000,36.5441],[1463184000000,36.6733],[1463270400000,36.6733],[1463356800000,36.6733],[1463443200000,36.4936],[1463529600000,36.602],[1463616000000,36.7654],[1463702400000,36.9304],[1463788800000,36.7151],[1463875200000,null],[1463961600000,36.7151],[1464048000000,36.3832],[1464134400000,36.6857],[1464220800000,36.8658],[1464307200000,36.8983],[1464393600000,36.818],[1464480000000,36.818],[1464566400000,36.818],[1464652800000,36.8242],[1464739200000,36.8091],[1464825600000,36.2523],[1464912000000,36.2414],[1464998400000,36.0837],[1465084800000,36.0837],[1465171200000,36.0837],[1465257600000,36.0216],[1465344000000,36.372],[1465430400000,36.3641],[1465516800000,36.156],[1465603200000,36.0313],[1465689600000,36.0313],[1465776000000,36.0313],[1465862400000,35.3829],[1465948800000,35.1884],[1466035200000,null],[1466121600000,35.2112],[1466208000000,35.5877],[1466294400000,35.5877],[1466380800000,35.5877],[1466467200000,35.5877],[1466553600000,36.6926],[1466640000000,36.5821],[1466726400000,36.9987],[1466812800000,34.0866],[1466899200000,34.0866],[1466985600000,34.0866],[1467072000000,34.0866],[1467158400000,34.0866],[1467244800000,33.3901],[1467331200000,33.3509],[1467417600000,32.9699],[1467504000000,32.9699],[1467590400000,32.9699],[1467676800000,32.9419],[1467763200000,32.5815],[1467849600000,32.2363],[1467936000000,32.3145],[1468022400000,32.2541],[1468108800000,32.2541],[1468195200000,32.2541],[1468281600000,32.268],[1468368000000,32.6958],[1468454400000,32.953],[1468540800000,33.2095],[1468627200000,33.1497],[1468713600000,33.1497],[1468800000000,33.1497],[1468886400000,32.9535],[1468972800000,32.6177],[1469059200000,32.6835],[1469145600000,32.6993],[1469232000000,32.4922],[1469318400000,32.4922],[1469404800000,32.4922],[1469491200000,32.5348],[1469577600000,32.5604],[1469664000000,32.5181],[1469750400000,null],[1469836800000,32.6629],[1469923200000,32.6629],[1470009600000,32.6629],[1470096000000,32.7281],[1470182400000,32.9553],[1470268800000,33.1235],[1470355200000,32.6553],[1470441600000,32.6296],[1470528000000,32.6296],[1470614400000,32.6296],[1470700800000,32.3907],[1470787200000,32.1944],[1470873600000,32.4463],[1470960000000,32.2133],[1471046400000,32.4745],[1471132800000,32.4745],[1471219200000,32.4745],[1471305600000,32.3947],[1471392000000,32.5114],[1471478400000,32.6523],[1471564800000,33.1068],[1471651200000,33.0636],[1471737600000,33.0636],[1471824000000,33.0636],[1471910400000,33.1565],[1471996800000,33.367],[1472083200000,33.367],[1472169600000,33.4191],[1472256000000,33.6155],[1472342400000,33.6155],[1472428800000,33.6155],[1472515200000,33.3086],[1472601600000,33.6368],[1472688000000,34.2354],[1472774400000,35.2958],[1472860800000,35.3789],[1472947200000,35.3789],[1473033600000,35.3789],[1473120000000,35.7276],[1473206400000,35.8654],[1473292800000,35.7637],[1473379200000,35.5843],[1473465600000,35.5463],[1473552000000,35.5463],[1473638400000,35.5463],[1473724800000,35.3899],[1473811200000,35.064],[1473897600000,34.7175],[1473984000000,34.6171],[1474070400000,34.1262],[1474156800000,34.1262],[1474243200000,34.1262],[1474329600000,33.6478],[1474416000000,33.4763],[1474502400000,33.797],[1474588800000,33.9041],[1474675200000,33.72],[1474761600000,33.72],[1474848000000,33.72],[1474934400000,33.4944],[1475020800000,33.5374],[1475107200000,33.7196],[1475193600000,33.7548],[1475280000000,33.6204],[1475366400000,33.6204],[1475452800000,33.6204],[1475539200000,33.3544],[1475625600000,32.9761],[1475712000000,32.9359],[1475798400000,32.7851],[1475884800000,31.8603],[1475971200000,31.8603],[1476057600000,31.8603],[1476144000000,32.0008],[1476230400000,31.7413],[1476316800000,31.6032],[1476403200000,31.4806],[1476489600000,31.4806],[1476576000000,31.4806],[1476662400000,31.4806],[1476748800000,31.3268],[1476835200000,31.4982],[1476921600000,31.5752],[1477008000000,31.5096],[1477094400000,31.2769],[1477180800000,31.2769],[1477267200000,31.2769],[1477353600000,31.3712],[1477440000000,31.2672],[1477526400000,31.2386],[1477612800000,31.2924],[1477699200000,30.9734],[1477785600000,30.9734],[1477872000000,30.9734],[1477958400000,31.0152],[1478044800000,null],[1478131200000,31.4861],[1478217600000,31.9408],[1478304000000,31.9472],[1478390400000,31.9472],[1478476800000,31.9472],[1478563200000,31.768],[1478649600000,31.6729],[1478736000000,31.646],[1478822400000,31.7474],[1478908800000,32.4468],[1478995200000,32.4468],[1479081600000,32.4468],[1479168000000,32.2755],[1479254400000,32.3203],[1479340800000,32.7432],[1479427200000,32.4461],[1479513600000,31.9238],[1479600000000,31.9238],[1479686400000,31.9238],[1479772800000,31.9752],[1479859200000,31.8908],[1479945600000,31.7684],[1480032000000,31.8281],[1480118400000,31.9872],[1480204800000,31.9872],[1480291200000,31.9872],[1480377600000,31.8492],[1480464000000,31.9211],[1480550400000,31.8845],[1480636800000,32.3976],[1480723200000,32.6933],[1480809600000,32.6933],[1480896000000,32.6933],[1480982400000,33.2212],[1481068800000,33.2656],[1481155200000,32.8099],[1481241600000,32.6329],[1481328000000,32.5562],[1481414400000,32.5562],[1481500800000,32.5562],[1481587200000,33.0524],[1481673600000,33.1802],[1481760000000,33.3499],[1481846400000,32.7764],[1481932800000,32.7665],[1482019200000,32.7665],[1482105600000,32.7665],[1482192000000,32.6954],[1482278400000,32.6681],[1482364800000,32.6947],[1482451200000,32.4332],[1482537600000,32.1751],[1482624000000,32.1751],[1482710400000,32.1751],[1482796800000,32.2961],[1482883200000,32.2961],[1482969600000,32.8583],[1483056000000,33.3208]], 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, 35.077324],[1452816000000, 35.077324],[1455494400000, 37.830024],[1458000000000, 37.458130],[1460678400000, 36.627727],[1463270400000, 36.668923],[1465948800000, 35.613491],[1468540800000, 32.701403],[1471219200000, 32.891595],[1473897600000, 34.596887],[1476489600000, 31.857788],[1479168000000, 31.972739],[1481760000000, 32.700875]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });