$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1420070400000,13.5605],[1420156800000,13.5605],[1420243200000,13.5605],[1420329600000,13.5605],[1420416000000,13.5605],[1420502400000,13.5605],[1420588800000,13.3903],[1420675200000,13.3903],[1420761600000,null],[1420848000000,13.3291],[1420934400000,13.3291],[1421020800000,13.3291],[1421107200000,13.3316],[1421193600000,13.2539],[1421280000000,null],[1421366400000,13.185],[1421452800000,13.3499],[1421539200000,13.192],[1421625600000,13.192],[1421712000000,13.135],[1421798400000,13.1624],[1421884800000,13.1396],[1421971200000,null],[1422057600000,12.7828],[1422144000000,12.7828],[1422230400000,12.7828],[1422316800000,12.7029],[1422403200000,12.7614],[1422489600000,12.7384],[1422576000000,12.845],[1422662400000,12.8941],[1422748800000,12.8941],[1422835200000,12.8941],[1422921600000,12.7447],[1423008000000,12.8168],[1423094400000,13.2934],[1423180800000,14.4549],[1423267200000,null],[1423353600000,18.4689],[1423440000000,18.4689],[1423526400000,20.0529],[1423612800000,19.872],[1423699200000,20.4947],[1423785600000,19.9027],[1423872000000,20.6357],[1423958400000,20.6357],[1424044800000,20.6357],[1424131200000,20.8271],[1424217600000,21.1671],[1424304000000,21.6579],[1424390400000,21.9745],[1424476800000,22.2505],[1424563200000,22.2505],[1424649600000,22.2505],[1424736000000,22.7582],[1424822400000,22.421],[1424908800000,22.183],[1424995200000,24.1212],[1425081600000,22.2644],[1425168000000,22.2644],[1425254400000,22.2644],[1425340800000,21.5709],[1425427200000,19.8689],[1425513600000,18.9884],[1425600000000,18.4499],[1425686400000,18.4058],[1425772800000,18.4058],[1425859200000,18.4058],[1425945600000,18.4058],[1426032000000,17.2627],[1426118400000,17.06],[1426204800000,16.9742],[1426291200000,17.0795],[1426377600000,17.0795],[1426464000000,17.0795],[1426550400000,17.0968],[1426636800000,17.4061],[1426723200000,18.2379],[1426809600000,18.2426],[1426896000000,18.2358],[1426982400000,18.2358],[1427068800000,18.2358],[1427155200000,18.269],[1427241600000,18.5935],[1427328000000,18.8988],[1427414400000,18.8284],[1427500800000,18.8976],[1427587200000,18.8976],[1427673600000,18.8976],[1427760000000,18.7403],[1427846400000,18.3661],[1427932800000,18.5261],[1428019200000,18.594],[1428105600000,18.4321],[1428192000000,18.4321],[1428278400000,18.4321],[1428364800000,18.545],[1428451200000,18.7989],[1428537600000,18.9345],[1428624000000,18.7129],[1428710400000,18.0684],[1428796800000,18.0684],[1428883200000,18.0684],[1428969600000,18.0684],[1429056000000,18.2212],[1429142400000,17.3565],[1429228800000,17.4284],[1429315200000,17.2736],[1429401600000,17.2736],[1429488000000,17.2736],[1429574400000,18.1636],[1429660800000,18.2159],[1429747200000,18.4132],[1429833600000,18.4286],[1429920000000,18.5254],[1430006400000,18.5254],[1430092800000,18.5254],[1430179200000,18.8376],[1430265600000,18.4457],[1430352000000,17.4602],[1430438400000,17.5816],[1430524800000,17.5816],[1430611200000,17.5816],[1430697600000,17.5816],[1430784000000,17.5816],[1430870400000,17.4804],[1430956800000,17.507],[1431043200000,17.1687],[1431129600000,17.0119],[1431216000000,17.0119],[1431302400000,17.0119],[1431388800000,17.0119],[1431475200000,17.1405],[1431561600000,17.1796],[1431648000000,17.2137],[1431734400000,17.1949],[1431820800000,17.1949],[1431907200000,17.1949],[1431993600000,18.3434],[1432080000000,17.4478],[1432166400000,17.0419],[1432252800000,16.9277],[1432339200000,17.0795],[1432425600000,17.0795],[1432512000000,17.0795],[1432598400000,17.1907],[1432684800000,17.3131],[1432771200000,null],[1432857600000,16.8708],[1432944000000,16.9451],[1433030400000,16.9451],[1433116800000,16.9451],[1433203200000,16.9451],[1433289600000,16.8594],[1433376000000,16.8794],[1433462400000,16.8793],[1433548800000,16.82],[1433635200000,16.82],[1433721600000,16.82],[1433808000000,16.9714],[1433894400000,17.1455],[1433980800000,17.2878],[1434067200000,17.0663],[1434153600000,17.1168],[1434240000000,17.1168],[1434326400000,17.1168],[1434412800000,17.379],[1434499200000,17.9431],[1434585600000,17.5843],[1434672000000,17.5408],[1434758400000,17.6314],[1434844800000,17.6314],[1434931200000,17.6314],[1435017600000,17.7942],[1435104000000,17.4448],[1435190400000,17.2166],[1435276800000,17.1151],[1435363200000,16.9962],[1435449600000,16.9962],[1435536000000,16.9962],[1435622400000,16.9962],[1435708800000,16.983],[1435795200000,16.7725],[1435881600000,16.6522],[1435968000000,16.705],[1436054400000,16.705],[1436140800000,16.705],[1436227200000,16.8244],[1436313600000,17.0346],[1436400000000,17.2421],[1436486400000,17.2236],[1436572800000,17.2485],[1436659200000,17.2485],[1436745600000,17.2485],[1436832000000,17.2663],[1436918400000,17.2372],[1437004800000,17.347],[1437091200000,16.9815],[1437177600000,16.963],[1437264000000,16.963],[1437350400000,16.963],[1437436800000,16.9678],[1437523200000,16.9505],[1437609600000,16.9391],[1437696000000,16.968],[1437782400000,16.8619],[1437868800000,16.8619],[1437955200000,16.8619],[1438041600000,16.8619],[1438128000000,16.9352],[1438214400000,17.0391],[1438300800000,16.6496],[1438387200000,16.1912],[1438473600000,16.1912],[1438560000000,16.1912],[1438646400000,16.5113],[1438732800000,16.5373],[1438819200000,16.3737],[1438905600000,16.3158],[1438992000000,16.1213],[1439078400000,16.1213],[1439164800000,16.1213],[1439251200000,16.1925],[1439337600000,16.3458],[1439424000000,16.4895],[1439510400000,16.4435],[1439596800000,16.6807],[1439683200000,16.6807],[1439769600000,16.6807],[1439856000000,16.7621],[1439942400000,16.8543],[1440028800000,16.8826],[1440115200000,16.7838],[1440201600000,16.8567],[1440288000000,16.8567],[1440374400000,16.8567],[1440460800000,null],[1440547200000,17.1468],[1440633600000,16.1518],[1440720000000,16.1178],[1440806400000,15.9635],[1440892800000,15.9635],[1440979200000,15.9635],[1441065600000,16.4535],[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,16.47],[1442534400000,null],[1442620800000,16.6107],[1442707200000,16.6107],[1442793600000,16.6107],[1442880000000,16.5781],[1442966400000,16.3803],[1443052800000,16.2652],[1443139200000,16.0438],[1443225600000,16.2371],[1443312000000,16.2371],[1443398400000,16.2371],[1443484800000,16.1612],[1443571200000,16.0796],[1443657600000,15.869],[1443744000000,15.9418],[1443830400000,15.9733],[1443916800000,15.9733],[1444003200000,15.9733],[1444089600000,16.1777],[1444176000000,16.2348],[1444262400000,16.3581],[1444348800000,16.3252],[1444435200000,16.6172],[1444521600000,16.6172],[1444608000000,16.6172],[1444694400000,16.8775],[1444780800000,16.8102],[1444867200000,16.8102],[1444953600000,16.8148],[1445040000000,16.4754],[1445126400000,16.4754],[1445212800000,16.4754],[1445299200000,16.699],[1445385600000,16.911],[1445472000000,17.3873],[1445558400000,16.9772],[1445644800000,17.2767],[1445731200000,17.2767],[1445817600000,17.2767],[1445904000000,17.4159],[1445990400000,17.2952],[1446076800000,17.3255],[1446163200000,17.3715],[1446249600000,17.4524],[1446336000000,17.4524],[1446422400000,17.4524],[1446508800000,17.5712],[1446595200000,17.5386],[1446681600000,17.6599],[1446768000000,17.4231],[1446854400000,17.1565],[1446940800000,17.1565],[1447027200000,17.1565],[1447113600000,17.1654],[1447200000000,17.1639],[1447286400000,17.1577],[1447372800000,17.1979],[1447459200000,17.3311],[1447545600000,17.3311],[1447632000000,17.3311],[1447718400000,17.4105],[1447804800000,17.8618],[1447891200000,17.9331],[1447977600000,17.9377],[1448064000000,18.0158],[1448150400000,18.0158],[1448236800000,18.0158],[1448323200000,17.9876],[1448409600000,17.927],[1448496000000,17.8372],[1448582400000,17.736],[1448668800000,17.8953],[1448755200000,17.8953],[1448841600000,17.8953],[1448928000000,17.9132],[1449014400000,17.9006],[1449100800000,17.6675],[1449187200000,17.3349],[1449273600000,17.7316],[1449360000000,17.7316],[1449446400000,17.7316],[1449532800000,17.4212],[1449619200000,16.8445],[1449705600000,16.8716],[1449792000000,17.2585],[1449878400000,17.4621],[1449964800000,17.4621],[1450051200000,17.4621],[1450137600000,17.3125],[1450224000000,17.1033],[1450310400000,17.0855],[1450396800000,16.981],[1450483200000,16.8716],[1450569600000,16.8716],[1450656000000,16.8716],[1450742400000,16.8529],[1450828800000,16.632],[1450915200000,16.5418],[1451001600000,16.5575],[1451088000000,16.6822],[1451174400000,16.6822],[1451260800000,16.6822],[1451347200000,17.1617],[1451433600000,17.0957]], 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, 13.191531],[1421280000000, 13.191531],[1423958400000, 19.421895],[1426377600000, 18.557377],[1429056000000, 18.213840],[1431648000000, 17.249811],[1434326400000, 17.189548],[1436918400000, 16.974533],[1439596800000, 16.444960],[1442275200000, 16.355362],[1444867200000, 16.712327],[1447545600000, 17.586987],[1450137600000, 17.163338]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });