$(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: [[1514764800000,0.084716],[1514851200000,0.084716],[1514937600000,0.084716],[1515024000000,0.083682],[1515110400000,0.084271],[1515196800000,0.085431],[1515283200000,0.085431],[1515369600000,0.085431],[1515456000000,0.085431],[1515542400000,0.085397],[1515628800000,0.085803],[1515715200000,0.08604],[1515801600000,0.086561],[1515888000000,0.086561],[1515974400000,0.086561],[1516060800000,0.086724],[1516147200000,0.087385],[1516233600000,0.087637],[1516320000000,0.088492],[1516406400000,0.088953],[1516492800000,0.088953],[1516579200000,0.088953],[1516665600000,0.088945],[1516752000000,0.089309],[1516838400000,0.089904],[1516924800000,0.089877],[1517011200000,0.089031],[1517097600000,0.089031],[1517184000000,0.089031],[1517270400000,0.087654],[1517356800000,0.086868],[1517443200000,0.086229],[1517529600000,0.086355],[1517616000000,0.086708],[1517702400000,0.086708],[1517788800000,0.086708],[1517875200000,0.086068],[1517961600000,0.08474],[1518048000000,0.083744],[1518134400000,0.083369],[1518220800000,0.082667],[1518307200000,0.082667],[1518393600000,0.082667],[1518480000000,0.082156],[1518566400000,0.082352],[1518652800000,0.082638],[1518739200000,0.083515],[1518825600000,0.0845],[1518912000000,0.0845],[1518998400000,0.0845],[1519084800000,0.084592],[1519171200000,0.084871],[1519257600000,0.084369],[1519344000000,0.084684],[1519430400000,0.084432],[1519516800000,0.084432],[1519603200000,0.084432],[1519689600000,0.084684],[1519776000000,0.084562],[1519862400000,0.083689],[1519948800000,0.082995],[1520035200000,0.08231],[1520121600000,0.08231],[1520208000000,0.08231],[1520294400000,0.082432],[1520380800000,0.082482],[1520467200000,0.081495],[1520553600000,0.081495],[1520640000000,0.081495],[1520726400000,0.081495],[1520812800000,0.081495],[1520899200000,0.080875],[1520985600000,0.080584],[1521072000000,0.080794],[1521158400000,0.081648],[1521244800000,0.081662],[1521331200000,0.081662],[1521417600000,0.081662],[1521504000000,0.082458],[1521590400000,0.082104],[1521676800000,0.082041],[1521763200000,0.081956],[1521849600000,0.081993],[1521936000000,0.081993],[1522022400000,0.081993],[1522108800000,0.082392],[1522195200000,0.082491],[1522281600000,0.08269],[1522368000000,0.083203],[1522454400000,0.082646],[1522540800000,0.082646],[1522627200000,0.082646],[1522713600000,0.081948],[1522800000000,0.082185],[1522886400000,0.082103],[1522972800000,0.081539],[1523059200000,0.081421],[1523145600000,0.081421],[1523232000000,0.081421],[1523318400000,0.081421],[1523404800000,0.079834],[1523491200000,0.078354],[1523577600000,0.07884],[1523664000000,0.079822],[1523750400000,0.079822],[1523836800000,0.079822],[1523923200000,0.079054],[1524009600000,0.079492],[1524096000000,0.07975],[1524182400000,0.0805],[1524268800000,0.08026],[1524355200000,0.08026],[1524441600000,0.08026],[1524528000000,0.080012],[1524614400000,0.080348],[1524700800000,0.080515],[1524787200000,0.079989],[1524873600000,0.079933],[1524960000000,0.079933],[1525046400000,0.079933],[1525132800000,0.079933],[1525219200000,0.079933],[1525305600000,0.07926],[1525392000000,0.079195],[1525478400000,0.079958],[1525564800000,0.079958],[1525651200000,0.079958],[1525737600000,0.079946],[1525824000000,0.079729],[1525910400000,0.079729],[1525996800000,0.079944],[1526083200000,0.080264],[1526169600000,0.080264],[1526256000000,0.080264],[1526342400000,0.079827],[1526428800000,0.079967],[1526515200000,0.079621],[1526601600000,0.080061],[1526688000000,0.079644],[1526774400000,0.079644],[1526860800000,0.079644],[1526947200000,0.079294],[1527033600000,0.079702],[1527120000000,0.080005],[1527206400000,0.080146],[1527292800000,0.079865],[1527379200000,0.079865],[1527465600000,0.079865],[1527552000000,0.079865],[1527638400000,0.079237],[1527724800000,0.079039],[1527811200000,0.079315],[1527897600000,0.078947],[1527984000000,0.078947],[1528070400000,0.078947],[1528156800000,0.079016],[1528243200000,0.079043],[1528329600000,0.078843],[1528416000000,0.078575],[1528502400000,0.078248],[1528588800000,0.078248],[1528675200000,0.078248],[1528761600000,0.078165],[1528848000000,0.07799],[1528934400000,0.077827],[1529020800000,0.078037],[1529107200000,0.078229],[1529193600000,0.078229],[1529280000000,0.078229],[1529366400000,0.077717],[1529452800000,0.077795],[1529539200000,null],[1529625600000,0.077101],[1529712000000,0.077112],[1529798400000,0.077112],[1529884800000,0.077112],[1529971200000,0.077095],[1530057600000,0.077291],[1530144000000,0.077334],[1530230400000,0.077334],[1530316800000,0.077334],[1530403200000,0.077334],[1530489600000,0.077334],[1530576000000,0.076789],[1530662400000,0.076674],[1530748800000,0.077063],[1530835200000,0.076969],[1530921600000,0.076638],[1531008000000,0.076638],[1531094400000,0.076638],[1531180800000,0.076423],[1531267200000,0.076356],[1531353600000,0.07644],[1531440000000,0.076162],[1531526400000,0.076381],[1531612800000,0.076381],[1531699200000,0.076381],[1531785600000,0.076519],[1531872000000,0.076434],[1531958400000,0.076334],[1532044800000,0.07661],[1532131200000,0.076284],[1532217600000,0.076284],[1532304000000,0.076284],[1532390400000,0.076515],[1532476800000,0.077133],[1532563200000,0.076887],[1532649600000,0.077047],[1532736000000,0.077312],[1532822400000,0.077312],[1532908800000,0.077312],[1532995200000,0.077091],[1533081600000,null],[1533168000000,0.077431],[1533254400000,0.077247],[1533340800000,0.077461],[1533427200000,0.077461],[1533513600000,0.077461],[1533600000000,0.077786],[1533686400000,0.077464],[1533772800000,0.077345],[1533859200000,0.076573],[1533945600000,0.076361],[1534032000000,0.076361],[1534118400000,0.076361],[1534204800000,0.075283],[1534291200000,0.075586],[1534377600000,0.0759],[1534464000000,0.076677],[1534550400000,0.07747],[1534636800000,0.07747],[1534723200000,0.07747],[1534809600000,0.076784],[1534896000000,0.076819],[1534982400000,0.077104],[1535068800000,0.077021],[1535155200000,0.077021],[1535241600000,0.077021],[1535328000000,0.077021],[1535414400000,0.077204],[1535500800000,0.077638],[1535587200000,0.077364],[1535673600000,0.077813],[1535760000000,0.077721],[1535846400000,0.077721],[1535932800000,0.077721],[1536019200000,0.0777],[1536105600000,0.077528],[1536192000000,0.076811],[1536278400000,0.075826],[1536364800000,0.075249],[1536451200000,0.075249],[1536537600000,0.075249],[1536624000000,0.074583],[1536710400000,0.073755],[1536796800000,0.074194],[1536883200000,0.074943],[1536969600000,0.075343],[1537056000000,0.075343],[1537142400000,0.075343],[1537228800000,0.075638],[1537315200000,0.076216],[1537401600000,0.077693],[1537488000000,0.078167],[1537574400000,0.079602],[1537660800000,0.079602],[1537747200000,0.079602],[1537833600000,0.079383],[1537920000000,0.078704],[1538006400000,0.078227],[1538092800000,0.078211],[1538179200000,0.077864],[1538265600000,0.077864],[1538352000000,0.077864],[1538438400000,0.077433],[1538524800000,0.078404],[1538611200000,0.07776],[1538697600000,0.076729],[1538784000000,0.075151],[1538870400000,0.075151],[1538956800000,0.075151],[1539043200000,0.07545],[1539129600000,0.075453],[1539216000000,0.07595],[1539302400000,0.075227],[1539388800000,0.075475],[1539475200000,0.075475],[1539561600000,0.075475],[1539648000000,0.075475],[1539734400000,0.076133],[1539820800000,0.076851],[1539907200000,0.07695],[1539993600000,0.07691],[1540080000000,0.07691],[1540166400000,0.07691],[1540252800000,0.076829],[1540339200000,0.077944],[1540425600000,0.077123],[1540512000000,0.077106],[1540598400000,0.076697],[1540684800000,0.076697],[1540771200000,0.076697],[1540857600000,0.076521],[1540944000000,0.07642],[1541030400000,0.076213],[1541116800000,0.076012],[1541203200000,0.075766],[1541289600000,0.075766],[1541376000000,0.075766],[1541462400000,0.075334],[1541548800000,0.075383],[1541635200000,0.075155],[1541721600000,0.075258],[1541808000000,0.074847],[1541894400000,0.074847],[1541980800000,0.074847],[1542067200000,0.074515],[1542153600000,0.074608],[1542240000000,0.074061],[1542326400000,0.075267],[1542412800000,0.075614],[1542499200000,0.075614],[1542585600000,0.075614],[1542672000000,0.075592],[1542758400000,0.076076],[1542844800000,0.075418],[1542931200000,0.075546],[1543017600000,0.075935],[1543104000000,0.075935],[1543190400000,0.075935],[1543276800000,0.075192],[1543363200000,0.075384],[1543449600000,0.075843],[1543536000000,0.076468],[1543622400000,0.075957],[1543708800000,0.075957],[1543795200000,0.075957],[1543881600000,0.075823],[1543968000000,0.075783],[1544054400000,0.075244],[1544140800000,0.075354],[1544227200000,0.075101],[1544313600000,0.075101],[1544400000000,0.075101],[1544486400000,0.075205],[1544572800000,0.074789],[1544659200000,0.075135],[1544745600000,0.075308],[1544832000000,0.07497],[1544918400000,0.07497],[1545004800000,0.07497],[1545091200000,0.075102],[1545177600000,0.074999],[1545264000000,0.07441],[1545350400000,0.074379],[1545436800000,0.073876],[1545523200000,0.073876],[1545609600000,0.073876],[1545696000000,0.073876],[1545782400000,0.073876],[1545868800000,0.072994],[1545955200000,0.073184],[1546041600000,0.07278],[1546128000000,0.07278]], 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: [[1515974400000, 0.087016],[1515974400000, 0.087016],[1518652800000, 0.084423],[1521072000000, 0.082027],[1523750400000, 0.080516],[1526342400000, 0.079794],[1529020800000, 0.078049],[1531612800000, 0.076708],[1534291200000, 0.076999],[1536969600000, 0.076902],[1539561600000, 0.076462],[1542240000000, 0.075460],[1544832000000, 0.074629]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });