How to insert title to a google Chart API Table Chart

2

In the Google Chart documentation, you can insert titles for a specific chart. But for Table Chart does not work. Would anyone have an idea how to pass to the component the title display information?

Below is an example for graphics:

 var options = {'title':'How Much Pizza I Ate Last Night',
                     'width':400,
                     'height':300};

      // Instantiate and draw our chart, passing in some options.
      var chart = new google.visualization.PieChart(document.getElementById('chart_div'));
      chart.draw(data, options);

It seems that Table Visualization does not support title !! Would there be some way to include it without being html?

    
asked by anonymous 06.06.2016 / 15:51

1 answer

1

According to Documentation , you do not have this option for tables. What you can do is put the title above the% of the% of the table:

   <h3>How Much Pizza I Ate Last Night</h3>
   <div id="table_div"></div>

JsFiddle

In this link you have other examples of customizing tables, using div .

    
09.09.2016 / 16:58