Javier García Javier García - 11 months ago 77
Javascript Question

Google charts: Move legend position

I am using Google Charts to visualize data on my website. I have a problem with the 'visualization' 1.1 and the 'pakcages' line:

google.load('visualization', '1.1', {packages: ['line']});

I try to put the legend column in the bottom position, with others Google Charts types I use the next line and it works:

var options = {
legend: { position: 'bottom'}

But with this type of charts no works, it put the legend column in the right, like you can see in this image of my web:
chart example


Answer Source

I believe the syntax is like this:

var options = {
legend: 'bottom'


EDIT: Actually, it seems to not yet be supported. Only right or none. Source