previewict / gchartphp

Automatically exported from code.google.com/p/gchartphp
0 stars 0 forks source link

There is no way to hide a legend #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I cannot find a way to hide a legend. This option should be there. Google API 
can do it by removing chdl parameter.

Original issue reported on code.google.com by Josef.S...@gmail.com on 15 Mar 2011 at 8:57

GoogleCodeExporter commented 9 years ago
I found it but it is counter intuitive and impossible to find without good 
documentation.

One must not run the function setLegend(). When run with null, it ends in a 
crash as it expects array, with empty array it displays color boxes for legend. 
So the only way to not display a legend is to never run setLegend() method.

Original comment by Josef.S...@gmail.com on 15 Mar 2011 at 9:22