$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1514764800000,0.48703],[1514851200000,0.48703],[1514937600000,0.48703],[1515024000000,0.48421],[1515110400000,0.48634],[1515196800000,0.48964],[1515283200000,0.48964],[1515369600000,0.48964],[1515456000000,0.48964],[1515542400000,0.49439],[1515628800000,0.4981],[1515715200000,0.49909],[1515801600000,0.50416],[1515888000000,0.50416],[1515974400000,0.50416],[1516060800000,0.50691],[1516147200000,0.50813],[1516233600000,0.50654],[1516320000000,0.50701],[1516406400000,0.50972],[1516492800000,0.50972],[1516579200000,0.50972],[1516665600000,0.50994],[1516752000000,0.51168],[1516838400000,0.5119],[1516924800000,0.51396],[1517011200000,0.51136],[1517097600000,0.51136],[1517184000000,0.51136],[1517270400000,0.5018],[1517356800000,0.49757],[1517443200000,0.49558],[1517529600000,0.49536],[1517616000000,0.49762],[1517702400000,0.49762],[1517788800000,0.49762],[1517875200000,0.48991],[1517961600000,0.47992],[1518048000000,0.47617],[1518134400000,0.4703],[1518220800000,0.46515],[1518307200000,0.46515],[1518393600000,0.46515],[1518480000000,0.46263],[1518566400000,0.46217],[1518652800000,0.46284],[1518739200000,0.47286],[1518825600000,0.47894],[1518912000000,0.47894],[1518998400000,0.47894],[1519084800000,0.47941],[1519171200000,0.479],[1519257600000,0.47637],[1519344000000,0.47695],[1519430400000,0.47548],[1519516800000,0.47548],[1519603200000,0.47548],[1519689600000,0.48294],[1519776000000,0.48406],[1519862400000,0.47549],[1519948800000,0.47258],[1520035200000,0.46832],[1520121600000,0.46832],[1520208000000,0.46832],[1520294400000,0.46378],[1520380800000,0.46632],[1520467200000,0.45939],[1520553600000,0.45939],[1520640000000,0.45939],[1520726400000,0.45939],[1520812800000,0.45939],[1520899200000,0.45793],[1520985600000,0.45518],[1521072000000,0.45689],[1521158400000,0.46077],[1521244800000,0.45838],[1521331200000,0.45838],[1521417600000,0.45838],[1521504000000,0.45934],[1521590400000,0.4558],[1521676800000,0.4571],[1521763200000,0.46189],[1521849600000,0.45993],[1521936000000,0.45993],[1522022400000,0.45993],[1522108800000,0.46145],[1522195200000,0.4601],[1522281600000,0.45874],[1522368000000,0.45953],[1522454400000,0.45939],[1522540800000,0.45939],[1522627200000,0.45939],[1522713600000,0.45668],[1522800000000,0.45761],[1522886400000,0.45466],[1522972800000,0.4527],[1523059200000,0.45004],[1523145600000,0.45004],[1523232000000,0.45004],[1523318400000,0.45004],[1523404800000,0.41648],[1523491200000,0.4047],[1523577600000,0.41869],[1523664000000,0.42527],[1523750400000,0.42527],[1523836800000,0.42527],[1523923200000,0.41891],[1524009600000,0.42657],[1524096000000,0.42479],[1524182400000,0.43093],[1524268800000,0.4269],[1524355200000,0.4269],[1524441600000,0.4269],[1524528000000,0.42298],[1524614400000,0.42451],[1524700800000,0.42544],[1524787200000,0.41899],[1524873600000,0.41762],[1524960000000,0.41762],[1525046400000,0.41762],[1525132800000,0.41762],[1525219200000,0.41762],[1525305600000,0.42186],[1525392000000,0.41256],[1525478400000,0.41622],[1525564800000,0.41622],[1525651200000,0.41622],[1525737600000,0.4192],[1525824000000,0.41613],[1525910400000,0.41613],[1525996800000,0.41892],[1526083200000,0.42436],[1526169600000,0.42436],[1526256000000,0.42436],[1526342400000,0.4237],[1526428800000,0.42333],[1526515200000,0.42065],[1526601600000,0.42362],[1526688000000,0.42214],[1526774400000,0.42214],[1526860800000,0.42214],[1526947200000,0.41712],[1527033600000,0.42558],[1527120000000,0.42344],[1527206400000,0.42514],[1527292800000,0.42405],[1527379200000,0.42405],[1527465600000,0.42405],[1527552000000,0.42405],[1527638400000,0.41664],[1527724800000,0.41755],[1527811200000,0.4212],[1527897600000,0.4198],[1527984000000,0.4198],[1528070400000,0.4198],[1528156800000,0.42198],[1528243200000,0.422],[1528329600000,0.42193],[1528416000000,0.4234],[1528502400000,0.41706],[1528588800000,0.41706],[1528675200000,0.41706],[1528761600000,0.41851],[1528848000000,0.41845],[1528934400000,0.41391],[1529020800000,0.42119],[1529107200000,0.41981],[1529193600000,0.41981],[1529280000000,0.41981],[1529366400000,0.41474],[1529452800000,0.41279],[1529539200000,null],[1529625600000,0.41239],[1529712000000,0.41491],[1529798400000,0.41491],[1529884800000,0.41491],[1529971200000,0.41579],[1530057600000,0.41709],[1530144000000,0.417],[1530230400000,0.417],[1530316800000,0.417],[1530403200000,0.417],[1530489600000,0.417],[1530576000000,0.41547],[1530662400000,0.416],[1530748800000,0.41815],[1530835200000,0.41779],[1530921600000,0.41691],[1531008000000,0.41691],[1531094400000,0.41691],[1531180800000,0.41776],[1531267200000,0.41972],[1531353600000,0.42235],[1531440000000,0.42163],[1531526400000,0.42112],[1531612800000,0.42112],[1531699200000,0.42112],[1531785600000,0.42096],[1531872000000,0.41998],[1531958400000,0.41817],[1532044800000,0.41837],[1532131200000,0.41655],[1532217600000,0.41655],[1532304000000,0.41655],[1532390400000,0.41854],[1532476800000,0.42247],[1532563200000,0.42209],[1532649600000,0.42339],[1532736000000,0.42497],[1532822400000,0.42497],[1532908800000,0.42497],[1532995200000,0.42617],[1533081600000,null],[1533168000000,0.43099],[1533254400000,0.42784],[1533340800000,0.42696],[1533427200000,0.42696],[1533513600000,0.42696],[1533600000000,0.42729],[1533686400000,0.42524],[1533772800000,0.42396],[1533859200000,0.40901],[1533945600000,0.40721],[1534032000000,0.40721],[1534118400000,0.40721],[1534204800000,0.40081],[1534291200000,0.41135],[1534377600000,0.41354],[1534464000000,0.41365],[1534550400000,0.41717],[1534636800000,0.41717],[1534723200000,0.41717],[1534809600000,0.41227],[1534896000000,0.41248],[1534982400000,0.41241],[1535068800000,0.40646],[1535155200000,0.40646],[1535241600000,0.40646],[1535328000000,0.40646],[1535414400000,0.41375],[1535500800000,0.41625],[1535587200000,0.4126],[1535673600000,0.41537],[1535760000000,0.41511],[1535846400000,0.41511],[1535932800000,0.41511],[1536019200000,0.4189],[1536105600000,0.41733],[1536192000000,0.41499],[1536278400000,0.41354],[1536364800000,0.40947],[1536451200000,0.40947],[1536537600000,0.40947],[1536624000000,0.40363],[1536710400000,0.40151],[1536796800000,0.40283],[1536883200000,0.40979],[1536969600000,0.41229],[1537056000000,0.41229],[1537142400000,0.41229],[1537228800000,0.41244],[1537315200000,0.4155],[1537401600000,0.41964],[1537488000000,0.42216],[1537574400000,0.42359],[1537660800000,0.42359],[1537747200000,0.42359],[1537833600000,0.4249],[1537920000000,0.4263],[1538006400000,0.42797],[1538092800000,0.42983],[1538179200000,0.43101],[1538265600000,0.43101],[1538352000000,0.43101],[1538438400000,0.43024],[1538524800000,0.43354],[1538611200000,0.43287],[1538697600000,0.42553],[1538784000000,0.42152],[1538870400000,0.42152],[1538956800000,0.42152],[1539043200000,0.41942],[1539129600000,0.42289],[1539216000000,0.42311],[1539302400000,0.4191],[1539388800000,0.42331],[1539475200000,0.42331],[1539561600000,0.42331],[1539648000000,0.42331],[1539734400000,0.42621],[1539820800000,0.42685],[1539907200000,0.42658],[1539993600000,0.42821],[1540080000000,0.42821],[1540166400000,0.42821],[1540252800000,0.42998],[1540339200000,0.43101],[1540425600000,0.42988],[1540512000000,0.43098],[1540598400000,0.43066],[1540684800000,0.43066],[1540771200000,0.43066],[1540857600000,0.42853],[1540944000000,0.4282],[1541030400000,0.42867],[1541116800000,0.4289],[1541203200000,0.42899],[1541289600000,0.42899],[1541376000000,0.42899],[1541462400000,0.42719],[1541548800000,0.42363],[1541635200000,0.42209],[1541721600000,0.42176],[1541808000000,0.41723],[1541894400000,0.41723],[1541980800000,0.41723],[1542067200000,0.41324],[1542153600000,0.4125],[1542240000000,0.40942],[1542326400000,0.41693],[1542412800000,0.42057],[1542499200000,0.42057],[1542585600000,0.42057],[1542672000000,0.42063],[1542758400000,0.42331],[1542844800000,0.42116],[1542931200000,0.42291],[1543017600000,0.42329],[1543104000000,0.42329],[1543190400000,0.42329],[1543276800000,0.41948],[1543363200000,0.42086],[1543449600000,0.42228],[1543536000000,0.42607],[1543622400000,0.42419],[1543708800000,0.42419],[1543795200000,0.42419],[1543881600000,0.42498],[1543968000000,0.42329],[1544054400000,0.41865],[1544140800000,0.41775],[1544227200000,0.41577],[1544313600000,0.41577],[1544400000000,0.41577],[1544486400000,0.41933],[1544572800000,0.41673],[1544659200000,0.41866],[1544745600000,0.4206],[1544832000000,0.41902],[1544918400000,0.41902],[1545004800000,0.41902],[1545091200000,0.41858],[1545177600000,0.41723],[1545264000000,0.413],[1545350400000,0.40933],[1545436800000,0.40339],[1545523200000,0.40339],[1545609600000,0.40339],[1545696000000,0.40339],[1545782400000,0.40339],[1545868800000,0.39584],[1545955200000,0.39861],[1546041600000,0.39827],[1546128000000,0.39827]], 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.501063],[1515974400000, 0.501063],[1518652800000, 0.478501],[1521072000000, 0.461262],[1523750400000, 0.432765],[1526342400000, 0.420683],[1529020800000, 0.417969],[1531612800000, 0.419731],[1534291200000, 0.415289],[1536969600000, 0.416822],[1539561600000, 0.426785],[1542240000000, 0.421709],[1544832000000, 0.412945]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });