$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1356998400000,0.036236],[1357084800000,0.036236],[1357171200000,0.036236],[1357257600000,0.035977],[1357344000000,0.035747],[1357430400000,0.035747],[1357516800000,0.035747],[1357603200000,0.035747],[1357689600000,0.035735],[1357776000000,0.035903],[1357862400000,0.035945],[1357948800000,0.035777],[1358035200000,0.035777],[1358121600000,0.035777],[1358208000000,0.035894],[1358294400000,0.036144],[1358380800000,0.035975],[1358467200000,0.036396],[1358553600000,0.03638],[1358640000000,0.03638],[1358726400000,0.03638],[1358812800000,0.036401],[1358899200000,0.036166],[1358985600000,0.03617],[1359072000000,0.036181],[1359158400000,0.03614],[1359244800000,0.03614],[1359331200000,0.03614],[1359417600000,0.036011],[1359504000000,0.036103],[1359590400000,0.036555],[1359676800000,0.037056],[1359763200000,0.037301],[1359849600000,0.037301],[1359936000000,0.037301],[1360022400000,0.036941],[1360108800000,0.037013],[1360195200000,0.03672],[1360281600000,0.036784],[1360368000000,0.036581],[1360454400000,0.036581],[1360540800000,0.036581],[1360627200000,0.036691],[1360713600000,0.036875],[1360800000000,0.037269],[1360886400000,0.036416],[1360972800000,0.036428],[1361059200000,0.036428],[1361145600000,0.036428],[1361232000000,0.036553],[1361318400000,0.036693],[1361404800000,0.036685],[1361491200000,0.036036],[1361577600000,0.036027],[1361664000000,0.036027],[1361750400000,0.036027],[1361836800000,0.036226],[1361923200000,0.03544],[1362009600000,0.03542],[1362096000000,0.035477],[1362182400000,0.035196],[1362268800000,0.035196],[1362355200000,0.035196],[1362441600000,0.035039],[1362528000000,0.034858],[1362614400000,0.034898],[1362700800000,0.034721],[1362787200000,0.034721],[1362873600000,0.034721],[1362960000000,0.034721],[1363046400000,0.034232],[1363132800000,0.034247],[1363219200000,0.033946],[1363305600000,0.03387],[1363392000000,0.034281],[1363478400000,0.034281],[1363564800000,0.034281],[1363651200000,0.033643],[1363737600000,0.0339],[1363824000000,0.033928],[1363910400000,0.033786],[1363996800000,0.033684],[1364083200000,0.033684],[1364169600000,0.033684],[1364256000000,0.033738],[1364342400000,0.03376],[1364428800000,0.033557],[1364515200000,0.033621],[1364601600000,0.033621],[1364688000000,0.033621],[1364774400000,0.033621],[1364860800000,0.033621],[1364947200000,0.033994],[1365033600000,0.03394],[1365120000000,0.033995],[1365206400000,0.034358],[1365292800000,0.034358],[1365379200000,0.034358],[1365465600000,0.03496],[1365552000000,0.035017],[1365638400000,0.035086],[1365724800000,0.035213],[1365811200000,0.035418],[1365897600000,0.035418],[1365984000000,0.035418],[1366070400000,0.035526],[1366156800000,0.035603],[1366243200000,0.035629],[1366329600000,0.034993],[1366416000000,0.035149],[1366502400000,0.035149],[1366588800000,0.035149],[1366675200000,0.034759],[1366761600000,0.034673],[1366848000000,0.034704],[1366934400000,0.034706],[1367020800000,0.034453],[1367107200000,0.034453],[1367193600000,0.034453],[1367280000000,0.035154],[1367366400000,0.034814],[1367452800000,0.034814],[1367539200000,0.034814],[1367625600000,0.034814],[1367712000000,0.034814],[1367798400000,0.034814],[1367884800000,0.034814],[1367971200000,0.035363],[1368057600000,0.035794],[1368144000000,0.035794],[1368230400000,0.035794],[1368316800000,0.035794],[1368403200000,0.035794],[1368489600000,0.03535],[1368576000000,0.035098],[1368662400000,0.035181],[1368748800000,0.035465],[1368835200000,0.035401],[1368921600000,0.035401],[1369008000000,0.035401],[1369094400000,0.035427],[1369180800000,0.03541],[1369267200000,0.035734],[1369353600000,0.035257],[1369440000000,0.035613],[1369526400000,0.035613],[1369612800000,0.035613],[1369699200000,0.035757],[1369785600000,0.036178],[1369872000000,0.035943],[1369958400000,0.035271],[1370044800000,0.035107],[1370131200000,0.035107],[1370217600000,0.035107],[1370304000000,0.035197],[1370390400000,0.035895],[1370476800000,0.035445],[1370563200000,0.03526],[1370649600000,0.03584],[1370736000000,0.03584],[1370822400000,0.03584],[1370908800000,0.035525],[1370995200000,0.035398],[1371081600000,0.035804],[1371168000000,0.036095],[1371254400000,0.036488],[1371340800000,0.036488],[1371427200000,0.036488],[1371513600000,0.036684],[1371600000000,0.036407],[1371686400000,0.036448],[1371772800000,0.03531],[1371859200000,0.035249],[1371945600000,0.035249],[1372032000000,0.035249],[1372118400000,0.035249],[1372204800000,0.035365],[1372291200000,0.035018],[1372377600000,0.035312],[1372464000000,0.035312],[1372550400000,0.035312],[1372636800000,0.035312],[1372723200000,0.035435],[1372809600000,0.03547],[1372896000000,0.035127],[1372982400000,0.035085],[1373068800000,0.03493],[1373155200000,0.03493],[1373241600000,0.03493],[1373328000000,0.034874],[1373414400000,0.03508],[1373500800000,0.034835],[1373587200000,0.035648],[1373673600000,0.035578],[1373760000000,0.035578],[1373846400000,0.035578],[1373932800000,0.035617],[1374019200000,0.035835],[1374105600000,0.035731],[1374192000000,0.035479],[1374278400000,0.035487],[1374364800000,0.035487],[1374451200000,null],[1374537600000,0.035801],[1374624000000,0.035773],[1374710400000,0.035818],[1374796800000,0.035556],[1374883200000,0.035739],[1374969600000,0.035739],[1375056000000,0.035739],[1375142400000,0.035607],[1375228800000,0.035499],[1375315200000,0.035408],[1375401600000,0.035403],[1375488000000,0.035148],[1375574400000,null],[1375660800000,0.035148],[1375747200000,0.035491],[1375833600000,0.035424],[1375920000000,0.035506],[1376006400000,0.035725],[1376092800000,0.035818],[1376179200000,0.035818],[1376265600000,0.035818],[1376352000000,0.035729],[1376438400000,0.035543],[1376524800000,0.035447],[1376611200000,0.035551],[1376697600000,0.035502],[1376784000000,0.035502],[1376870400000,0.035502],[1376956800000,0.035469],[1377043200000,0.03577],[1377129600000,0.035699],[1377216000000,0.035568],[1377302400000,0.035704],[1377388800000,0.035704],[1377475200000,0.035704],[1377561600000,0.035704],[1377648000000,0.035504],[1377734400000,0.035231],[1377820800000,0.035291],[1377907200000,0.035171],[1377993600000,0.035171],[1378080000000,0.035171],[1378166400000,0.035182],[1378252800000,0.034941],[1378339200000,0.03494],[1378425600000,0.034901],[1378512000000,0.03487],[1378598400000,0.03487],[1378684800000,0.03487],[1378771200000,0.035103],[1378857600000,0.035361],[1378944000000,0.035416],[1379030400000,0.03526],[1379116800000,0.035359],[1379203200000,0.035359],[1379289600000,0.035359],[1379376000000,0.035733],[1379462400000,0.035688],[1379548800000,0.035757],[1379635200000,0.036611],[1379721600000,0.036092],[1379808000000,0.036092],[1379894400000,0.036092],[1379980800000,0.036104],[1380067200000,0.03591],[1380153600000,0.035965],[1380240000000,0.035981],[1380326400000,0.036112],[1380412800000,0.036112],[1380499200000,0.036112],[1380585600000,0.036205],[1380672000000,0.036592],[1380758400000,0.036409],[1380844800000,0.036718],[1380931200000,0.036592],[1381017600000,0.036592],[1381104000000,0.036592],[1381190400000,0.03667],[1381276800000,0.036757],[1381363200000,0.03647],[1381449600000,0.03647],[1381536000000,0.036773],[1381622400000,0.036773],[1381708800000,0.036773],[1381795200000,0.036664],[1381881600000,0.03652],[1381968000000,0.036603],[1382054400000,0.037091],[1382140800000,0.037149],[1382227200000,0.037149],[1382313600000,0.037149],[1382400000000,0.037192],[1382486400000,0.037136],[1382572800000,0.037613],[1382659200000,0.037687],[1382745600000,0.037607],[1382832000000,0.037607],[1382918400000,0.037607],[1383004800000,0.037637],[1383091200000,0.037541],[1383177600000,0.037443],[1383264000000,0.036974],[1383350400000,null],[1383436800000,0.036405],[1383523200000,0.036405],[1383609600000,0.036502],[1383696000000,0.036316],[1383782400000,0.036412],[1383868800000,0.036117],[1383955200000,0.036241],[1384041600000,0.036241],[1384128000000,0.036241],[1384214400000,0.036011],[1384300800000,0.035967],[1384387200000,0.035902],[1384473600000,0.036083],[1384560000000,0.036053],[1384646400000,0.036053],[1384732800000,0.036053],[1384819200000,0.03637],[1384905600000,0.036342],[1384992000000,0.036431],[1385078400000,0.0362],[1385164800000,0.036261],[1385251200000,0.036261],[1385337600000,0.036261],[1385424000000,0.036222],[1385510400000,0.036248],[1385596800000,0.036336],[1385683200000,0.036279],[1385769600000,0.036132],[1385856000000,0.036132],[1385942400000,0.036132],[1386028800000,0.035802],[1386115200000,0.03583],[1386201600000,0.035916],[1386288000000,0.035999],[1386374400000,0.036126],[1386460800000,0.036126],[1386547200000,0.036126],[1386633600000,0.03637],[1386720000000,0.036538],[1386806400000,0.036407],[1386892800000,0.036279],[1386979200000,0.036281],[1387065600000,0.036281],[1387152000000,0.036281],[1387238400000,0.036732],[1387324800000,0.036718],[1387411200000,0.036817],[1387497600000,0.036489],[1387584000000,0.036524],[1387670400000,0.036524],[1387756800000,0.036524],[1387843200000,0.036688],[1387929600000,0.03681],[1388016000000,0.03681],[1388102400000,0.03681],[1388188800000,0.037143],[1388275200000,0.037143],[1388361600000,0.037143]], 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.036069],[1358208000000, 0.036069],[1360886400000, 0.036565],[1363305600000, 0.034262],[1365984000000, 0.034778],[1368576000000, 0.035392],[1371254400000, 0.035636],[1373846400000, 0.035443],[1376524800000, 0.035533],[1379203200000, 0.035550],[1381795200000, 0.036961],[1384473600000, 0.036252],[1387065600000, 0.036472]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });