Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google charts legend pile up

Google charts does automatic label positioning. However under chrome everything goes ok, but under firefox and IE this is the result: http://i.stack.imgur.com/ftXgF.png

As anyone gone through this or have any idea why this happens? It's a very random behaviour sometimes it displays properlly other times it doesn't.

like image 980
fmsf Avatar asked Oct 19 '11 12:10

fmsf


People also ask

How do I get rid of the legend in my Google Chart?

Populating the Google Chart without Legend The Legend is hidden by setting the legend property to none in the Google Chart Options. title: 'USA City Distribution', legend: 'none' // Hides the Legend.

How do I change the size of a Google Chart?

You can specify the chart size in two places: in the HTML of the container <div> element, or in the chart options.


1 Answers

The html element where the graphic is going to be displayed must be visible at drawing time.

That's the solution. Otherwise there is a bug that in browsers other than chrome it cluters up the legends.

like image 123
fmsf Avatar answered Oct 13 '22 00:10

fmsf