Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Charts - Increase Legend Height to remove Paging

Here's a google chart I've made:

enter image description here

I want the legend paging gone. On page 2 there are only 2 items, and obviously these 2 items could easily fit without paging.

After spending some time researching and playing around, it seems my only options are:

  1. Make the chart area higher - It's already too big
  2. Make the text smaller - It's already too small
  3. Hide the legend and make my own - This is my last resort

Does anyone know how I can modify the legend height to fit the other 2 items?

like image 541
Owen Avatar asked Nov 08 '13 16:11

Owen


1 Answers

Paging is gone only when legend.position is 'top' and give legend.maxLines: legend:{ position:'top',maxLines:4}

https://developers.google.com/chart/interactive/docs/gallery/piechart?csw=1#Configuration_Options

like image 198
Alicia Avatar answered Sep 25 '22 02:09

Alicia