$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1420070400000,2.53331],[1420156800000,2.53331],[1420243200000,2.53331],[1420329600000,2.53331],[1420416000000,2.53331],[1420502400000,2.53331],[1420588800000,2.53692],[1420675200000,2.53692],[1420761600000,null],[1420848000000,2.53364],[1420934400000,2.53364],[1421020800000,2.53364],[1421107200000,2.53882],[1421193600000,2.54289],[1421280000000,null],[1421366400000,2.54582],[1421452800000,2.55089],[1421539200000,2.55785],[1421625600000,2.55785],[1421712000000,2.54678],[1421798400000,2.53555],[1421884800000,2.54033],[1421971200000,null],[1422057600000,2.54314],[1422144000000,2.54314],[1422230400000,2.54314],[1422316800000,2.53821],[1422403200000,2.54216],[1422489600000,2.54125],[1422576000000,2.55381],[1422662400000,2.58696],[1422748800000,2.58696],[1422835200000,2.58696],[1422921600000,2.58415],[1423008000000,2.59557],[1423094400000,2.67362],[1423180800000,2.88042],[1423267200000,null],[1423353600000,3.70118],[1423440000000,3.70118],[1423526400000,3.99348],[1423612800000,3.97678],[1423699200000,4.09476],[1423785600000,4.02055],[1423872000000,4.15107],[1423958400000,4.15107],[1424044800000,4.15107],[1424131200000,4.17504],[1424217600000,4.21787],[1424304000000,4.28439],[1424390400000,4.37371],[1424476800000,4.45359],[1424563200000,4.45359],[1424649600000,4.45359],[1424736000000,4.5338],[1424822400000,4.52189],[1424908800000,4.4847],[1424995200000,4.79402],[1425081600000,4.43584],[1425168000000,4.43584],[1425254400000,4.43584],[1425340800000,4.28297],[1425427200000,3.95511],[1425513600000,3.79021],[1425600000000,3.68342],[1425686400000,3.65293],[1425772800000,3.65293],[1425859200000,3.65293],[1425945600000,3.65293],[1426032000000,3.46959],[1426118400000,3.44214],[1426204800000,3.44173],[1426291200000,3.45197],[1426377600000,3.45197],[1426464000000,3.45197],[1426550400000,3.47816],[1426636800000,3.5524],[1426723200000,3.72753],[1426809600000,3.75541],[1426896000000,3.74367],[1426982400000,3.74367],[1427068800000,3.74367],[1427155200000,3.7309],[1427241600000,3.74737],[1427328000000,3.79443],[1427414400000,3.78284],[1427500800000,3.78456],[1427587200000,3.78456],[1427673600000,3.78456],[1427760000000,3.7715],[1427846400000,3.78224],[1427932800000,3.78849],[1428019200000,3.79417],[1428105600000,3.76113],[1428192000000,3.76113],[1428278400000,3.76113],[1428364800000,3.78417],[1428451200000,3.79188],[1428537600000,3.79015],[1428624000000,3.77627],[1428710400000,3.68548],[1428796800000,3.68548],[1428883200000,3.68548],[1428969600000,3.68548],[1429056000000,3.69016],[1429142400000,3.51049],[1429228800000,3.46063],[1429315200000,3.39811],[1429401600000,3.39811],[1429488000000,3.39811],[1429574400000,3.58616],[1429660800000,3.59196],[1429747200000,3.63931],[1429833600000,3.63526],[1429920000000,3.62424],[1430006400000,3.62424],[1430092800000,3.62424],[1430179200000,3.68154],[1430265600000,3.58761],[1430352000000,3.39472],[1430438400000,3.40674],[1430524800000,3.40674],[1430611200000,3.40674],[1430697600000,3.40674],[1430784000000,3.40674],[1430870400000,3.40734],[1430956800000,3.39101],[1431043200000,3.34052],[1431129600000,3.31766],[1431216000000,3.31766],[1431302400000,3.31766],[1431388800000,3.31766],[1431475200000,3.32195],[1431561600000,3.3154],[1431648000000,3.31697],[1431734400000,3.33632],[1431820800000,3.33632],[1431907200000,3.33632],[1431993600000,3.56504],[1432080000000,3.42448],[1432166400000,3.35482],[1432252800000,3.33745],[1432339200000,3.36189],[1432425600000,3.36189],[1432512000000,3.36189],[1432598400000,3.40693],[1432684800000,3.45317],[1432771200000,null],[1432857600000,3.39423],[1432944000000,3.40179],[1433030400000,3.40179],[1433116800000,3.40179],[1433203200000,3.40179],[1433289600000,3.3996],[1433376000000,3.38829],[1433462400000,3.38875],[1433548800000,3.3891],[1433635200000,3.3891],[1433721600000,3.3891],[1433808000000,3.4],[1433894400000,3.41117],[1433980800000,3.40802],[1434067200000,3.38819],[1434153600000,3.39215],[1434240000000,3.39215],[1434326400000,3.39215],[1434412800000,3.45445],[1434499200000,3.56616],[1434585600000,3.48797],[1434672000000,3.43624],[1434758400000,3.4843],[1434844800000,3.4843],[1434931200000,3.4843],[1435017600000,3.50575],[1435104000000,3.46819],[1435190400000,3.41098],[1435276800000,3.41367],[1435363200000,3.38467],[1435449600000,3.38467],[1435536000000,3.38467],[1435622400000,3.38467],[1435708800000,3.38822],[1435795200000,3.38724],[1435881600000,3.38651],[1435968000000,3.38705],[1436054400000,3.38705],[1436140800000,3.38705],[1436227200000,3.4256],[1436313600000,3.49301],[1436400000000,3.53864],[1436486400000,3.51891],[1436572800000,3.52957],[1436659200000,3.52957],[1436745600000,3.52957],[1436832000000,3.53773],[1436918400000,3.54319],[1437004800000,3.56041],[1437091200000,3.5399],[1437177600000,3.54537],[1437264000000,3.54537],[1437350400000,3.54537],[1437436800000,3.54853],[1437523200000,3.54639],[1437609600000,3.54496],[1437696000000,3.54545],[1437782400000,3.5552],[1437868800000,3.5552],[1437955200000,3.5552],[1438041600000,3.5552],[1438128000000,3.54937],[1438214400000,3.55505],[1438300800000,3.48034],[1438387200000,3.40219],[1438473600000,3.40219],[1438560000000,3.40219],[1438646400000,3.49737],[1438732800000,3.49661],[1438819200000,3.47294],[1438905600000,3.45974],[1438992000000,3.3963],[1439078400000,3.3963],[1439164800000,3.3963],[1439251200000,3.42417],[1439337600000,3.37889],[1439424000000,3.34888],[1439510400000,3.34409],[1439596800000,3.40432],[1439683200000,3.40432],[1439769600000,3.40432],[1439856000000,3.4432],[1439942400000,3.45427],[1440028800000,3.4502],[1440115200000,3.4482],[1440201600000,3.45887],[1440288000000,3.45887],[1440374400000,3.45887],[1440460800000,null],[1440547200000,3.52784],[1440633600000,3.3429],[1440720000000,3.32787],[1440806400000,3.31561],[1440892800000,3.31561],[1440979200000,3.31561],[1441065600000,3.41647],[1441152000000,null],[1441238400000,null],[1441324800000,null],[1441411200000,null],[1441497600000,null],[1441584000000,null],[1441670400000,null],[1441756800000,null],[1441843200000,null],[1441929600000,null],[1442016000000,null],[1442102400000,null],[1442188800000,null],[1442275200000,null],[1442361600000,null],[1442448000000,3.42543],[1442534400000,null],[1442620800000,3.40012],[1442707200000,3.40012],[1442793600000,3.40012],[1442880000000,3.43188],[1442966400000,3.40921],[1443052800000,3.38035],[1443139200000,3.36314],[1443225600000,3.39101],[1443312000000,3.39101],[1443398400000,3.39101],[1443484800000,3.39163],[1443571200000,3.38205],[1443657600000,3.35049],[1443744000000,3.3275],[1443830400000,3.3266],[1443916800000,3.3266],[1444003200000,3.3266],[1444089600000,3.33785],[1444176000000,3.34465],[1444262400000,3.3458],[1444348800000,3.35215],[1444435200000,3.3878],[1444521600000,3.3878],[1444608000000,3.3878],[1444694400000,3.45027],[1444780800000,3.45886],[1444867200000,3.45886],[1444953600000,3.41842],[1445040000000,3.3529],[1445126400000,3.3529],[1445212800000,3.3529],[1445299200000,3.39879],[1445385600000,3.46367],[1445472000000,3.56101],[1445558400000,3.50429],[1445644800000,3.55473],[1445731200000,3.55473],[1445817600000,3.55473],[1445904000000,3.60603],[1445990400000,3.5991],[1446076800000,3.59935],[1446163200000,3.6041],[1446249600000,3.6343],[1446336000000,3.6343],[1446422400000,3.6343],[1446508800000,3.63166],[1446595200000,3.63306],[1446681600000,3.64254],[1446768000000,3.61252],[1446854400000,3.56426],[1446940800000,3.56426],[1447027200000,3.56426],[1447113600000,3.57606],[1447200000000,3.57888],[1447286400000,3.57387],[1447372800000,3.5974],[1447459200000,3.61793],[1447545600000,3.61793],[1447632000000,3.61793],[1447718400000,3.64187],[1447804800000,3.72749],[1447891200000,3.74794],[1447977600000,3.73321],[1448064000000,3.75661],[1448150400000,3.75661],[1448236800000,3.75661],[1448323200000,3.76616],[1448409600000,3.74858],[1448496000000,3.72198],[1448582400000,3.69316],[1448668800000,3.7354],[1448755200000,3.7354],[1448841600000,3.7354],[1448928000000,3.74281],[1449014400000,3.727],[1449100800000,3.6957],[1449187200000,3.60876],[1449273600000,3.69355],[1449360000000,3.69355],[1449446400000,3.69355],[1449532800000,3.6595],[1449619200000,3.57018],[1449705600000,3.56194],[1449792000000,3.63155],[1449878400000,3.69461],[1449964800000,3.69461],[1450051200000,3.69461],[1450137600000,3.68711],[1450224000000,3.62913],[1450310400000,3.63567],[1450396800000,3.6205],[1450483200000,3.63077],[1450569600000,3.63077],[1450656000000,3.63077],[1450742400000,3.62834],[1450828800000,3.57385],[1450915200000,3.5503],[1451001600000,3.54673],[1451088000000,3.57345],[1451174400000,3.57345],[1451260800000,3.57345],[1451347200000,3.66985],[1451433600000,3.66645]], 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: [[1421280000000, 2.542259],[1421280000000, 2.542259],[1423958400000, 3.890031],[1426377600000, 3.736442],[1429056000000, 3.645920],[1431648000000, 3.374395],[1434326400000, 3.422211],[1436918400000, 3.506331],[1439596800000, 3.411635],[1442275200000, 3.398112],[1444867200000, 3.441341],[1447545600000, 3.663919],[1450137600000, 3.641310]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });