$(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: [[1326758400000,7.89169],[1326844800000,null],[1326931200000,null],[1327017600000,7.92778],[1327104000000,7.88348],[1327190400000,7.88348],[1327276800000,7.88348],[1327363200000,7.92164],[1327449600000,7.89208],[1327536000000,7.88501],[1327622400000,7.97706],[1327708800000,7.99944],[1327795200000,7.99944],[1327881600000,7.99944],[1327968000000,7.94425],[1328054400000,8.01525],[1328140800000,7.9982],[1328227200000,7.98787],[1328313600000,7.97213],[1328400000000,7.97213],[1328486400000,7.97213],[1328572800000,8.00381],[1328659200000,8.00496],[1328745600000,8.0353],[1328832000000,8.03161],[1328918400000,7.96815],[1329004800000,7.96815],[1329091200000,7.96815],[1329177600000,8.00703],[1329264000000,7.99235],[1329350400000,8.01197],[1329436800000,7.96052],[1329523200000,8.02857],[1329609600000,8.02857],[1329696000000,8.02857],[1329782400000,8.05245],[1329868800000,8.01772],[1329955200000,7.99919],[1330041600000,8.0117],[1330128000000,7.99813],[1330214400000,7.99813],[1330300800000,7.99813],[1330387200000,7.96054],[1330473600000,8.02128],[1330560000000,8.08351],[1330646400000,8.10358],[1330732800000,8.09394],[1330819200000,8.09394],[1330905600000,8.09394],[1330992000000,8.04337],[1331078400000,7.99773],[1331164800000,7.97534],[1331251200000,7.97534],[1331337600000,7.97534],[1331424000000,7.97534],[1331510400000,7.97534],[1331596800000,8.04302],[1331683200000,8.04911],[1331769600000,8.06738],[1331856000000,8.04376],[1331942400000,8.06245],[1332028800000,8.06245],[1332115200000,8.06245],[1332201600000,8.05421],[1332288000000,8.04596],[1332374400000,8.0655],[1332460800000,7.99542],[1332547200000,7.97306],[1332633600000,7.97306],[1332720000000,7.97306],[1332806400000,8.01801],[1332892800000,8.04605],[1332979200000,8.01454],[1333065600000,7.9873],[1333152000000,8.0149],[1333238400000,8.0149],[1333324800000,8.0149],[1333411200000,7.99931],[1333497600000,8.05383],[1333584000000,8.02638],[1333670400000,8.00342],[1333756800000,8.00342],[1333843200000,null],[1333929600000,8.00342],[1334016000000,8.00092],[1334102400000,7.99842],[1334188800000,7.96377],[1334275200000,7.99777],[1334361600000,8.03388],[1334448000000,8.03388],[1334534400000,8.03388],[1334620800000,8.03388],[1334707200000,8.01552],[1334793600000,8.06321],[1334880000000,8.0565],[1334966400000,8.05716],[1335052800000,8.05716],[1335139200000,8.05716],[1335225600000,8.01027],[1335312000000,8.0742],[1335398400000,8.1043],[1335484800000,8.13984],[1335571200000,8.13315],[1335657600000,8.13315],[1335744000000,8.13315],[1335830400000,8.13315],[1335916800000,8.13315],[1336003200000,8.13315],[1336089600000,8.11732],[1336176000000,8.07973],[1336262400000,8.07973],[1336348800000,8.07973],[1336435200000,8.01947],[1336521600000,8.02402],[1336608000000,8.02402],[1336694400000,7.99988],[1336780800000,7.95742],[1336867200000,7.95742],[1336953600000,7.95742],[1337040000000,7.9603],[1337126400000,7.98254],[1337212800000,7.93147],[1337299200000,7.88162],[1337385600000,7.85686],[1337472000000,7.85686],[1337558400000,7.85686],[1337644800000,7.80958],[1337731200000,7.86378],[1337817600000,7.81894],[1337904000000,7.79388],[1337990400000,7.7792],[1338076800000,7.7792],[1338163200000,7.7792],[1338249600000,7.8031],[1338336000000,7.79821],[1338422400000,7.77618],[1338508800000,7.76828],[1338595200000,7.69764],[1338681600000,7.69764],[1338768000000,7.69764],[1338854400000,7.69764],[1338940800000,7.68281],[1339027200000,7.72998],[1339113600000,7.80837],[1339200000000,7.72844],[1339286400000,7.72844],[1339372800000,7.72844],[1339459200000,7.79914],[1339545600000,7.76862],[1339632000000,7.68281],[1339718400000,7.78532],[1339804800000,7.80354],[1339891200000,7.80354],[1339977600000,7.80354],[1340064000000,7.79121],[1340150400000,7.82507],[1340236800000,7.85949],[1340323200000,7.84574],[1340409600000,7.77305],[1340496000000,7.77305],[1340582400000,7.77305],[1340668800000,7.7607],[1340755200000,7.77499],[1340841600000,7.79387],[1340928000000,7.79387],[1341014400000,7.79387],[1341100800000,7.79387],[1341187200000,7.79387],[1341273600000,7.85834],[1341360000000,7.86368],[1341446400000,7.88825],[1341532800000,7.89466],[1341619200000,7.87668],[1341705600000,7.87717],[1341792000000,7.87717],[1341878400000,7.82682],[1341964800000,7.84924],[1342051200000,7.84393],[1342137600000,7.81147],[1342224000000,7.86012],[1342310400000,7.86012],[1342396800000,7.86012],[1342483200000,7.8702],[1342569600000,7.87628],[1342656000000,7.88663],[1342742400000,7.93616],[1342828800000,7.91322],[1342915200000,7.91322],[1343001600000,7.91322],[1343088000000,7.85734],[1343174400000,7.85142],[1343260800000,7.84685],[1343347200000,7.9309],[1343433600000,7.93502],[1343520000000,7.93502],[1343606400000,7.93502],[1343692800000,7.95985],[1343779200000,7.97482],[1343865600000,7.97873],[1343952000000,7.97556],[1344038400000,7.96892],[1344124800000,7.96892],[1344211200000,7.96892],[1344297600000,7.98913],[1344384000000,8.01039],[1344470400000,8.01053],[1344556800000,8.0394],[1344643200000,8.03889],[1344729600000,8.03889],[1344816000000,8.03889],[1344902400000,8.06094],[1344988800000,8.0589],[1345075200000,8.05931],[1345161600000,8.08518],[1345248000000,8.08607],[1345334400000,8.08607],[1345420800000,8.08607],[1345507200000,8.08037],[1345593600000,8.10914],[1345680000000,8.05317],[1345766400000,8.06626],[1345852800000,8.06626],[1345939200000,8.06626],[1346025600000,8.06626],[1346112000000,8.07484],[1346198400000,8.09558],[1346284800000,8.08516],[1346371200000,8.06371],[1346457600000,8.07237],[1346544000000,8.07237],[1346630400000,8.07237],[1346716800000,8.10129],[1346803200000,8.11493],[1346889600000,8.09338],[1346976000000,8.10068],[1347062400000,8.14297],[1347148800000,8.14297],[1347235200000,8.14297],[1347321600000,8.17865],[1347408000000,8.22323],[1347494400000,8.20291],[1347580800000,8.1903],[1347667200000,8.28859],[1347753600000,8.28859],[1347840000000,8.28859],[1347926400000,8.21459],[1348012800000,8.19515],[1348099200000,8.20115],[1348185600000,8.16701],[1348272000000,8.20397],[1348358400000,8.20397],[1348444800000,8.20397],[1348531200000,8.14948],[1348617600000,8.15378],[1348704000000,8.12713],[1348790400000,8.1294],[1348876800000,8.14802],[1348963200000,8.14802],[1349049600000,8.14802],[1349136000000,8.12551],[1349222400000,8.14224],[1349308800000,8.10416],[1349395200000,8.09805],[1349481600000,8.15098],[1349568000000,8.15098],[1349654400000,8.15098],[1349740800000,8.16631],[1349827200000,8.19612],[1349913600000,8.18023],[1350000000000,8.16557],[1350086400000,8.17709],[1350172800000,8.17709],[1350259200000,8.17709],[1350345600000,8.17515],[1350432000000,8.10231],[1350518400000,8.11987],[1350604800000,8.16415],[1350691200000,8.08605],[1350777600000,8.08605],[1350864000000,8.08605],[1350950400000,8.03978],[1351036800000,8.02013],[1351123200000,8.07725],[1351209600000,8.06062],[1351296000000,8.01972],[1351382400000,8.01972],[1351468800000,8.01972],[1351555200000,7.99486],[1351641600000,7.99362],[1351728000000,7.98562],[1351814400000,7.9967],[1351900800000,8.03489],[1351987200000,8.03489],[1352073600000,8.03489],[1352160000000,8.02125],[1352246400000,8.04201],[1352332800000,8.04603],[1352419200000,8.02197],[1352505600000,7.9704],[1352592000000,7.9704],[1352678400000,7.9704],[1352764800000,7.99928],[1352851200000,7.98482],[1352937600000,7.98359],[1353024000000,7.97674],[1353110400000,7.98799],[1353196800000,7.98799],[1353283200000,7.98799],[1353369600000,8.00429],[1353456000000,8.02684],[1353542400000,8.0124],[1353628800000,8.02537],[1353715200000,8.02034],[1353801600000,8.02034],[1353888000000,8.02034],[1353974400000,8.04263],[1354060800000,8.06456],[1354147200000,8.03539],[1354233600000,8.05999],[1354320000000,8.04379],[1354406400000,8.04379],[1354492800000,8.04379],[1354579200000,8.05034],[1354665600000,8.04152],[1354752000000,8.05776],[1354838400000,8.06145],[1354924800000,8.05479],[1355011200000,8.05479],[1355097600000,8.05479],[1355184000000,8.09886],[1355270400000,8.10086],[1355356800000,8.11118],[1355443200000,8.13293],[1355529600000,8.119],[1355616000000,8.119],[1355702400000,8.119],[1355788800000,8.0976],[1355875200000,8.11993],[1355961600000,8.10017],[1356048000000,8.07838],[1356134400000,8.06566],[1356220800000,8.06566],[1356307200000,8.06566],[1356393600000,8.05025],[1356480000000,8.05025],[1356566400000,8.05025],[1356652800000,8.05983],[1356739200000,8.03016],[1356825600000,8.03016]], 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: [[1326585600000, 7.929867],[1326585600000, 7.929867],[1329264000000, 8.000437],[1331769600000, 8.030272],[1334448000000, 8.043130],[1337040000000, 7.936237],[1339718400000, 7.765660],[1342310400000, 7.877285],[1344988800000, 8.043599],[1347667200000, 8.165427],[1350259200000, 8.108886],[1352937600000, 8.012344],[1355529600000, 8.071025]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });