$(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: [[1356998400000,8.03016],[1357084800000,8.03016],[1357171200000,8.03016],[1357257600000,8.10371],[1357344000000,8.06427],[1357430400000,8.06427],[1357516800000,8.06427],[1357603200000,8.06427],[1357689600000,8.10888],[1357776000000,8.09405],[1357862400000,8.10738],[1357948800000,8.12397],[1358035200000,8.12397],[1358121600000,8.12397],[1358208000000,8.10417],[1358294400000,8.10552],[1358380800000,8.09976],[1358467200000,8.09902],[1358553600000,8.07298],[1358640000000,8.07298],[1358726400000,8.07298],[1358812800000,8.04919],[1358899200000,8.03827],[1358985600000,8.05829],[1359072000000,7.97806],[1359158400000,7.94346],[1359244800000,7.94346],[1359331200000,7.94346],[1359417600000,7.92345],[1359504000000,7.94744],[1359590400000,7.97416],[1359676800000,7.9771],[1359763200000,7.9971],[1359849600000,7.9971],[1359936000000,7.9971],[1360022400000,8.01844],[1360108800000,8.00838],[1360195200000,8.00722],[1360281600000,8.02737],[1360368000000,8.00078],[1360454400000,8.00078],[1360540800000,8.00078],[1360627200000,7.93199],[1360713600000,7.94923],[1360800000000,7.97053],[1360886400000,7.98341],[1360972800000,7.97206],[1361059200000,7.97206],[1361145600000,7.97206],[1361232000000,7.94126],[1361318400000,7.90126],[1361404800000,7.87694],[1361491200000,7.84369],[1361577600000,7.83145],[1361664000000,7.83145],[1361750400000,7.83145],[1361836800000,7.81789],[1361923200000,7.78987],[1362009600000,7.79249],[1362096000000,7.79586],[1362182400000,7.73305],[1362268800000,7.73305],[1362355200000,7.73305],[1362441600000,7.77018],[1362528000000,7.78689],[1362614400000,7.77064],[1362700800000,7.74765],[1362787200000,7.74765],[1362873600000,7.74765],[1362960000000,7.74765],[1363046400000,7.77578],[1363132800000,7.79067],[1363219200000,7.79894],[1363305600000,7.78714],[1363392000000,7.83376],[1363478400000,7.83376],[1363564800000,7.83376],[1363651200000,7.82238],[1363737600000,7.79958],[1363824000000,7.79665],[1363910400000,7.81089],[1363996800000,7.80552],[1364083200000,7.80552],[1364169600000,7.80552],[1364256000000,7.83313],[1364342400000,7.84538],[1364428800000,7.86003],[1364515200000,7.86041],[1364601600000,7.86041],[1364688000000,7.86041],[1364774400000,7.86041],[1364860800000,7.86041],[1364947200000,7.89098],[1365033600000,7.88118],[1365120000000,7.87383],[1365206400000,7.87737],[1365292800000,7.87737],[1365379200000,7.87737],[1365465600000,7.85962],[1365552000000,7.87583],[1365638400000,7.87031],[1365724800000,7.91876],[1365811200000,7.89919],[1365897600000,7.89919],[1365984000000,7.89919],[1366070400000,7.83194],[1366156800000,7.82493],[1366243200000,7.79123],[1366329600000,7.80337],[1366416000000,7.79798],[1366502400000,7.79798],[1366588800000,7.79798],[1366675200000,7.79101],[1366761600000,7.77746],[1366848000000,7.78996],[1366934400000,7.81729],[1367020800000,7.83804],[1367107200000,7.83804],[1367193600000,7.83804],[1367280000000,7.88477],[1367366400000,7.9077],[1367452800000,7.9077],[1367539200000,7.9077],[1367625600000,7.9077],[1367712000000,7.9077],[1367798400000,7.9077],[1367884800000,7.9077],[1367971200000,7.95175],[1368057600000,7.95967],[1368144000000,7.95967],[1368230400000,7.95967],[1368316800000,7.95967],[1368403200000,7.95967],[1368489600000,7.92035],[1368576000000,7.88365],[1368662400000,7.82928],[1368748800000,7.84093],[1368835200000,7.78078],[1368921600000,7.78078],[1369008000000,7.78078],[1369094400000,7.77581],[1369180800000,7.78368],[1369267200000,7.75768],[1369353600000,7.72275],[1369440000000,7.73591],[1369526400000,7.73591],[1369612800000,7.73591],[1369699200000,7.74286],[1369785600000,7.72722],[1369872000000,7.70622],[1369958400000,7.70203],[1370044800000,7.73835],[1370131200000,7.73835],[1370217600000,7.73835],[1370304000000,7.72746],[1370390400000,7.7457],[1370476800000,7.73148],[1370563200000,7.75018],[1370649600000,7.81156],[1370736000000,7.81156],[1370822400000,7.81156],[1370908800000,7.84686],[1370995200000,7.80426],[1371081600000,7.86738],[1371168000000,7.8596],[1371254400000,7.86238],[1371340800000,7.86238],[1371427200000,7.86238],[1371513600000,7.86852],[1371600000000,7.84],[1371686400000,7.83692],[1371772800000,7.72893],[1371859200000,7.68681],[1371945600000,7.68681],[1372032000000,7.68681],[1372118400000,7.68681],[1372204800000,7.62382],[1372291200000,7.62699],[1372377600000,7.65974],[1372464000000,7.65974],[1372550400000,7.65974],[1372636800000,7.65974],[1372723200000,7.59842],[1372809600000,7.5636],[1372896000000,7.5806],[1372982400000,7.5808],[1373068800000,7.5973],[1373155200000,7.5973],[1373241600000,7.5973],[1373328000000,7.57058],[1373414400000,7.57973],[1373500800000,7.60032],[1373587200000,7.68204],[1373673600000,7.696],[1373760000000,7.696],[1373846400000,7.696],[1373932800000,7.66546],[1374019200000,7.67754],[1374105600000,7.68864],[1374192000000,7.67246],[1374278400000,7.70246],[1374364800000,7.70246],[1374451200000,null],[1374537600000,7.7277],[1374624000000,7.73478],[1374710400000,7.78266],[1374796800000,7.76308],[1374883200000,7.77146],[1374969600000,7.77146],[1375056000000,7.77146],[1375142400000,7.77846],[1375228800000,7.79067],[1375315200000,7.76261],[1375401600000,7.76195],[1375488000000,7.68396],[1375574400000,null],[1375660800000,7.68396],[1375747200000,7.68852],[1375833600000,7.7041],[1375920000000,7.66851],[1376006400000,7.67751],[1376092800000,7.76707],[1376179200000,7.76707],[1376265600000,7.76707],[1376352000000,7.75192],[1376438400000,7.74531],[1376524800000,7.73258],[1376611200000,7.7398],[1376697600000,7.74284],[1376784000000,7.74284],[1376870400000,7.74284],[1376956800000,7.73673],[1377043200000,7.70254],[1377129600000,7.65991],[1377216000000,7.61518],[1377302400000,7.56316],[1377388800000,7.56316],[1377475200000,7.56316],[1377561600000,7.56316],[1377648000000,7.59335],[1377734400000,7.61964],[1377820800000,7.61583],[1377907200000,7.59094],[1377993600000,7.59094],[1378080000000,7.59094],[1378166400000,7.59068],[1378252800000,7.59404],[1378339200000,7.62095],[1378425600000,7.62619],[1378512000000,7.66293],[1378598400000,7.66293],[1378684800000,7.66293],[1378771200000,7.69835],[1378857600000,7.73365],[1378944000000,7.73193],[1379030400000,7.74531],[1379116800000,7.73469],[1379203200000,7.73469],[1379289600000,7.73469],[1379376000000,7.75947],[1379462400000,7.75044],[1379548800000,7.75487],[1379635200000,7.82885],[1379721600000,7.77215],[1379808000000,7.77215],[1379894400000,7.77215],[1379980800000,7.76256],[1380067200000,7.7715],[1380153600000,7.7519],[1380240000000,7.75739],[1380326400000,7.74692],[1380412800000,7.74692],[1380499200000,7.74692],[1380585600000,7.75916],[1380672000000,7.75943],[1380758400000,7.72272],[1380844800000,7.73193],[1380931200000,7.73742],[1381017600000,7.73742],[1381104000000,7.73742],[1381190400000,7.74311],[1381276800000,7.75425],[1381363200000,7.70015],[1381449600000,7.70015],[1381536000000,7.69356],[1381622400000,7.69356],[1381708800000,7.69356],[1381795200000,7.72146],[1381881600000,7.71732],[1381968000000,7.70549],[1382054400000,7.76177],[1382140800000,7.76323],[1382227200000,7.76323],[1382313600000,7.76323],[1382400000000,7.76461],[1382486400000,7.76032],[1382572800000,7.74683],[1382659200000,7.68515],[1382745600000,7.65783],[1382832000000,7.65783],[1382918400000,7.65783],[1383004800000,7.6532],[1383091200000,7.65336],[1383177600000,7.65412],[1383264000000,7.65087],[1383350400000,null],[1383436800000,7.66549],[1383523200000,7.66549],[1383609600000,7.68461],[1383696000000,7.66415],[1383782400000,7.65599],[1383868800000,7.6633],[1383955200000,7.64521],[1384041600000,7.64521],[1384128000000,7.64521],[1384214400000,7.63284],[1384300800000,7.61594],[1384387200000,7.62036],[1384473600000,7.61335],[1384560000000,7.63832],[1384646400000,7.63832],[1384732800000,7.63832],[1384819200000,7.67285],[1384905600000,7.65835],[1384992000000,7.64378],[1385078400000,7.63213],[1385164800000,7.58294],[1385251200000,7.58294],[1385337600000,7.58294],[1385424000000,7.56848],[1385510400000,7.59441],[1385596800000,7.55617],[1385683200000,7.5571],[1385769600000,7.5582],[1385856000000,7.5582],[1385942400000,7.5582],[1386028800000,7.52021],[1386115200000,7.50287],[1386201600000,7.50075],[1386288000000,7.5003],[1386374400000,7.50566],[1386460800000,7.50566],[1386547200000,7.50566],[1386633600000,7.49538],[1386720000000,7.52559],[1386806400000,7.54678],[1386892800000,7.55635],[1386979200000,7.5017],[1387065600000,7.5017],[1387152000000,7.5017],[1387238400000,7.55275],[1387324800000,7.54934],[1387411200000,7.5163],[1387497600000,7.45668],[1387584000000,7.47565],[1387670400000,7.47565],[1387756800000,7.47565],[1387843200000,7.54063],[1387929600000,7.53332],[1388016000000,7.53332],[1388102400000,7.53332],[1388188800000,7.49544],[1388275200000,7.49544],[1388361600000,7.49544]], 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: [[1358208000000, 8.050327],[1358208000000, 8.050327],[1360886400000, 7.937187],[1363305600000, 7.797837],[1365984000000, 7.848034],[1368576000000, 7.840212],[1371254400000, 7.760713],[1373846400000, 7.676550],[1376524800000, 7.683908],[1379203200000, 7.713668],[1381795200000, 7.717763],[1384473600000, 7.626666],[1387065600000, 7.513260]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });