Commit 1d6a30255c998adc36a5ccec9768f622309c6ca9
1 parent
e4ca9113
Exists in
master
and in
7 other branches
exemplo de painel baseado em um mapa salvo
Showing
2 changed files
with
29 additions
and
7 deletions
Show diff stats
exemplos/painel1.htm
... | ... | @@ -17,10 +17,10 @@ |
17 | 17 | </div> |
18 | 18 | </div> |
19 | 19 | </div> |
20 | -<div id="graficoi5004" style="position:relative;width:500px;left:720px;box-shadow:2px 1px 5px 1px lightgray;"> | |
20 | +<div id="graficoi5004" style="top:20px;visibility: hidden;position:absolute;width:500px;left:720px;box-shadow:2px 1px 5px 1px lightgray;"> | |
21 | 21 | <div id="graficoi5004_corpo" style="width:500px;height:300px;"></div> |
22 | 22 | </div> |
23 | -<div id="graficoi446834" style="top:50px;position:relative;width:500px;left:720px;box-shadow:2px 1px 5px 1px lightgray;"> | |
23 | +<div id="graficoi446834" style="top:350px;visibility: hidden;position:absolute;width:500px;left:720px;box-shadow:2px 1px 5px 1px lightgray;"> | |
24 | 24 | <div id="graficoi446834_corpo" style="width:500px;height:300px;"></div> |
25 | 25 | </div> |
26 | 26 | <style> |
... | ... | @@ -75,7 +75,8 @@ i3GEO.configura.oMenuData = { |
75 | 75 | ] |
76 | 76 | } |
77 | 77 | }; |
78 | - | |
78 | +i3GEO.configura.mashuppar = "&mapext=-60.595092 -16.803588 -56.749877 -13.233032"; | |
79 | +i3GEO.configura.guardaExtensao = false; | |
79 | 80 | i3GEO.cria(); |
80 | 81 | i3GEO.inicia(); |
81 | 82 | ... | ... |
ferramentas/graficointerativo1/index.js
... | ... | @@ -1269,6 +1269,9 @@ i3GEOF.graficointerativo1 = |
1269 | 1269 | tabela.innerHTML = ins; |
1270 | 1270 | }, |
1271 | 1271 | configDefault : function(idjanela, dados, maior, cores, legendaY, legendaX) { |
1272 | + if($i(idjanela)){ | |
1273 | + $i(idjanela).style.visibility = "hidden"; | |
1274 | + } | |
1272 | 1275 | var temp, config = { |
1273 | 1276 | canvas : idjanela + "i3GEOgraficointerativo1guia4objCanvas", |
1274 | 1277 | height : parseInt($i(idjanela + "_corpo").style.height, 10) - 80, |
... | ... | @@ -1333,7 +1336,7 @@ i3GEOF.graficointerativo1 = |
1333 | 1336 | config.orthoAxisTitle = $i(idjanela + "i3GEOgraficointerativo1TituloY").value; |
1334 | 1337 | } |
1335 | 1338 | temp = $i(idjanela + "i3GEOgraficointerativo1FatorTamanho"); |
1336 | - if (temp && temp.value > 0) { | |
1339 | + if (temp && temp.value > 0 && dados.resultset) { | |
1337 | 1340 | config.width = dados.resultset.length * temp.value; |
1338 | 1341 | } else { |
1339 | 1342 | config.width = parseInt($i(idjanela).style.width, 10) - 20; |
... | ... | @@ -1350,7 +1353,7 @@ i3GEOF.graficointerativo1 = |
1350 | 1353 | config.extensionPoints.xAxisLabel_textBaseline = 'top'; |
1351 | 1354 | config.extensionPoints.xAxisLabel_textAlign = 'right'; |
1352 | 1355 | } |
1353 | - if (dados.resultset[0].length > 2) { | |
1356 | + if (dados.resultset && dados.resultset[0] && dados.resultset[0].length > 2) { | |
1354 | 1357 | config.stacked = $i(idjanela + "i3GEOFgraficointerativo1ativaStacked").checked; |
1355 | 1358 | config.legend = true; |
1356 | 1359 | ct = true; |
... | ... | @@ -1368,6 +1371,9 @@ i3GEOF.graficointerativo1 = |
1368 | 1371 | seriesInRows : sr |
1369 | 1372 | }).render(); |
1370 | 1373 | i3GEOF.graficointerativo1.propJanelas[idjanela].aguarde.visibility = "hidden"; |
1374 | + if($i(idjanela)){ | |
1375 | + $i(idjanela).style.visibility = "visible"; | |
1376 | + } | |
1371 | 1377 | }, |
1372 | 1378 | linhas : function(idjanela, dados, maior, cores, legendaY, legendaX, xInclinado, tipo) { |
1373 | 1379 | var ct = false, sr = false, config = i3GEOF.graficointerativo1.configDefault(idjanela, dados, maior, cores, legendaY, legendaX); |
... | ... | @@ -1378,7 +1384,7 @@ i3GEOF.graficointerativo1 = |
1378 | 1384 | } |
1379 | 1385 | config.dotsVisible = true; |
1380 | 1386 | |
1381 | - if (dados.resultset[0].length > 2) { | |
1387 | + if (dados.resultset && dados.resultset[0] && dados.resultset[0].length > 2) { | |
1382 | 1388 | config.stacked = $i(idjanela + "i3GEOFgraficointerativo1ativaStacked").checked; |
1383 | 1389 | config.legend = true; |
1384 | 1390 | ct = true; |
... | ... | @@ -1390,6 +1396,9 @@ i3GEOF.graficointerativo1 = |
1390 | 1396 | seriesInRows : sr |
1391 | 1397 | }).render(); |
1392 | 1398 | i3GEOF.graficointerativo1.propJanelas[idjanela].aguarde.visibility = "hidden"; |
1399 | + if($i(idjanela)){ | |
1400 | + $i(idjanela).style.visibility = "visible"; | |
1401 | + } | |
1393 | 1402 | }, |
1394 | 1403 | areas : function(idjanela, dados, maior, cores, legendaY, legendaX, xInclinado, tipo) { |
1395 | 1404 | var ct = false, sr = false, config = i3GEOF.graficointerativo1.configDefault(idjanela, dados, maior, cores, legendaY, legendaX); |
... | ... | @@ -1401,7 +1410,7 @@ i3GEOF.graficointerativo1 = |
1401 | 1410 | config.dotsVisible = true; |
1402 | 1411 | config.areasVisible = true; |
1403 | 1412 | |
1404 | - if (dados.resultset[0].length > 2) { | |
1413 | + if (dados.resultset && dados.resultset[0] && dados.resultset[0].length > 2) { | |
1405 | 1414 | config.stacked = $i(idjanela + "i3GEOFgraficointerativo1ativaStacked").checked; |
1406 | 1415 | config.legend = true; |
1407 | 1416 | ct = true; |
... | ... | @@ -1413,6 +1422,9 @@ i3GEOF.graficointerativo1 = |
1413 | 1422 | seriesInRows : sr |
1414 | 1423 | }).render(); |
1415 | 1424 | i3GEOF.graficointerativo1.propJanelas[idjanela].aguarde.visibility = "hidden"; |
1425 | + if($i(idjanela)){ | |
1426 | + $i(idjanela).style.visibility = "visible"; | |
1427 | + } | |
1416 | 1428 | }, |
1417 | 1429 | arvores : function(idjanela, dados, maior, cores, legendaY, legendaX, tipo) { |
1418 | 1430 | |
... | ... | @@ -1438,6 +1450,9 @@ i3GEOF.graficointerativo1 = |
1438 | 1450 | crosstabMode : false |
1439 | 1451 | }).render(); |
1440 | 1452 | i3GEOF.graficointerativo1.propJanelas[idjanela].aguarde.visibility = "hidden"; |
1453 | + if($i(idjanela)){ | |
1454 | + $i(idjanela).style.visibility = "visible"; | |
1455 | + } | |
1441 | 1456 | }, |
1442 | 1457 | pizzas : function(idjanela, dados, maior, cores, legendaY, legendaX, tipo) { |
1443 | 1458 | config = i3GEOF.graficointerativo1.configDefault(idjanela, dados, maior, cores, legendaY, legendaX); |
... | ... | @@ -1464,6 +1479,9 @@ i3GEOF.graficointerativo1 = |
1464 | 1479 | crosstabMode : false |
1465 | 1480 | }).render(); |
1466 | 1481 | i3GEOF.graficointerativo1.propJanelas[idjanela].aguarde.visibility = "hidden"; |
1482 | + if($i(idjanela)){ | |
1483 | + $i(idjanela).style.visibility = "visible"; | |
1484 | + } | |
1467 | 1485 | }, |
1468 | 1486 | pontos : function(idjanela, dados, maior, cores, legendaY, legendaX, tipo) { |
1469 | 1487 | config = i3GEOF.graficointerativo1.configDefault(idjanela, dados, maior, cores, legendaY, legendaX); |
... | ... | @@ -1496,5 +1514,8 @@ i3GEOF.graficointerativo1 = |
1496 | 1514 | crosstabMode : false |
1497 | 1515 | }).render(); |
1498 | 1516 | i3GEOF.graficointerativo1.propJanelas[idjanela].aguarde.visibility = "hidden"; |
1517 | + if($i(idjanela)){ | |
1518 | + $i(idjanela).style.visibility = "visible"; | |
1519 | + } | |
1499 | 1520 | } |
1500 | 1521 | }; | ... | ... |