$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1451606400000,0.0707],[1451692800000,0.0707],[1451779200000,0.0707],[1451865600000,0.0707],[1451952000000,0.0707],[1452038400000,0.069318],[1452124800000,0.068187],[1452211200000,0.068187],[1452297600000,0.068187],[1452384000000,0.068187],[1452470400000,0.068187],[1452556800000,0.066113],[1452643200000,0.064163],[1452729600000,0.0645],[1452816000000,0.065411],[1452902400000,0.066693],[1452988800000,0.067232],[1453075200000,0.067232],[1453161600000,0.066126],[1453248000000,0.065466],[1453334400000,0.066288],[1453420800000,0.063987],[1453507200000,0.065267],[1453593600000,0.065267],[1453680000000,0.065267],[1453766400000,0.066588],[1453852800000,0.06534],[1453939200000,0.066235],[1454025600000,0.067694],[1454112000000,0.070054],[1454198400000,0.070054],[1454284800000,0.070054],[1454371200000,0.070602],[1454457600000,0.070087],[1454544000000,0.068483],[1454630400000,0.071263],[1454716800000,0.071244],[1454803200000,0.071244],[1454889600000,0.071244],[1454976000000,0.071904],[1455062400000,0.071994],[1455148800000,0.071615],[1455235200000,0.072392],[1455321600000,0.07102],[1455408000000,0.07102],[1455494400000,0.07102],[1455580800000,0.074063],[1455667200000,0.075535],[1455753600000,0.074392],[1455840000000,0.075481],[1455926400000,0.075554],[1456012800000,0.075554],[1456099200000,0.075554],[1456185600000,0.076796],[1456272000000,0.078103],[1456358400000,0.077999],[1456444800000,0.077798],[1456531200000,0.077338],[1456617600000,0.077338],[1456704000000,0.077338],[1456790400000,0.077685],[1456876800000,0.07784],[1456963200000,0.077363],[1457049600000,0.075839],[1457136000000,0.076754],[1457222400000,0.076754],[1457308800000,0.076754],[1457395200000,0.076754],[1457481600000,0.076754],[1457568000000,0.075936],[1457654400000,0.074143],[1457740800000,0.075149],[1457827200000,0.075657],[1457913600000,0.075657],[1458000000000,0.077238],[1458086400000,0.078331],[1458172800000,0.077449],[1458259200000,0.077156],[1458345600000,0.075836],[1458432000000,0.075836],[1458518400000,0.075836],[1458604800000,0.076869],[1458691200000,0.07543],[1458777600000,0.075247],[1458864000000,0.075661],[1458950400000,0.075823],[1459036800000,0.075823],[1459123200000,0.075823],[1459209600000,0.07726],[1459296000000,0.077418],[1459382400000,0.076424],[1459468800000,0.0763],[1459555200000,0.076231],[1459641600000,0.076231],[1459728000000,0.076231],[1459814400000,0.075566],[1459900800000,0.075472],[1459987200000,0.075341],[1460073600000,0.075621],[1460160000000,0.075313],[1460246400000,null],[1460332800000,null],[1460419200000,0.075906],[1460505600000,0.076133],[1460592000000,0.076353],[1460678400000,0.076629],[1460764800000,0.076179],[1460851200000,0.076179],[1460937600000,0.076179],[1461024000000,0.074905],[1461110400000,0.075279],[1461196800000,0.075373],[1461283200000,0.076309],[1461369600000,0.075745],[1461456000000,0.075745],[1461542400000,0.075745],[1461628800000,0.075908],[1461715200000,0.075922],[1461801600000,0.075662],[1461888000000,0.076074],[1461974400000,0.076272],[1462060800000,0.076272],[1462147200000,0.076272],[1462233600000,0.076272],[1462320000000,0.076272],[1462406400000,0.076533],[1462492800000,0.075556],[1462579200000,0.074954],[1462665600000,0.074954],[1462752000000,0.074954],[1462838400000,0.074954],[1462924800000,0.075302],[1463011200000,0.075689],[1463097600000,0.075962],[1463184000000,0.077177],[1463270400000,0.077177],[1463356800000,0.077177],[1463443200000,0.077162],[1463529600000,0.077081],[1463616000000,0.076987],[1463702400000,0.07657],[1463788800000,0.075253],[1463875200000,null],[1463961600000,0.075253],[1464048000000,0.074994],[1464134400000,0.07472],[1464220800000,0.074633],[1464307200000,0.074649],[1464393600000,0.075463],[1464480000000,0.075463],[1464566400000,0.075463],[1464652800000,0.075015],[1464739200000,0.074664],[1464825600000,0.074731],[1464912000000,0.074367],[1464998400000,0.074021],[1465084800000,0.074021],[1465171200000,0.074021],[1465257600000,0.074562],[1465344000000,0.074762],[1465430400000,0.075226],[1465516800000,0.075728],[1465603200000,0.074903],[1465689600000,0.074903],[1465776000000,0.074903],[1465862400000,0.074354],[1465948800000,0.073789],[1466035200000,null],[1466121600000,0.073691],[1466208000000,0.073567],[1466294400000,0.073567],[1466380800000,0.073567],[1466467200000,0.073567],[1466553600000,0.074114],[1466640000000,0.073941],[1466726400000,0.073918],[1466812800000,0.073224],[1466899200000,0.073224],[1466985600000,0.073224],[1467072000000,0.073224],[1467158400000,0.073224],[1467244800000,0.073345],[1467331200000,0.073314],[1467417600000,0.073427],[1467504000000,0.073427],[1467590400000,0.073427],[1467676800000,0.073552],[1467763200000,0.073712],[1467849600000,0.0737],[1467936000000,0.073578],[1468022400000,0.073382],[1468108800000,0.073382],[1468195200000,0.073382],[1468281600000,0.07359],[1468368000000,0.073385],[1468454400000,0.07336],[1468540800000,0.073161],[1468627200000,0.073281],[1468713600000,0.073281],[1468800000000,0.073281],[1468886400000,0.073349],[1468972800000,0.073259],[1469059200000,0.072997],[1469145600000,0.072513],[1469232000000,0.072655],[1469318400000,0.072655],[1469404800000,0.072655],[1469491200000,0.072083],[1469577600000,0.072075],[1469664000000,0.070472],[1469750400000,null],[1469836800000,0.070423],[1469923200000,0.070423],[1470009600000,0.070423],[1470096000000,0.070388],[1470182400000,0.070181],[1470268800000,0.0701],[1470355200000,0.070468],[1470441600000,0.071082],[1470528000000,0.071082],[1470614400000,0.071082],[1470700800000,0.071249],[1470787200000,0.071752],[1470873600000,0.071637],[1470960000000,0.071578],[1471046400000,0.072706],[1471132800000,0.072706],[1471219200000,0.072706],[1471305600000,0.073139],[1471392000000,0.072904],[1471478400000,0.073531],[1471564800000,0.074012],[1471651200000,0.074628],[1471737600000,0.074628],[1471824000000,0.074628],[1471910400000,0.074645],[1471996800000,0.07421],[1472083200000,0.07421],[1472169600000,0.074607],[1472256000000,0.075111],[1472342400000,0.075111],[1472428800000,0.075111],[1472515200000,0.075192],[1472601600000,0.075675],[1472688000000,0.076687],[1472774400000,0.078039],[1472860800000,0.077881],[1472947200000,0.077881],[1473033600000,0.077881],[1473120000000,0.078577],[1473206400000,0.079013],[1473292800000,0.079167],[1473379200000,0.079006],[1473465600000,0.079058],[1473552000000,0.079058],[1473638400000,0.079058],[1473724800000,0.078927],[1473811200000,0.078267],[1473897600000,0.077702],[1473984000000,0.077192],[1474070400000,0.076292],[1474156800000,0.076292],[1474243200000,0.076292],[1474329600000,0.075931],[1474416000000,0.076033],[1474502400000,0.07663],[1474588800000,0.076745],[1474675200000,0.077039],[1474761600000,0.077039],[1474848000000,0.077039],[1474934400000,0.076732],[1475020800000,0.076609],[1475107200000,0.076847],[1475193600000,0.077365],[1475280000000,0.077317],[1475366400000,0.077317],[1475452800000,0.077317],[1475539200000,0.077354],[1475625600000,0.077534],[1475712000000,0.077831],[1475798400000,0.077817],[1475884800000,0.077973],[1475971200000,0.077973],[1476057600000,0.077973],[1476144000000,0.07776],[1476230400000,0.078251],[1476316800000,0.078036],[1476403200000,0.077833],[1476489600000,0.077833],[1476576000000,0.077833],[1476662400000,0.077833],[1476748800000,0.077721],[1476835200000,0.07727],[1476921600000,0.077347],[1477008000000,0.077758],[1477094400000,0.077438],[1477180800000,0.077438],[1477267200000,0.077438],[1477353600000,0.077642],[1477440000000,0.077533],[1477526400000,0.077243],[1477612800000,0.076767],[1477699200000,0.07645],[1477785600000,0.07645],[1477872000000,0.07645],[1477958400000,0.076138],[1478044800000,null],[1478131200000,0.075694],[1478217600000,0.075646],[1478304000000,0.075482],[1478390400000,0.075482],[1478476800000,0.075482],[1478563200000,0.07521],[1478649600000,0.075241],[1478736000000,0.074922],[1478822400000,0.075607],[1478908800000,0.075244],[1478995200000,0.075244],[1479081600000,0.075244],[1479168000000,0.075026],[1479254400000,0.075493],[1479340800000,0.077476],[1479427200000,0.076354],[1479513600000,0.075924],[1479600000000,0.075924],[1479686400000,0.075924],[1479772800000,0.075597],[1479859200000,0.076484],[1479945600000,0.076495],[1480032000000,0.076225],[1480118400000,0.076139],[1480204800000,0.076139],[1480291200000,0.076139],[1480377600000,0.075416],[1480464000000,0.075226],[1480550400000,0.074855],[1480636800000,0.075088],[1480723200000,0.077146],[1480809600000,0.077146],[1480896000000,0.077146],[1480982400000,0.078114],[1481068800000,0.077761],[1481155200000,0.077388],[1481241600000,0.076958],[1481328000000,0.077411],[1481414400000,0.077411],[1481500800000,0.077411],[1481587200000,0.079038],[1481673600000,0.07906],[1481760000000,0.079419],[1481846400000,0.078531],[1481932800000,0.078631],[1482019200000,0.078631],[1482105600000,0.078631],[1482192000000,0.078822],[1482278400000,0.079066],[1482364800000,0.079391],[1482451200000,0.079153],[1482537600000,0.07986],[1482624000000,0.07986],[1482710400000,0.07986],[1482796800000,0.079204],[1482883200000,0.079204],[1482969600000,0.080855],[1483056000000,0.081586]], 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, 0.067378],[1452816000000, 0.067378],[1455494400000, 0.073587],[1458000000000, 0.076403],[1460678400000, 0.075886],[1463270400000, 0.075806],[1465948800000, 0.074081],[1468540800000, 0.072906],[1471219200000, 0.072919],[1473897600000, 0.077543],[1476489600000, 0.077507],[1479168000000, 0.075745],[1481760000000, 0.078523]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });