You can't directly control the size of the box used for the legend, but you 
can shrink the area used for the graphing portion of the chart with the 
chartArea.top/left/height/width options.  By reducing the width of the 
chartArea, you will increase the space available to draw the legend:

chartArea: {
    // shrink the width of the chartArea
    width: '60%',
    // start the chartArea 40 pixels from the left edge of the chart
    left: 40
}

The width can be either a percent or a number in pixels for the width of 
the chartArea.  Use these two suboptions to find some combination that 
works for you.

On Thursday, August 15, 2013 4:03:16 PM UTC-4, Philipp Maier wrote:
>
> Hi,
>
> I have a quick question regarding googleVis charts. I use them in the 
> context of a shiny application in R.
>
> For one of the charts, the legend text is relatively long. We can display 
> them under the chart, but of the 10-or-so series, only the legend for the 
> first two is displayed, so it involves a lot of scrolling. If I display it 
> to the side, most of the text is cut off. 
>
> Is there an option to change the size of the "text box" used for the 
> legend? I.e. to have a larger space of the chart allocated to the legend?
>
> Many thanks, Philipp
>
> Sent from my iPad
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to