2
Well I’m taking a look at how google charts work. And I’m not finding the way to work with rods in R$. I need the chart to display the formatted values. Does anyone know how to do this?
<html>
  <head>
    <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([
          ['Task', 'Hours per Day'],
          ['Work',     11.57],
          ['Eat',      2],
          ['Commute',  2],
          ['Watch TV', 2],
          ['Sleep',    7]
        ]);
        var options = {
          title: 'My Daily Activities',
          pieHole: 0.4,
        };
        var chart = new google.visualization.PieChart(document.getElementById('donutchart'));
        chart.draw(data, options);
      }
    </script>
  </head>
  <body>
    <div id="donutchart" style="width: 900px; height: 500px;"></div>
  </body>
</html>
What format do you need ?
– Diego Souza
Where do you want to put
R$?– BrTkCa
Then I would enter the data like this:' ['Seg', 239.33], ['Ter', 428.80], ['Quar', 232.98],' And the chart had to be all formatted like this: R$239.33
– Hugo Borges