Hiding the legend in Google Chart

I am using the Google charts API. Is there a way to hide the legend for a scatter plot?


Solution 1:

You can disable the legend by using 'none' as the position:

legend: {position: 'none'}

Solution 2:

A bit cleaner way is

legend: 'none'

Solution 3:

var options = {
               title: 'USA City Distribution',
               legend: 'none'
              };

In drawChart() function, Add legend: none property in your chart options object

Solution 4:

In my case I use:

library: {legend:{position:'none'}}

pie_chart @type_values,library: {legend:{position:'none'}}