$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1420070400000,22.844],[1420156800000,22.844],[1420243200000,22.844],[1420329600000,22.844],[1420416000000,22.844],[1420502400000,22.844],[1420588800000,22.6201],[1420675200000,22.6201],[1420761600000,null],[1420848000000,22.4624],[1420934400000,22.4624],[1421020800000,22.4624],[1421107200000,22.5211],[1421193600000,22.5266],[1421280000000,null],[1421366400000,22.5497],[1421452800000,22.5523],[1421539200000,22.5846],[1421625600000,22.5846],[1421712000000,22.4869],[1421798400000,22.4363],[1421884800000,22.4143],[1421971200000,null],[1422057600000,22.4744],[1422144000000,22.4744],[1422230400000,22.4744],[1422316800000,22.1536],[1422403200000,22.3201],[1422489600000,22.3252],[1422576000000,22.5239],[1422662400000,22.7654],[1422748800000,22.7654],[1422835200000,22.7654],[1422921600000,22.7641],[1423008000000,22.8822],[1423094400000,23.5851],[1423180800000,25.4949],[1423267200000,null],[1423353600000,32.7444],[1423440000000,32.7444],[1423526400000,35.3711],[1423612800000,35.0129],[1423699200000,35.9761],[1423785600000,35.3614],[1423872000000,36.5716],[1423958400000,36.5716],[1424044800000,36.5716],[1424131200000,36.8736],[1424217600000,37.3107],[1424304000000,37.9627],[1424390400000,38.6726],[1424476800000,39.4287],[1424563200000,39.4287],[1424649600000,39.4287],[1424736000000,40.009],[1424822400000,39.9083],[1424908800000,39.5887],[1424995200000,42.4245],[1425081600000,39.2621],[1425168000000,39.2621],[1425254400000,39.2621],[1425340800000,37.8],[1425427200000,34.918],[1425513600000,33.3633],[1425600000000,32.3765],[1425686400000,31.9944],[1425772800000,31.9944],[1425859200000,31.9944],[1425945600000,31.9944],[1426032000000,30.1481],[1426118400000,29.7563],[1426204800000,29.6406],[1426291200000,29.7516],[1426377600000,29.7516],[1426464000000,29.7516],[1426550400000,29.8452],[1426636800000,30.4603],[1426723200000,31.9752],[1426809600000,32.0663],[1426896000000,31.9607],[1426982400000,31.9607],[1427068800000,31.9607],[1427155200000,31.8818],[1427241600000,32.309],[1427328000000,32.7769],[1427414400000,32.705],[1427500800000,32.7465],[1427587200000,32.7465],[1427673600000,32.7465],[1427760000000,32.4973],[1427846400000,32.351],[1427932800000,32.3995],[1428019200000,32.5113],[1428105600000,32.2283],[1428192000000,32.2283],[1428278400000,32.2283],[1428364800000,32.6399],[1428451200000,32.5668],[1428537600000,32.6058],[1428624000000,32.3573],[1428710400000,31.363],[1428796800000,31.363],[1428883200000,31.363],[1428969600000,31.363],[1429056000000,31.4316],[1429142400000,29.8996],[1429228800000,29.6021],[1429315200000,29.1947],[1429401600000,29.1947],[1429488000000,29.1947],[1429574400000,30.7313],[1429660800000,30.7035],[1429747200000,31.1929],[1429833600000,31.1323],[1429920000000,31.1288],[1430006400000,31.1288],[1430092800000,31.1288],[1430179200000,31.7873],[1430265600000,31.0404],[1430352000000,29.4032],[1430438400000,29.7209],[1430524800000,29.7209],[1430611200000,29.7209],[1430697600000,29.7209],[1430784000000,29.7209],[1430870400000,29.5669],[1430956800000,29.5416],[1431043200000,29.2276],[1431129600000,28.9562],[1431216000000,28.9562],[1431302400000,28.9562],[1431388800000,28.9562],[1431475200000,29.1171],[1431561600000,29.003],[1431648000000,29.2187],[1431734400000,29.3083],[1431820800000,29.3083],[1431907200000,29.3083],[1431993600000,31.3672],[1432080000000,29.9119],[1432166400000,29.1693],[1432252800000,29.0832],[1432339200000,29.3159],[1432425600000,29.3159],[1432512000000,29.3159],[1432598400000,29.7335],[1432684800000,29.8032],[1432771200000,null],[1432857600000,29.2488],[1432944000000,29.3186],[1433030400000,29.3186],[1433116800000,29.3186],[1433203200000,29.3186],[1433289600000,29.335],[1433376000000,29.3514],[1433462400000,29.615],[1433548800000,29.4669],[1433635200000,29.4669],[1433721600000,29.4669],[1433808000000,29.4701],[1433894400000,29.7168],[1433980800000,29.7768],[1434067200000,29.5666],[1434153600000,29.5441],[1434240000000,29.5441],[1434326400000,29.5441],[1434412800000,30.1226],[1434499200000,31.1574],[1434585600000,30.492],[1434672000000,30.2281],[1434758400000,30.5514],[1434844800000,30.5514],[1434931200000,30.5514],[1435017600000,30.7718],[1435104000000,30.2989],[1435190400000,29.7844],[1435276800000,29.7997],[1435363200000,29.5615],[1435449600000,29.5615],[1435536000000,29.5615],[1435622400000,29.5615],[1435708800000,29.5416],[1435795200000,29.4544],[1435881600000,29.4024],[1435968000000,29.4117],[1436054400000,29.4117],[1436140800000,29.4117],[1436227200000,29.7275],[1436313600000,30.2706],[1436400000000,30.6689],[1436486400000,30.5319],[1436572800000,30.7853],[1436659200000,30.7853],[1436745600000,30.7853],[1436832000000,30.7253],[1436918400000,30.7305],[1437004800000,30.8975],[1437091200000,30.5916],[1437177600000,30.6228],[1437264000000,30.6228],[1437350400000,30.6228],[1437436800000,30.5932],[1437523200000,30.5914],[1437609600000,30.6636],[1437696000000,30.7332],[1437782400000,30.7478],[1437868800000,30.7478],[1437955200000,30.7478],[1438041600000,30.7478],[1438128000000,30.7978],[1438214400000,30.8808],[1438300800000,30.1348],[1438387200000,29.4654],[1438473600000,29.4654],[1438560000000,29.4654],[1438646400000,30.2808],[1438732800000,30.2918],[1438819200000,29.9766],[1438905600000,29.8905],[1438992000000,29.3448],[1439078400000,29.3448],[1439164800000,29.3448],[1439251200000,29.5799],[1439337600000,29.845],[1439424000000,29.976],[1439510400000,29.9707],[1439596800000,30.5399],[1439683200000,30.5399],[1439769600000,30.5399],[1439856000000,30.818],[1439942400000,30.9142],[1440028800000,30.8526],[1440115200000,30.9331],[1440201600000,31.1668],[1440288000000,31.1668],[1440374400000,31.1668],[1440460800000,null],[1440547200000,32.1768],[1440633600000,30.3766],[1440720000000,30.0482],[1440806400000,29.8311],[1440892800000,29.8311],[1440979200000,29.8311],[1441065600000,30.7041],[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,30.6908],[1442534400000,null],[1442620800000,30.6906],[1442707200000,30.6906],[1442793600000,30.6906],[1442880000000,30.8202],[1442966400000,30.5275],[1443052800000,30.2642],[1443139200000,30.1719],[1443225600000,30.2962],[1443312000000,30.2962],[1443398400000,30.2962],[1443484800000,30.2714],[1443571200000,30.2409],[1443657600000,29.8934],[1443744000000,29.6211],[1443830400000,29.6266],[1443916800000,29.6266],[1444003200000,29.6266],[1444089600000,29.8053],[1444176000000,29.8394],[1444262400000,29.9247],[1444348800000,30.0113],[1444435200000,30.3413],[1444521600000,30.3413],[1444608000000,30.3413],[1444694400000,30.7951],[1444780800000,30.9607],[1444867200000,30.9607],[1444953600000,30.7557],[1445040000000,30.0925],[1445126400000,30.0925],[1445212800000,30.0925],[1445299200000,30.5278],[1445385600000,31.1015],[1445472000000,31.943],[1445558400000,31.4491],[1445644800000,31.6135],[1445731200000,31.6135],[1445817600000,31.6135],[1445904000000,31.9893],[1445990400000,31.9806],[1446076800000,32.0054],[1446163200000,31.9087],[1446249600000,32.1193],[1446336000000,32.1193],[1446422400000,32.1193],[1446508800000,32.1707],[1446595200000,32.1158],[1446681600000,32.1592],[1446768000000,31.8662],[1446854400000,31.4226],[1446940800000,31.4226],[1447027200000,31.4226],[1447113600000,31.4393],[1447200000000,31.4041],[1447286400000,31.4014],[1447372800000,31.6289],[1447459200000,31.9166],[1447545600000,31.9166],[1447632000000,31.9166],[1447718400000,32.0549],[1447804800000,32.7552],[1447891200000,32.9532],[1447977600000,32.9188],[1448064000000,33.0945],[1448150400000,33.0945],[1448236800000,33.0945],[1448323200000,33.1009],[1448409600000,32.9715],[1448496000000,32.6518],[1448582400000,32.4124],[1448668800000,32.8071],[1448755200000,32.8071],[1448841600000,32.8071],[1448928000000,32.8607],[1449014400000,32.7565],[1449100800000,32.4767],[1449187200000,31.629],[1449273600000,32.794],[1449360000000,32.794],[1449446400000,32.794],[1449532800000,32.418],[1449619200000,31.7145],[1449705600000,31.7794],[1449792000000,32.5133],[1449878400000,33.2131],[1449964800000,33.2131],[1450051200000,33.2131],[1450137600000,33.1515],[1450224000000,32.6872],[1450310400000,32.6487],[1450396800000,32.4823],[1450483200000,32.5789],[1450569600000,32.5789],[1450656000000,32.5789],[1450742400000,32.5645],[1450828800000,32.1263],[1450915200000,31.9147],[1451001600000,31.9023],[1451088000000,32.1427],[1451174400000,32.1427],[1451260800000,32.1427],[1451347200000,33.0734],[1451433600000,33.0465]], 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, 22.566394],[1421280000000, 22.566394],[1423958400000, 34.351122],[1426377600000, 32.399933],[1429056000000, 31.248773],[1431648000000, 29.431047],[1434326400000, 29.835221],[1436918400000, 30.399602],[1439596800000, 30.232485],[1442275200000, 30.475102],[1444867200000, 30.729484],[1447545600000, 32.265517],[1450137600000, 32.555389]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });