$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1514764800000,1.64134],[1514851200000,1.64134],[1514937600000,1.64134],[1515024000000,1.63359],[1515110400000,1.63986],[1515196800000,1.65281],[1515283200000,1.65281],[1515369600000,1.65281],[1515456000000,1.65281],[1515542400000,1.65153],[1515628800000,1.66008],[1515715200000,1.66856],[1515801600000,1.67433],[1515888000000,1.67433],[1515974400000,1.67433],[1516060800000,1.67809],[1516147200000,1.68753],[1516233600000,1.69318],[1516320000000,1.70046],[1516406400000,1.71011],[1516492800000,1.71011],[1516579200000,1.71011],[1516665600000,1.71363],[1516752000000,1.71292],[1516838400000,1.71588],[1516924800000,1.71077],[1517011200000,1.70375],[1517097600000,1.70375],[1517184000000,1.70375],[1517270400000,1.68641],[1517356800000,1.67536],[1517443200000,1.66666],[1517529600000,1.66982],[1517616000000,1.67304],[1517702400000,1.67304],[1517788800000,1.67304],[1517875200000,1.66886],[1517961600000,1.65258],[1518048000000,1.63435],[1518134400000,1.63271],[1518220800000,1.62618],[1518307200000,1.62618],[1518393600000,1.62618],[1518480000000,1.60871],[1518566400000,1.59591],[1518652800000,1.59021],[1518739200000,1.5959],[1518825600000,1.61494],[1518912000000,1.61494],[1518998400000,1.61494],[1519084800000,1.61843],[1519171200000,1.6275],[1519257600000,1.62068],[1519344000000,1.62407],[1519430400000,1.61641],[1519516800000,1.61641],[1519603200000,1.61641],[1519689600000,1.6172],[1519776000000,1.61424],[1519862400000,1.60642],[1519948800000,1.59887],[1520035200000,1.59086],[1520121600000,1.59086],[1520208000000,1.59086],[1520294400000,1.58562],[1520380800000,1.57794],[1520467200000,1.56532],[1520553600000,1.56532],[1520640000000,1.56532],[1520726400000,1.56532],[1520812800000,1.56532],[1520899200000,1.55865],[1520985600000,1.56188],[1521072000000,1.57153],[1521158400000,1.58873],[1521244800000,1.59508],[1521331200000,1.59508],[1521417600000,1.59508],[1521504000000,1.60305],[1521590400000,1.5907],[1521676800000,1.58761],[1521763200000,1.58558],[1521849600000,1.58725],[1521936000000,1.58725],[1522022400000,1.58725],[1522108800000,1.59211],[1522195200000,1.59509],[1522281600000,1.60278],[1522368000000,1.61181],[1522454400000,1.59743],[1522540800000,1.59743],[1522627200000,1.59743],[1522713600000,1.58951],[1522800000000,1.60265],[1522886400000,1.60162],[1522972800000,1.58911],[1523059200000,1.58993],[1523145600000,1.58993],[1523232000000,1.58993],[1523318400000,1.58993],[1523404800000,1.58579],[1523491200000,1.5835],[1523577600000,1.58516],[1523664000000,1.59361],[1523750400000,1.59361],[1523836800000,1.59361],[1523923200000,1.59],[1524009600000,1.5893],[1524096000000,1.59225],[1524182400000,1.59645],[1524268800000,1.58969],[1524355200000,1.58969],[1524441600000,1.58969],[1524528000000,1.58555],[1524614400000,1.58783],[1524700800000,1.59041],[1524787200000,1.58714],[1524873600000,1.58506],[1524960000000,1.58506],[1525046400000,1.58506],[1525132800000,1.58506],[1525219200000,1.58506],[1525305600000,1.57638],[1525392000000,1.57737],[1525478400000,1.58424],[1525564800000,1.58424],[1525651200000,1.58424],[1525737600000,1.58193],[1525824000000,1.57944],[1525910400000,1.57944],[1525996800000,1.57973],[1526083200000,1.58139],[1526169600000,1.58139],[1526256000000,1.58139],[1526342400000,1.58113],[1526428800000,1.58374],[1526515200000,1.58323],[1526601600000,1.57553],[1526688000000,1.56818],[1526774400000,1.56818],[1526860800000,1.56818],[1526947200000,1.56143],[1527033600000,1.55768],[1527120000000,1.55402],[1527206400000,1.55232],[1527292800000,1.55158],[1527379200000,1.55158],[1527465600000,1.55158],[1527552000000,1.55158],[1527638400000,1.54376],[1527724800000,1.54159],[1527811200000,1.54079],[1527897600000,1.53814],[1527984000000,1.53814],[1528070400000,1.53814],[1528156800000,1.53992],[1528243200000,1.54652],[1528329600000,1.54942],[1528416000000,1.55595],[1528502400000,1.55419],[1528588800000,1.55419],[1528675200000,1.55419],[1528761600000,1.55535],[1528848000000,1.5559],[1528934400000,1.56021],[1529020800000,1.56524],[1529107200000,1.56937],[1529193600000,1.56937],[1529280000000,1.56937],[1529366400000,1.56451],[1529452800000,1.57011],[1529539200000,null],[1529625600000,1.5544],[1529712000000,1.55047],[1529798400000,1.55047],[1529884800000,1.55047],[1529971200000,1.54438],[1530057600000,1.54899],[1530144000000,1.56081],[1530230400000,1.56081],[1530316800000,1.56081],[1530403200000,1.56081],[1530489600000,1.56081],[1530576000000,1.55827],[1530662400000,1.56492],[1530748800000,1.57437],[1530835200000,1.57595],[1530921600000,1.57242],[1531008000000,1.57242],[1531094400000,1.57242],[1531180800000,1.57019],[1531267200000,1.57145],[1531353600000,1.57243],[1531440000000,1.574],[1531526400000,1.57224],[1531612800000,1.57224],[1531699200000,1.57224],[1531785600000,1.5692],[1531872000000,1.57183],[1531958400000,1.57782],[1532044800000,1.58869],[1532131200000,1.58497],[1532217600000,1.58497],[1532304000000,1.58497],[1532390400000,1.58565],[1532476800000,1.59716],[1532563200000,1.5995],[1532649600000,1.60522],[1532736000000,1.61221],[1532822400000,1.61221],[1532908800000,1.61221],[1532995200000,1.61378],[1533081600000,null],[1533168000000,1.62919],[1533254400000,1.6348],[1533340800000,1.63961],[1533427200000,1.63961],[1533513600000,1.63961],[1533600000000,1.6437],[1533686400000,1.63688],[1533772800000,1.63715],[1533859200000,1.64471],[1533945600000,1.65227],[1534032000000,1.65227],[1534118400000,1.65227],[1534204800000,1.65564],[1534291200000,1.65483],[1534377600000,1.65224],[1534464000000,1.66303],[1534550400000,1.67218],[1534636800000,1.67218],[1534723200000,1.67218],[1534809600000,1.65419],[1534896000000,1.65393],[1534982400000,1.66775],[1535068800000,1.66687],[1535155200000,1.66687],[1535241600000,1.66687],[1535328000000,1.66687],[1535414400000,1.66879],[1535500800000,1.67872],[1535587200000,1.68262],[1535673600000,1.69238],[1535760000000,1.69215],[1535846400000,1.69215],[1535932800000,1.69215],[1536019200000,1.70074],[1536105600000,1.70803],[1536192000000,1.70266],[1536278400000,1.68753],[1536364800000,1.68837],[1536451200000,1.68837],[1536537600000,1.68837],[1536624000000,1.68227],[1536710400000,1.67699],[1536796800000,1.67042],[1536883200000,1.67523],[1536969600000,1.67574],[1537056000000,1.67574],[1537142400000,1.67574],[1537228800000,1.67675],[1537315200000,1.67673],[1537401600000,1.67481],[1537488000000,1.66942],[1537574400000,1.66788],[1537660800000,1.66788],[1537747200000,1.66788],[1537833600000,1.66961],[1537920000000,1.66769],[1538006400000,1.66987],[1538092800000,1.67806],[1538179200000,1.67336],[1538265600000,1.67336],[1538352000000,1.67336],[1538438400000,1.66992],[1538524800000,1.67469],[1538611200000,1.67453],[1538697600000,1.66537],[1538784000000,1.65625],[1538870400000,1.65625],[1538956800000,1.65625],[1539043200000,1.65608],[1539129600000,1.65318],[1539216000000,1.64735],[1539302400000,1.64562],[1539388800000,1.64289],[1539475200000,1.64289],[1539561600000,1.64289],[1539648000000,1.64289],[1539734400000,1.64598],[1539820800000,1.64462],[1539907200000,1.65211],[1539993600000,1.65906],[1540080000000,1.65906],[1540166400000,1.65906],[1540252800000,1.64936],[1540339200000,1.6513],[1540425600000,1.65208],[1540512000000,1.65372],[1540598400000,1.64828],[1540684800000,1.64828],[1540771200000,1.64828],[1540857600000,1.64612],[1540944000000,1.64391],[1541030400000,1.64184],[1541116800000,1.64363],[1541203200000,1.64192],[1541289600000,1.64192],[1541376000000,1.64192],[1541462400000,1.63674],[1541548800000,1.63484],[1541635200000,1.63348],[1541721600000,1.6395],[1541808000000,1.63881],[1541894400000,1.63881],[1541980800000,1.63881],[1542067200000,1.64126],[1542153600000,1.63938],[1542240000000,1.63213],[1542326400000,1.6268],[1542412800000,1.62231],[1542499200000,1.62231],[1542585600000,1.62231],[1542672000000,1.62156],[1542758400000,1.62178],[1542844800000,1.62089],[1542931200000,1.61746],[1543017600000,1.61814],[1543104000000,1.61814],[1543190400000,1.61814],[1543276800000,1.62251],[1543363200000,1.6327],[1543449600000,1.63979],[1543536000000,1.64742],[1543622400000,1.64179],[1543708800000,1.64179],[1543795200000,1.64179],[1543881600000,1.6427],[1543968000000,1.64311],[1544054400000,1.63374],[1544140800000,1.62201],[1544227200000,1.61779],[1544313600000,1.61779],[1544400000000,1.61779],[1544486400000,1.61319],[1544572800000,1.60902],[1544659200000,1.61291],[1544745600000,1.61391],[1544832000000,1.61123],[1544918400000,1.61123],[1545004800000,1.61123],[1545091200000,1.61209],[1545177600000,1.60909],[1545264000000,1.60062],[1545350400000,1.59431],[1545436800000,1.58605],[1545523200000,1.58605],[1545609600000,1.58605],[1545696000000,1.58605],[1545782400000,1.58605],[1545868800000,1.58489],[1545955200000,1.60156],[1546041600000,1.61516],[1546128000000,1.61516]], 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, 1.678311],[1515974400000, 1.678311],[1518652800000, 1.629627],[1521072000000, 1.585870],[1523750400000, 1.590531],[1526342400000, 1.570535],[1529020800000, 1.554161],[1531612800000, 1.581212],[1534291200000, 1.657007],[1536969600000, 1.680198],[1539561600000, 1.653602],[1542240000000, 1.631910],[1544832000000, 1.612301]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });