$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1451606400000,17.285],[1451692800000,17.285],[1451779200000,17.285],[1451865600000,17.285],[1451952000000,17.285],[1452038400000,17.0659],[1452124800000,16.6787],[1452211200000,16.6787],[1452297600000,16.6787],[1452384000000,16.6787],[1452470400000,16.6787],[1452556800000,16.6872],[1452643200000,16.4033],[1452729600000,16.6252],[1452816000000,16.6739],[1452902400000,16.656],[1452988800000,16.7907],[1453075200000,16.7907],[1453161600000,16.984],[1453248000000,17.1433],[1453334400000,16.848],[1453420800000,16.9597],[1453507200000,17.495],[1453593600000,17.495],[1453680000000,17.495],[1453766400000,17.493],[1453852800000,17.4738],[1453939200000,17.6629],[1454025600000,17.857],[1454112000000,18.1645],[1454198400000,18.1645],[1454284800000,18.1645],[1454371200000,18.1591],[1454457600000,18.474],[1454544000000,18.443],[1454630400000,18.8828],[1454716800000,18.8443],[1454803200000,18.8443],[1454889600000,18.8443],[1454976000000,18.5488],[1455062400000,18.6592],[1455148800000,18.718],[1455235200000,18.6827],[1455321600000,18.7802],[1455408000000,18.7802],[1455494400000,18.7802],[1455580800000,19.4012],[1455667200000,19.553],[1455753600000,19.3407],[1455840000000,19.3373],[1455926400000,19.5097],[1456012800000,19.5097],[1456099200000,19.5097],[1456185600000,19.6894],[1456272000000,19.8218],[1456358400000,19.6676],[1456444800000,19.9981],[1456531200000,19.9719],[1456617600000,19.9719],[1456704000000,19.9719],[1456790400000,19.9775],[1456876800000,20.0334],[1456963200000,19.9423],[1457049600000,19.5134],[1457136000000,19.7509],[1457222400000,19.7509],[1457308800000,19.7509],[1457395200000,19.7509],[1457481600000,19.7509],[1457568000000,19.5378],[1457654400000,19.2084],[1457740800000,19.5008],[1457827200000,19.6327],[1457913600000,19.6327],[1458000000000,20.0073],[1458086400000,20.1369],[1458172800000,20.0709],[1458259200000,20.5431],[1458345600000,20.2361],[1458432000000,20.2361],[1458518400000,20.2361],[1458604800000,20.3915],[1458691200000,19.9374],[1458777600000,19.802],[1458864000000,19.7569],[1458950400000,19.62],[1459036800000,19.62],[1459123200000,19.62],[1459209600000,19.7779],[1459296000000,20.0773],[1459382400000,20.1215],[1459468800000,20.2534],[1459555200000,20.0398],[1459641600000,20.0398],[1459728000000,20.0398],[1459814400000,19.9446],[1459900800000,19.8036],[1459987200000,19.733],[1460073600000,19.6703],[1460160000000,19.5971],[1460246400000,null],[1460332800000,null],[1460419200000,19.687],[1460505600000,19.8449],[1460592000000,19.9027],[1460678400000,19.9936],[1460764800000,19.7771],[1460851200000,19.7771],[1460937600000,19.7771],[1461024000000,19.7188],[1461110400000,20.017],[1461196800000,20.051],[1461283200000,20.0835],[1461369600000,19.9028],[1461456000000,19.9028],[1461542400000,19.9028],[1461628800000,19.9788],[1461715200000,20.0043],[1461801600000,20.0384],[1461888000000,20.0581],[1461974400000,20.1152],[1462060800000,20.1152],[1462147200000,20.1152],[1462233600000,20.1152],[1462320000000,20.1152],[1462406400000,19.7595],[1462492800000,19.5965],[1462579200000,19.5375],[1462665600000,19.5375],[1462752000000,19.5375],[1462838400000,19.5375],[1462924800000,19.4388],[1463011200000,19.6746],[1463097600000,19.7539],[1463184000000,19.7573],[1463270400000,19.7573],[1463356800000,19.7573],[1463443200000,19.6508],[1463529600000,19.5506],[1463616000000,19.4628],[1463702400000,19.2678],[1463788800000,19.2285],[1463875200000,null],[1463961600000,19.2285],[1464048000000,19.109],[1464134400000,19.1156],[1464220800000,19.161],[1464307200000,19.4085],[1464393600000,19.2802],[1464480000000,19.2802],[1464566400000,19.2802],[1464652800000,19.3008],[1464739200000,19.3001],[1464825600000,19.2267],[1464912000000,19.1156],[1464998400000,19.1088],[1465084800000,19.1088],[1465171200000,19.1088],[1465257600000,19.336],[1465344000000,19.5288],[1465430400000,19.6683],[1465516800000,19.6141],[1465603200000,19.6234],[1465689600000,19.6234],[1465776000000,19.6234],[1465862400000,19.5516],[1465948800000,19.3557],[1466035200000,null],[1466121600000,19.1524],[1466208000000,19.3074],[1466294400000,19.3074],[1466380800000,19.3074],[1466467200000,19.3074],[1466553600000,19.4889],[1466640000000,19.51],[1466726400000,19.5214],[1466812800000,19.1251],[1466899200000,19.1251],[1466985600000,19.1251],[1467072000000,19.1251],[1467158400000,19.1251],[1467244800000,19.132],[1467331200000,19.1633],[1467417600000,19.2068],[1467504000000,19.2068],[1467590400000,19.2068],[1467676800000,19.2908],[1467763200000,19.2074],[1467849600000,19.0704],[1467936000000,19.1896],[1468022400000,19.0854],[1468108800000,19.0854],[1468195200000,19.0854],[1468281600000,19.0199],[1468368000000,19.0661],[1468454400000,19.0161],[1468540800000,19.184],[1468627200000,19.2816],[1468713600000,19.2816],[1468800000000,19.2816],[1468886400000,19.1924],[1468972800000,19.0633],[1469059200000,18.9995],[1469145600000,19.0143],[1469232000000,18.9308],[1469318400000,18.9308],[1469404800000,18.9308],[1469491200000,18.8192],[1469577600000,18.729],[1469664000000,18.8139],[1469750400000,null],[1469836800000,18.8264],[1469923200000,18.8264],[1470009600000,18.8264],[1470096000000,18.9678],[1470182400000,19.0201],[1470268800000,18.9435],[1470355200000,19.0062],[1470441600000,19.0469],[1470528000000,19.0469],[1470614400000,19.0469],[1470700800000,18.8825],[1470787200000,18.8739],[1470873600000,19.0663],[1470960000000,19.0368],[1471046400000,19.3012],[1471132800000,19.3012],[1471219200000,19.3012],[1471305600000,19.437],[1471392000000,19.5513],[1471478400000,19.4714],[1471564800000,19.6199],[1471651200000,19.6688],[1471737600000,19.6688],[1471824000000,19.6688],[1471910400000,19.5824],[1471996800000,19.6198],[1472083200000,19.6198],[1472169600000,19.5908],[1472256000000,19.7473],[1472342400000,19.7473],[1472428800000,19.7473],[1472515200000,19.5864],[1472601600000,19.6734],[1472688000000,19.9092],[1472774400000,20.2721],[1472860800000,20.358],[1472947200000,20.358],[1473033600000,20.358],[1473120000000,20.7008],[1473206400000,20.7985],[1473292800000,20.7907],[1473379200000,20.6861],[1473465600000,20.5872],[1473552000000,20.5872],[1473638400000,20.5872],[1473724800000,20.3068],[1473811200000,20.1582],[1473897600000,19.9588],[1473984000000,19.8861],[1474070400000,19.6238],[1474156800000,19.6238],[1474243200000,19.6238],[1474329600000,19.592],[1474416000000,19.5112],[1474502400000,19.765],[1474588800000,19.9221],[1474675200000,19.9288],[1474761600000,19.9288],[1474848000000,19.9288],[1474934400000,19.6764],[1475020800000,19.4854],[1475107200000,19.6028],[1475193600000,19.8023],[1475280000000,19.706],[1475366400000,19.706],[1475452800000,19.706],[1475539200000,19.8098],[1475625600000,19.6416],[1475712000000,19.5968],[1475798400000,19.6065],[1475884800000,19.4716],[1475971200000,19.4716],[1476057600000,19.4716],[1476144000000,19.4882],[1476230400000,19.5462],[1476316800000,19.482],[1476403200000,19.4719],[1476489600000,19.4719],[1476576000000,19.4719],[1476662400000,19.4719],[1476748800000,19.6397],[1476835200000,19.6158],[1476921600000,19.6425],[1477008000000,19.5177],[1477094400000,19.399],[1477180800000,19.399],[1477267200000,19.399],[1477353600000,19.1964],[1477440000000,19.2204],[1477526400000,19.1396],[1477612800000,19.1028],[1477699200000,19.0431],[1477785600000,19.0431],[1477872000000,19.0431],[1477958400000,19.0448],[1478044800000,null],[1478131200000,19.1087],[1478217600000,19.1158],[1478304000000,19.0401],[1478390400000,19.0401],[1478476800000,19.0401],[1478563200000,19.0956],[1478649600000,19.1222],[1478736000000,19.0394],[1478822400000,18.973],[1478908800000,18.9976],[1478995200000,18.9976],[1479081600000,18.9976],[1479168000000,19.0213],[1479254400000,19.2319],[1479340800000,19.546],[1479427200000,19.4047],[1479513600000,19.1605],[1479600000000,19.1605],[1479686400000,19.1605],[1479772800000,19.1577],[1479859200000,19.1441],[1479945600000,19.0238],[1480032000000,18.9645],[1480118400000,19.0674],[1480204800000,19.0674],[1480291200000,19.0674],[1480377600000,19.0762],[1480464000000,19.0233],[1480550400000,19.0976],[1480636800000,19.1332],[1480723200000,19.4684],[1480809600000,19.4684],[1480896000000,19.4684],[1480982400000,19.636],[1481068800000,19.6692],[1481155200000,19.6037],[1481241600000,19.5024],[1481328000000,19.6392],[1481414400000,19.6392],[1481500800000,19.6392],[1481587200000,19.9245],[1481673600000,19.899],[1481760000000,20.057],[1481846400000,19.7097],[1481932800000,19.6904],[1482019200000,19.6904],[1482105600000,19.6904],[1482192000000,19.7246],[1482278400000,19.7424],[1482364800000,19.7689],[1482451200000,19.5174],[1482537600000,19.4363],[1482624000000,19.4363],[1482710400000,19.4363],[1482796800000,19.5094],[1482883200000,19.5094],[1482969600000,19.8113],[1483056000000,20.081]], 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, 17.120883],[1452816000000, 17.120883],[1455494400000, 19.133086],[1458000000000, 19.868533],[1460678400000, 19.916223],[1463270400000, 19.547673],[1465948800000, 19.329432],[1468540800000, 19.066864],[1471219200000, 19.344147],[1473897600000, 20.077263],[1476489600000, 19.451372],[1479168000000, 19.099653],[1481760000000, 19.634868]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });