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 561 ordenax = "sim",
562 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 570 else{
567 571 if(x === y)
568 572 {tipo = "conta";}
... ...
ferramentas/graficointerativo1/index.js
... ... @@ -584,6 +584,10 @@ i3GEOF.graficointerativo1 = {
584 584 */
585 585 ativaTipo : function(obj) {
586 586 i3GEOF.graficointerativo1.tipo = obj.value;
  587 + if(i3GEOF.graficointerativo1.tipo == "ponto_1"){
  588 + $i("i3GEOgraficointerativo1DadosPuros").checked = true;
  589 + }
  590 +
587 591 if ($i("i3GEOgraficointerativo1Grafico").innerHTML === ""
588 592 || $i("i3GEOgraficointerativo1tabeladados").innerHTML == "") {
589 593 $i("i3GEOgraficointerativo1guia2").onclick.call();
... ... @@ -748,7 +752,7 @@ i3GEOF.graficointerativo1 = {
748 752 + i3GEO.configura.sid + "&funcao=graficoSelecao&tema=" + tema
749 753 + "&itemclasses=" + x + "&itemvalores=" + y + "&exclui="
750 754 + excluir + "&ext=" + i3GEO.parametros.mapexten;
751   -
  755 +
752 756 if ($i("i3GEOgraficointerativo1DadosPuros").checked) {
753 757 tipo = "nenhum";
754 758 } else {
... ... @@ -1399,7 +1403,7 @@ i3GEOF.graficointerativo1 = {
1399 1403 }).render();
1400 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 1407 config = i3GEOF.graficointerativo1.configDefault(dados, maior, cores,
1404 1408 legendaY, legendaX);
1405 1409 var config = {
... ...