$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1356998400000,0.26316],[1357084800000,0.26316],[1357171200000,0.26316],[1357257600000,0.26316],[1357344000000,0.26316],[1357430400000,0.26316],[1357516800000,0.26316],[1357603200000,0.26316],[1357689600000,0.26316],[1357776000000,0.26274],[1357862400000,0.26323],[1357948800000,0.2642],[1358035200000,0.2642],[1358121600000,0.2642],[1358208000000,0.26414],[1358294400000,0.26418],[1358380800000,0.26345],[1358467200000,0.26342],[1358553600000,0.26461],[1358640000000,0.26461],[1358726400000,0.26461],[1358812800000,0.26382],[1358899200000,0.26471],[1358985600000,0.26441],[1359072000000,0.26498],[1359158400000,0.26603],[1359244800000,0.26603],[1359331200000,0.26603],[1359417600000,0.26574],[1359504000000,0.2651],[1359590400000,0.26619],[1359676800000,0.26629],[1359763200000,0.26646],[1359849600000,0.26646],[1359936000000,0.26646],[1360022400000,0.2671],[1360108800000,0.26534],[1360195200000,0.26679],[1360281600000,0.26599],[1360368000000,0.26504],[1360454400000,0.26504],[1360540800000,0.26504],[1360627200000,0.26503],[1360713600000,0.26492],[1360800000000,0.26582],[1360886400000,0.26575],[1360972800000,0.26543],[1361059200000,0.26543],[1361145600000,0.26543],[1361232000000,0.26532],[1361318400000,0.2653],[1361404800000,0.26599],[1361491200000,0.26437],[1361577600000,0.26328],[1361664000000,0.26328],[1361750400000,0.26328],[1361836800000,0.26348],[1361923200000,0.2613],[1362009600000,0.26104],[1362096000000,0.26196],[1362182400000,0.26088],[1362268800000,0.26088],[1362355200000,0.26088],[1362441600000,0.25962],[1362528000000,0.26039],[1362614400000,0.26103],[1362700800000,0.25983],[1362787200000,0.25983],[1362873600000,0.25983],[1362960000000,0.25983],[1363046400000,0.25987],[1363132800000,0.25994],[1363219200000,0.26018],[1363305600000,0.25971],[1363392000000,0.26019],[1363478400000,0.26019],[1363564800000,0.26019],[1363651200000,0.25875],[1363737600000,0.25927],[1363824000000,0.2583],[1363910400000,0.25874],[1363996800000,0.2584],[1364083200000,0.2584],[1364169600000,0.2584],[1364256000000,0.25986],[1364342400000,0.2589],[1364428800000,0.25898],[1364515200000,0.25787],[1364601600000,0.25715],[1364688000000,0.25715],[1364774400000,0.25715],[1364860800000,0.25693],[1364947200000,0.25686],[1365033600000,0.25462],[1365120000000,0.25198],[1365206400000,0.25278],[1365292800000,0.25278],[1365379200000,0.25278],[1365465600000,0.25283],[1365552000000,0.25612],[1365638400000,0.25781],[1365724800000,0.25883],[1365811200000,0.25842],[1365897600000,0.25842],[1365984000000,0.25842],[1366070400000,0.25533],[1366156800000,0.25414],[1366243200000,0.25592],[1366329600000,0.25203],[1366416000000,0.25406],[1366502400000,0.25406],[1366588800000,0.25406],[1366675200000,0.25321],[1366761600000,0.25261],[1366848000000,0.25301],[1366934400000,0.25523],[1367020800000,0.25603],[1367107200000,0.25603],[1367193600000,0.25603],[1367280000000,0.25573],[1367366400000,0.25748],[1367452800000,0.25748],[1367539200000,0.25748],[1367625600000,0.25748],[1367712000000,0.25748],[1367798400000,0.25748],[1367884800000,0.25748],[1367971200000,0.25718],[1368057600000,0.25715],[1368144000000,0.25715],[1368230400000,0.25715],[1368316800000,0.25715],[1368403200000,0.25715],[1368489600000,0.25474],[1368576000000,0.25555],[1368662400000,0.25433],[1368748800000,0.25442],[1368835200000,0.25461],[1368921600000,0.25461],[1369008000000,0.25461],[1369094400000,0.25504],[1369180800000,0.25637],[1369267200000,0.25596],[1369353600000,0.25398],[1369440000000,0.25523],[1369526400000,0.25523],[1369612800000,0.25523],[1369699200000,0.25535],[1369785600000,0.25473],[1369872000000,0.25358],[1369958400000,0.25303],[1370044800000,0.25137],[1370131200000,0.25137],[1370217600000,0.25137],[1370304000000,0.2494],[1370390400000,0.25108],[1370476800000,0.24992],[1370563200000,0.2487],[1370649600000,0.24792],[1370736000000,0.24792],[1370822400000,0.24792],[1370908800000,0.24727],[1370995200000,0.24673],[1371081600000,0.24673],[1371168000000,0.2471],[1371254400000,0.25133],[1371340800000,0.25133],[1371427200000,0.25133],[1371513600000,0.25231],[1371600000000,0.2507],[1371686400000,0.24885],[1371772800000,0.2444],[1371859200000,0.24411],[1371945600000,0.24411],[1372032000000,0.24411],[1372118400000,0.24411],[1372204800000,0.24433],[1372291200000,0.24304],[1372377600000,0.24312],[1372464000000,0.24312],[1372550400000,0.24312],[1372636800000,0.24312],[1372723200000,0.24331],[1372809600000,0.2426],[1372896000000,0.24061],[1372982400000,0.24104],[1373068800000,0.24057],[1373155200000,0.24057],[1373241600000,0.24057],[1373328000000,0.23988],[1373414400000,0.2416],[1373500800000,0.24287],[1373587200000,0.24528],[1373673600000,0.24486],[1373760000000,0.24486],[1373846400000,0.24486],[1373932800000,0.24502],[1374019200000,0.24562],[1374105600000,0.2463],[1374192000000,0.2467],[1374278400000,0.24648],[1374364800000,0.24648],[1374451200000,null],[1374537600000,0.24728],[1374624000000,0.24738],[1374710400000,0.24711],[1374796800000,0.24565],[1374883200000,0.24491],[1374969600000,0.24491],[1375056000000,0.24491],[1375142400000,0.24328],[1375228800000,0.24302],[1375315200000,0.24197],[1375401600000,0.2424],[1375488000000,0.2415],[1375574400000,null],[1375660800000,0.2415],[1375747200000,0.24309],[1375833600000,0.24266],[1375920000000,0.24232],[1376006400000,0.24265],[1376092800000,0.24324],[1376179200000,0.24324],[1376265600000,0.24324],[1376352000000,0.24301],[1376438400000,0.2419],[1376524800000,0.24106],[1376611200000,0.24221],[1376697600000,0.24264],[1376784000000,0.24264],[1376870400000,0.24264],[1376956800000,0.24278],[1377043200000,0.24221],[1377129600000,0.24241],[1377216000000,0.24082],[1377302400000,0.24181],[1377388800000,0.24181],[1377475200000,0.24181],[1377561600000,0.24181],[1377648000000,0.24132],[1377734400000,0.2409],[1377820800000,0.24091],[1377907200000,0.24041],[1377993600000,0.24041],[1378080000000,0.24041],[1378166400000,0.24038],[1378252800000,0.23953],[1378339200000,0.23884],[1378425600000,0.23938],[1378512000000,0.23907],[1378598400000,0.23907],[1378684800000,0.23907],[1378771200000,0.23986],[1378857600000,0.24177],[1378944000000,0.24248],[1379030400000,0.24464],[1379116800000,0.24413],[1379203200000,0.24413],[1379289600000,0.24413],[1379376000000,0.24753],[1379462400000,0.24728],[1379548800000,0.24788],[1379635200000,0.25303],[1379721600000,0.25189],[1379808000000,0.25189],[1379894400000,0.25189],[1379980800000,0.25048],[1380067200000,0.25122],[1380153600000,0.2503],[1380240000000,0.24843],[1380326400000,0.24712],[1380412800000,0.24712],[1380499200000,0.24712],[1380585600000,0.24606],[1380672000000,0.24749],[1380758400000,0.24748],[1380844800000,0.24881],[1380931200000,0.249],[1381017600000,0.249],[1381104000000,0.249],[1381190400000,0.24751],[1381276800000,0.24747],[1381363200000,0.24699],[1381449600000,0.24699],[1381536000000,0.24813],[1381622400000,0.24813],[1381708800000,0.24813],[1381795200000,0.24772],[1381881600000,0.24771],[1381968000000,0.2478],[1382054400000,0.24915],[1382140800000,0.25099],[1382227200000,0.25099],[1382313600000,0.25099],[1382400000000,0.25055],[1382486400000,0.25029],[1382572800000,0.25179],[1382659200000,0.25245],[1382745600000,0.25232],[1382832000000,0.25232],[1382918400000,0.25232],[1383004800000,0.25126],[1383091200000,0.25022],[1383177600000,0.2493],[1383264000000,0.24919],[1383350400000,null],[1383436800000,0.24838],[1383523200000,0.24838],[1383609600000,0.24838],[1383696000000,0.24707],[1383782400000,0.24631],[1383868800000,0.24685],[1383955200000,0.24558],[1384041600000,0.24558],[1384128000000,0.24558],[1384214400000,0.24472],[1384300800000,0.24363],[1384387200000,0.24355],[1384473600000,0.24453],[1384560000000,0.24458],[1384646400000,0.24458],[1384732800000,0.24458],[1384819200000,0.24544],[1384905600000,0.24511],[1384992000000,0.24412],[1385078400000,0.24208],[1385164800000,0.24291],[1385251200000,0.24291],[1385337600000,0.24291],[1385424000000,0.24389],[1385510400000,0.2423],[1385596800000,0.24218],[1385683200000,0.24124],[1385769600000,0.24081],[1385856000000,0.24081],[1385942400000,0.24081],[1386028800000,0.24113],[1386115200000,0.24042],[1386201600000,0.2403],[1386288000000,0.24138],[1386374400000,0.24257],[1386460800000,0.24257],[1386547200000,0.24257],[1386633600000,0.24385],[1386720000000,0.2438],[1386806400000,0.2442],[1386892800000,0.24405],[1386979200000,0.2432],[1387065600000,0.2432],[1387152000000,0.2432],[1387238400000,0.2432],[1387324800000,0.24321],[1387411200000,0.24265],[1387497600000,0.24256],[1387584000000,0.24236],[1387670400000,0.24236],[1387756800000,0.24236],[1387843200000,0.24258],[1387929600000,0.24497],[1388016000000,0.24482],[1388102400000,0.24465],[1388188800000,0.24497],[1388275200000,0.24497],[1388361600000,0.24497]], 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, 0.264164],[1358208000000, 0.264164],[1360886400000, 0.265016],[1363305600000, 0.259529],[1365984000000, 0.255140],[1368576000000, 0.255867],[1371254400000, 0.247607],[1373846400000, 0.244055],[1376524800000, 0.242097],[1379203200000, 0.245016],[1381795200000, 0.249302],[1384473600000, 0.244737],[1387065600000, 0.243021]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });