$(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: [[1483228800000,0.081586],[1483315200000,0.081586],[1483401600000,0.081586],[1483488000000,0.081586],[1483574400000,0.079795],[1483660800000,0.079795],[1483747200000,0.081716],[1483833600000,0.081716],[1483920000000,0.081716],[1484006400000,0.081716],[1484092800000,0.081679],[1484179200000,0.081187],[1484265600000,0.08212],[1484352000000,null],[1484438400000,0.083326],[1484524800000,0.083326],[1484611200000,0.083185],[1484697600000,0.083052],[1484784000000,0.08317],[1484870400000,0.082887],[1484956800000,0.082648],[1485043200000,0.082648],[1485129600000,0.082648],[1485216000000,0.082471],[1485302400000,0.0829],[1485388800000,0.082987],[1485475200000,0.082896],[1485561600000,0.082719],[1485648000000,0.082719],[1485734400000,0.082719],[1485820800000,0.083123],[1485907200000,0.083517],[1485993600000,0.083236],[1486080000000,0.083037],[1486166400000,0.083854],[1486252800000,0.083854],[1486339200000,0.083854],[1486425600000,0.084719],[1486512000000,0.083677],[1486598400000,0.082905],[1486684800000,0.083421],[1486771200000,0.084154],[1486857600000,0.084154],[1486944000000,0.084154],[1487030400000,0.084377],[1487116800000,0.084438],[1487203200000,0.084171],[1487289600000,0.084493],[1487376000000,0.084825],[1487462400000,0.084825],[1487548800000,0.084825],[1487635200000,0.084668],[1487721600000,0.085238],[1487808000000,0.085876],[1487894400000,0.086059],[1487980800000,0.086605],[1488067200000,0.086605],[1488153600000,0.086605],[1488240000000,0.08658],[1488326400000,0.086852],[1488412800000,0.08662],[1488499200000,0.086004],[1488585600000,0.085426],[1488672000000,0.085426],[1488758400000,0.085426],[1488844800000,0.08544],[1488931200000,0.085542],[1489017600000,0.085542],[1489104000000,0.084936],[1489190400000,0.084317],[1489276800000,0.084317],[1489363200000,0.084317],[1489449600000,0.084556],[1489536000000,0.084615],[1489622400000,0.08426],[1489708800000,0.084938],[1489795200000,0.085413],[1489881600000,0.085413],[1489968000000,0.085413],[1490054400000,0.08521],[1490140800000,0.085093],[1490227200000,0.085311],[1490313600000,0.085748],[1490400000000,0.085685],[1490486400000,0.085685],[1490572800000,0.085685],[1490659200000,0.086084],[1490745600000,0.086144],[1490832000000,0.085801],[1490918400000,0.085695],[1491004800000,0.086131],[1491091200000,0.086131],[1491177600000,0.086131],[1491264000000,0.086206],[1491350400000,0.086728],[1491436800000,0.087019],[1491523200000,0.086599],[1491609600000,0.086173],[1491696000000,0.086173],[1491782400000,0.086173],[1491868800000,0.085991],[1491955200000,0.086372],[1492041600000,0.086206],[1492128000000,0.086183],[1492214400000,0.086248],[1492300800000,0.086248],[1492387200000,0.086248],[1492473600000,0.086248],[1492560000000,0.086413],[1492646400000,0.086005],[1492732800000,0.085654],[1492819200000,0.085479],[1492905600000,0.085479],[1492992000000,0.085479],[1493078400000,0.085523],[1493164800000,0.085473],[1493251200000,0.085101],[1493337600000,0.084586],[1493424000000,0.084481],[1493510400000,0.084481],[1493596800000,0.084481],[1493683200000,0.084481],[1493769600000,0.084481],[1493856000000,0.084108],[1493942400000,0.083901],[1494028800000,0.083339],[1494115200000,0.083339],[1494201600000,0.083339],[1494288000000,0.083339],[1494374400000,0.083339],[1494460800000,0.083082],[1494547200000,0.08357],[1494633600000,0.083912],[1494720000000,0.083912],[1494806400000,0.083912],[1494892800000,0.08444],[1494979200000,0.084712],[1495065600000,0.084352],[1495152000000,0.084179],[1495238400000,0.084369],[1495324800000,0.084369],[1495411200000,0.084369],[1495497600000,0.084782],[1495584000000,0.084627],[1495670400000,0.084403],[1495756800000,0.084608],[1495843200000,0.084551],[1495929600000,0.084551],[1496016000000,0.084551],[1496102400000,0.085012],[1496188800000,0.084673],[1496275200000,0.084258],[1496361600000,0.084107],[1496448000000,0.083919],[1496534400000,0.083919],[1496620800000,0.083919],[1496707200000,0.083919],[1496793600000,0.083858],[1496880000000,0.083817],[1496966400000,0.083249],[1497052800000,0.082888],[1497139200000,0.082888],[1497225600000,0.082888],[1497312000000,0.082401],[1497398400000,0.082274],[1497484800000,0.082256],[1497571200000,0.081873],[1497657600000,0.081395],[1497744000000,0.081395],[1497830400000,0.081395],[1497916800000,0.081434],[1498003200000,0.080924],[1498089600000,0.079758],[1498176000000,0.079436],[1498262400000,0.079635],[1498348800000,0.079635],[1498435200000,0.079635],[1498521600000,0.080113],[1498608000000,0.080992],[1498694400000,0.080992],[1498780800000,0.081189],[1498867200000,0.08075],[1498953600000,0.08075],[1499040000000,0.08075],[1499126400000,0.081121],[1499212800000,0.080707],[1499299200000,0.08063],[1499385600000,0.080448],[1499472000000,0.080333],[1499558400000,0.080333],[1499644800000,0.080333],[1499731200000,0.07966],[1499817600000,0.079377],[1499904000000,0.078871],[1499990400000,0.079279],[1500076800000,0.079633],[1500163200000,0.079633],[1500249600000,0.079633],[1500336000000,0.07974],[1500422400000,0.079562],[1500508800000,0.079578],[1500595200000,0.079642],[1500681600000,0.079666],[1500768000000,0.079666],[1500854400000,0.079666],[1500940800000,0.079041],[1501027200000,0.07904],[1501113600000,0.079241],[1501200000000,0.079552],[1501286400000,0.079316],[1501372800000,0.079316],[1501459200000,0.079316],[1501545600000,0.078809],[1501632000000,0.078338],[1501718400000,0.077277],[1501804800000,0.077107],[1501891200000,0.077522],[1501977600000,0.077522],[1502064000000,0.077522],[1502150400000,0.077743],[1502236800000,0.077463],[1502323200000,0.077393],[1502409600000,0.077226],[1502496000000,0.077125],[1502582400000,0.077125],[1502668800000,0.077125],[1502755200000,0.077103],[1502841600000,0.076892],[1502928000000,0.076864],[1503014400000,0.076669],[1503100800000,0.076594],[1503187200000,0.076594],[1503273600000,0.076594],[1503360000000,null],[1503446400000,0.076413],[1503532800000,0.07664],[1503619200000,0.07664],[1503705600000,0.07664],[1503792000000,0.07664],[1503878400000,0.07664],[1503964800000,0.076523],[1504051200000,0.07601],[1504137600000,0.076425],[1504224000000,0.076234],[1504310400000,0.076396],[1504396800000,0.076396],[1504483200000,0.076396],[1504569600000,0.076596],[1504656000000,0.076206],[1504742400000,0.076145],[1504828800000,0.077239],[1504915200000,0.077995],[1505001600000,0.077995],[1505088000000,0.077995],[1505174400000,0.077294],[1505260800000,0.076827],[1505347200000,0.076705],[1505433600000,0.077384],[1505520000000,0.077381],[1505606400000,0.077381],[1505692800000,0.077381],[1505779200000,0.076997],[1505865600000,0.076628],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,0.077905],[1506729600000,0.077899],[1506816000000,0.077899],[1506902400000,0.077899],[1506988800000,0.078111],[1507075200000,0.078],[1507161600000,0.078021],[1507248000000,0.07768],[1507334400000,0.077809],[1507420800000,0.077809],[1507507200000,0.077809],[1507593600000,0.077643],[1507680000000,0.078779],[1507766400000,0.079076],[1507852800000,0.079685],[1507939200000,0.079685],[1508025600000,0.079685],[1508112000000,0.079685],[1508198400000,0.079685],[1508284800000,0.079406],[1508371200000,0.07922],[1508457600000,0.079315],[1508544000000,0.079164],[1508630400000,0.079164],[1508716800000,0.079164],[1508803200000,null],[1508889600000,0.079626],[1508976000000,0.080405],[1509062400000,0.08035],[1509148800000,0.08037],[1509235200000,0.08037],[1509321600000,0.08037],[1509408000000,0.080328],[1509494400000,0.080255],[1509580800000,0.080201],[1509667200000,0.080356],[1509753600000,0.080702],[1509840000000,0.080702],[1509926400000,0.080702],[1510012800000,0.080265],[1510099200000,0.080358],[1510185600000,0.079807],[1510272000000,0.079758],[1510358400000,0.079733],[1510444800000,0.079733],[1510531200000,0.079733],[1510617600000,0.079606],[1510704000000,0.079602],[1510790400000,0.079593],[1510876800000,0.079657],[1510963200000,0.079766],[1511049600000,0.079766],[1511136000000,0.079766],[1511222400000,0.079991],[1511308800000,0.080209],[1511395200000,0.080696],[1511481600000,0.081398],[1511568000000,0.08146],[1511654400000,0.08146],[1511740800000,0.08146],[1511827200000,0.081159],[1511913600000,0.081061],[1512000000000,0.081463],[1512086400000,0.081987],[1512172800000,0.081681],[1512259200000,0.081681],[1512345600000,0.081681],[1512432000000,0.081789],[1512518400000,0.081577],[1512604800000,0.081304],[1512691200000,0.08099],[1512777600000,0.081088],[1512864000000,0.081088],[1512950400000,0.081088],[1513036800000,0.08099],[1513123200000,0.081162],[1513209600000,0.081303],[1513296000000,0.08184],[1513382400000,0.082412],[1513468800000,0.082412],[1513555200000,0.082412],[1513641600000,0.083123],[1513728000000,0.083155],[1513814400000,0.082998],[1513900800000,0.083369],[1513987200000,0.084017],[1514073600000,0.084017],[1514160000000,0.084017],[1514246400000,0.084017],[1514332800000,0.084079],[1514419200000,0.08434],[1514505600000,0.084716],[1514592000000,0.084716]], 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: [[1484438400000, 0.082240],[1484438400000, 0.082240],[1487116800000, 0.084597],[1489536000000, 0.085384],[1492214400000, 0.085912],[1494806400000, 0.084164],[1497484800000, 0.082012],[1500076800000, 0.079825],[1502755200000, 0.077039],[1505433600000, 0.077062],[1508025600000, 0.079074],[1510704000000, 0.080347],[1513296000000, 0.082573]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });