$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1420070400000,15.9901],[1420156800000,15.9901],[1420243200000,15.9901],[1420329600000,15.9901],[1420416000000,15.9901],[1420502400000,15.9901],[1420588800000,15.6469],[1420675200000,15.6469],[1420761600000,null],[1420848000000,15.4322],[1420934400000,15.4322],[1421020800000,15.4322],[1421107200000,15.4995],[1421193600000,15.4974],[1421280000000,null],[1421366400000,15.4674],[1421452800000,17.9925],[1421539200000,18.1651],[1421625600000,18.1651],[1421712000000,18.0865],[1421798400000,18.0866],[1421884800000,18.1195],[1421971200000,null],[1422057600000,18.4524],[1422144000000,18.4524],[1422230400000,18.4524],[1422316800000,18.0359],[1422403200000,17.8525],[1422489600000,17.6421],[1422576000000,17.671],[1422662400000,17.6269],[1422748800000,17.6269],[1422835200000,17.6269],[1422921600000,17.4381],[1423008000000,17.4628],[1423094400000,18.0798],[1423180800000,19.4327],[1423267200000,null],[1423353600000,24.9287],[1423440000000,24.9287],[1423526400000,27.1192],[1423612800000,26.8581],[1423699200000,27.6111],[1423785600000,27.1354],[1423872000000,27.8061],[1423958400000,27.8061],[1424044800000,27.8061],[1424131200000,28.0327],[1424217600000,28.2985],[1424304000000,28.7761],[1424390400000,29.0572],[1424476800000,29.3835],[1424563200000,29.3835],[1424649600000,29.3835],[1424736000000,29.8821],[1424822400000,29.7972],[1424908800000,29.5403],[1424995200000,31.6064],[1425081600000,29.2411],[1425168000000,29.2411],[1425254400000,29.2411],[1425340800000,28.3833],[1425427200000,25.9849],[1425513600000,24.7278],[1425600000000,24.019],[1425686400000,23.6933],[1425772800000,23.6933],[1425859200000,23.6933],[1425945600000,23.6933],[1426032000000,22.0793],[1426118400000,21.6234],[1426204800000,21.3982],[1426291200000,21.5693],[1426377600000,21.5693],[1426464000000,21.5693],[1426550400000,21.615],[1426636800000,22.1253],[1426723200000,23.2422],[1426809600000,23.317],[1426896000000,23.3701],[1426982400000,23.3701],[1427068800000,23.3701],[1427155200000,23.6413],[1427241600000,24.0618],[1427328000000,24.5877],[1427414400000,24.5466],[1427500800000,24.5769],[1427587200000,24.5769],[1427673600000,24.5769],[1427760000000,24.293],[1427846400000,24.1148],[1427932800000,24.2229],[1428019200000,24.4815],[1428105600000,24.2684],[1428192000000,24.2684],[1428278400000,24.2684],[1428364800000,24.417],[1428451200000,24.4271],[1428537600000,24.4653],[1428624000000,24.1689],[1428710400000,23.2784],[1428796800000,23.2784],[1428883200000,23.2784],[1428969600000,23.2784],[1429056000000,23.4142],[1429142400000,22.3275],[1429228800000,22.2433],[1429315200000,22.1149],[1429401600000,22.1149],[1429488000000,22.1149],[1429574400000,23.2066],[1429660800000,23.2496],[1429747200000,23.4593],[1429833600000,23.3752],[1429920000000,23.5071],[1430006400000,23.5071],[1430092800000,23.5071],[1430179200000,23.9036],[1430265600000,23.2474],[1430352000000,22.072],[1430438400000,22.6015],[1430524800000,22.6015],[1430611200000,22.6015],[1430697600000,22.6015],[1430784000000,22.6015],[1430870400000,22.6423],[1430956800000,22.7604],[1431043200000,22.6499],[1431129600000,22.2474],[1431216000000,22.2474],[1431302400000,22.2474],[1431388800000,22.2474],[1431475200000,22.311],[1431561600000,22.1734],[1431648000000,22.6152],[1431734400000,22.4094],[1431820800000,22.4094],[1431907200000,22.4094],[1431993600000,24.0326],[1432080000000,22.8027],[1432166400000,22.1877],[1432252800000,22.1491],[1432339200000,22.3311],[1432425600000,22.3311],[1432512000000,22.3311],[1432598400000,22.4182],[1432684800000,22.6136],[1432771200000,null],[1432857600000,22.1715],[1432944000000,22.3674],[1433030400000,22.3674],[1433116800000,22.3674],[1433203200000,22.3674],[1433289600000,22.3646],[1433376000000,22.4303],[1433462400000,22.5393],[1433548800000,22.5107],[1433635200000,22.5107],[1433721600000,22.5107],[1433808000000,22.4972],[1433894400000,22.7552],[1433980800000,22.753],[1434067200000,22.4442],[1434153600000,22.5695],[1434240000000,22.5695],[1434326400000,22.5695],[1434412800000,22.8893],[1434499200000,23.735],[1434585600000,23.3655],[1434672000000,23.2519],[1434758400000,23.3954],[1434844800000,23.3954],[1434931200000,23.3954],[1435017600000,23.6671],[1435104000000,23.0811],[1435190400000,22.7265],[1435276800000,22.6062],[1435363200000,22.5341],[1435449600000,22.5341],[1435536000000,22.5341],[1435622400000,22.5341],[1435708800000,22.5706],[1435795200000,22.2981],[1435881600000,22.1295],[1435968000000,22.2834],[1436054400000,22.2834],[1436140800000,22.2834],[1436227200000,22.4616],[1436313600000,22.8457],[1436400000000,23.1498],[1436486400000,22.9922],[1436572800000,23.4266],[1436659200000,23.4266],[1436745600000,23.4266],[1436832000000,23.1607],[1436918400000,23.2806],[1437004800000,23.3144],[1437091200000,22.9585],[1437177600000,22.9815],[1437264000000,22.9815],[1437350400000,22.9815],[1437436800000,22.895],[1437523200000,22.9221],[1437609600000,22.8941],[1437696000000,23.0247],[1437782400000,22.9702],[1437868800000,22.9702],[1437955200000,22.9702],[1438041600000,22.9702],[1438128000000,22.7964],[1438214400000,22.9214],[1438300800000,22.2662],[1438387200000,21.9305],[1438473600000,21.9305],[1438560000000,21.9305],[1438646400000,22.4409],[1438732800000,22.3937],[1438819200000,22.0211],[1438905600000,21.829],[1438992000000,21.4886],[1439078400000,21.4886],[1439164800000,21.4886],[1439251200000,21.578],[1439337600000,21.7573],[1439424000000,21.9582],[1439510400000,21.909],[1439596800000,22.3499],[1439683200000,22.3499],[1439769600000,22.3499],[1439856000000,22.5449],[1439942400000,22.6233],[1440028800000,22.653],[1440115200000,22.8713],[1440201600000,23.1547],[1440288000000,23.1547],[1440374400000,23.1547],[1440460800000,null],[1440547200000,24.0267],[1440633600000,22.6662],[1440720000000,22.3324],[1440806400000,22.0892],[1440892800000,22.0892],[1440979200000,22.0892],[1441065600000,22.591],[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,22.3909],[1442534400000,null],[1442620800000,22.6427],[1442707200000,22.6427],[1442793600000,22.6427],[1442880000000,22.5445],[1442966400000,22.3291],[1443052800000,22.1065],[1443139200000,22.0793],[1443225600000,22.0692],[1443312000000,22.0692],[1443398400000,22.0692],[1443484800000,22.0402],[1443571200000,22.1259],[1443657600000,21.8575],[1443744000000,21.6383],[1443830400000,21.6063],[1443916800000,21.6063],[1444003200000,21.6063],[1444089600000,21.7936],[1444176000000,21.824],[1444262400000,22.0207],[1444348800000,21.9206],[1444435200000,22.3683],[1444521600000,22.3683],[1444608000000,22.3683],[1444694400000,22.7062],[1444780800000,22.8656],[1444867200000,22.8656],[1444953600000,22.8197],[1445040000000,22.3834],[1445126400000,22.3834],[1445212800000,22.3834],[1445299200000,22.6132],[1445385600000,23.1064],[1445472000000,23.629],[1445558400000,23.1545],[1445644800000,23.1833],[1445731200000,23.1833],[1445817600000,23.1833],[1445904000000,23.3038],[1445990400000,23.2436],[1446076800000,23.2771],[1446163200000,23.0707],[1446249600000,23.2405],[1446336000000,23.2405],[1446422400000,23.2405],[1446508800000,23.326],[1446595200000,23.246],[1446681600000,23.3418],[1446768000000,23.0313],[1446854400000,22.7201],[1446940800000,22.7201],[1447027200000,22.7201],[1447113600000,22.6729],[1447200000000,22.6472],[1447286400000,22.6155],[1447372800000,22.8257],[1447459200000,23.0128],[1447545600000,23.0128],[1447632000000,23.0128],[1447718400000,23.0608],[1447804800000,23.4719],[1447891200000,23.5341],[1447977600000,23.3883],[1448064000000,23.6395],[1448150400000,23.6395],[1448236800000,23.6395],[1448323200000,23.5823],[1448409600000,23.5491],[1448496000000,23.2575],[1448582400000,23.0415],[1448668800000,23.1835],[1448755200000,23.1835],[1448841600000,23.1835],[1448928000000,23.2364],[1449014400000,23.1684],[1449100800000,23.0652],[1449187200000,22.7288],[1449273600000,23.6921],[1449360000000,23.6921],[1449446400000,23.6921],[1449532800000,23.4052],[1449619200000,23.0297],[1449705600000,23.1296],[1449792000000,23.6646],[1449878400000,24.149],[1449964800000,24.149],[1450051200000,24.149],[1450137600000,24.2803],[1450224000000,23.7956],[1450310400000,23.7561],[1450396800000,23.5616],[1450483200000,23.6951],[1450569600000,23.6951],[1450656000000,23.6951],[1450742400000,23.6618],[1450828800000,23.4336],[1450915200000,23.2185],[1451001600000,23.2641],[1451088000000,23.4394],[1451174400000,23.4394],[1451260800000,23.4394],[1451347200000,24.0799],[1451433600000,24.0232]], 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, 16.885583],[1421280000000, 16.885583],[1423958400000, 26.001803],[1426377600000, 23.917743],[1429056000000, 23.452714],[1431648000000, 22.482687],[1434326400000, 22.780154],[1436918400000, 22.865709],[1439596800000, 22.288109],[1442275200000, 22.310232],[1444867200000, 22.566932],[1447545600000, 23.158015],[1450137600000, 23.602534]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });