Commit c53e091cde9809ad5be4e7a08029db8d6566f047

Authored by Edmar Moretti
1 parent ba4b7c1b

Correção no gráfico de scatter

admin/admin.db
No preview for this file type
ferramentas/graficointerativo/index.js
@@ -561,8 +561,12 @@ i3GEOF.graficointerativo = { @@ -561,8 +561,12 @@ i3GEOF.graficointerativo = {
561 ordenax = "sim", 561 ordenax = "sim",
562 monta; 562 monta;
563 563
564 - if($i("i3GEOgraficointerativoDadosPuros").checked)  
565 - {tipo = "nenhum";} 564 + if(i3GEOF.graficointerativo.tipo == "scatter"){
  565 + $i("i3GEOgraficointerativoDadosPuros").checked = true;
  566 + }
  567 + if($i("i3GEOgraficointerativoDadosPuros").checked){
  568 + tipo = "nenhum";
  569 + }
566 else{ 570 else{
567 if(x === y) 571 if(x === y)
568 {tipo = "conta";} 572 {tipo = "conta";}
ferramentas/graficointerativo1/index.js
@@ -584,6 +584,10 @@ i3GEOF.graficointerativo1 = { @@ -584,6 +584,10 @@ i3GEOF.graficointerativo1 = {
584 */ 584 */
585 ativaTipo : function(obj) { 585 ativaTipo : function(obj) {
586 i3GEOF.graficointerativo1.tipo = obj.value; 586 i3GEOF.graficointerativo1.tipo = obj.value;
  587 + if(i3GEOF.graficointerativo1.tipo == "ponto_1"){
  588 + $i("i3GEOgraficointerativo1DadosPuros").checked = true;
  589 + }
  590 +
587 if ($i("i3GEOgraficointerativo1Grafico").innerHTML === "" 591 if ($i("i3GEOgraficointerativo1Grafico").innerHTML === ""
588 || $i("i3GEOgraficointerativo1tabeladados").innerHTML == "") { 592 || $i("i3GEOgraficointerativo1tabeladados").innerHTML == "") {
589 $i("i3GEOgraficointerativo1guia2").onclick.call(); 593 $i("i3GEOgraficointerativo1guia2").onclick.call();
@@ -748,7 +752,7 @@ i3GEOF.graficointerativo1 = { @@ -748,7 +752,7 @@ i3GEOF.graficointerativo1 = {
748 + i3GEO.configura.sid + "&funcao=graficoSelecao&tema=" + tema 752 + i3GEO.configura.sid + "&funcao=graficoSelecao&tema=" + tema
749 + "&itemclasses=" + x + "&itemvalores=" + y + "&exclui=" 753 + "&itemclasses=" + x + "&itemvalores=" + y + "&exclui="
750 + excluir + "&ext=" + i3GEO.parametros.mapexten; 754 + excluir + "&ext=" + i3GEO.parametros.mapexten;
751 - 755 +
752 if ($i("i3GEOgraficointerativo1DadosPuros").checked) { 756 if ($i("i3GEOgraficointerativo1DadosPuros").checked) {
753 tipo = "nenhum"; 757 tipo = "nenhum";
754 } else { 758 } else {
@@ -1399,7 +1403,7 @@ i3GEOF.graficointerativo1 = { @@ -1399,7 +1403,7 @@ i3GEOF.graficointerativo1 = {
1399 }).render(); 1403 }).render();
1400 i3GEOF.graficointerativo1.aguarde.visibility = "hidden"; 1404 i3GEOF.graficointerativo1.aguarde.visibility = "hidden";
1401 }, 1405 },
1402 - pontos : function(dados, maior, cores, legendaY, legendaX, tipo) { 1406 + pontos: function(dados, maior, cores, legendaY, legendaX, tipo) {
1403 config = i3GEOF.graficointerativo1.configDefault(dados, maior, cores, 1407 config = i3GEOF.graficointerativo1.configDefault(dados, maior, cores,
1404 legendaY, legendaX); 1408 legendaY, legendaX);
1405 var config = { 1409 var config = {