When too many legends, the pie chart disappear

35 views
Skip to first unread message

pnguyen17

unread,
Mar 8, 2012, 7:21:00 PM3/8/12
to Google Visualization API
I make a pie chart with 18 entries. I would like the legends displayed
in two rows, so I set the options with the height of the chart to 520
and the chart area 160 as below.

{is3D:true,backgroundColor:'#FFFFFF',fontSize:13,chartArea: {width:
200,height:160},height:520,width:200,legend:'bottom',legendFontSize:
13,legendTextColor:'#000000',tooltipFontSize:10,tooltipHeight:
45,tooltipWidth:100}

However, it gave me unexpected result that the legends displayed in
only one row and take up all the space and the pie chart does not show
up. What could I do to make it correct.

Thanks,
Phong

asgallant

unread,
Mar 9, 2012, 9:57:25 AM3/9/12
to google-visua...@googlegroups.com
First of all, there isn't any method (insofar as I am aware) that will make the legend render as more than 1 row.  Second, I created a PieChart with 18 entries and used your options, and the chart rendered correctly, though it looked odd given the height and width parameters you use.  Can you post your code or a link to the page so I can see what else might be going on here?
Reply all
Reply to author
Forward
0 new messages