I need the values ​​of each point to appear when the graph is loaded, 
without having to move the mouse to appear and show the result of the 
point, follow image and the code of the graph

[image: Capturar.PNG]

And Code: 
<script type="text/javascript" 
src="https://www.gstatic.com/charts/loader.js";></script>
    <script type="text/javascript">
      google.charts.load('current', {'packages':['corechart']});
      google.charts.setOnLoadCallback(drawChart);

    
      function drawChart() {
                     
      
        var data = google.visualization.arrayToDataTable([
          ['', 'Limite', 'Resultado'],                                      
                                
                     <?php

      while (($array = oci_fetch_array($stmt, OCI_BOTH)) != false) {
               $mes= $array["MES"];
               $limite_1 = $array["LIMITE"];
               $realizado_1 = $array["REALIZADO"];
                                     
               $realizado = str_replace(",",".", $realizado_1);
               $limite = str_replace(",",".", $limite_1);
                                     
              ?>                               
                                        
         
          ['<?php echo $mes ?>',<?php echo $limite ?>,<?php echo $realizado 
?>],

         <?php } ?>
        ]);
        
        var options = {
          title: '% Quebra Financeira Açougue',
          curveType: 'function',
          legend: { position: 'bottom' }
          
        };
        
        var chart = new 
google.visualization.LineChart(document.getElementById('curve_chart1'));

        chart.draw(data, options);
      }
    </script>


:)


-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/25bd8a5c-3456-4ade-88c8-9469d382960a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to