Basically, the thing that causes this problem is the increase in
legendFontSize. The reason I increased the font size is because the
legend text is otherwise unreadable.Try removing the legendFontSize
option from the query as well to see what happens. It would be great
if google could make options to better manipulate the legend and chart
separately.
---------------------CODE START---------------------
<html>
<head>
<script type="text/javascript" src="
http://www.google.com/jsapi"></
script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["piechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Task');
data.addColumn('number', 'Hours per Day');
data.addRows(5);
data.setValue(0, 0, 'Work - this is some extra text');
data.setValue(0, 1, 11);
data.setValue(1, 0, 'Eat - this is some extra text');
data.setValue(1, 1, 2);
data.setValue(2, 0, 'Commute - this is some extra text');
data.setValue(2, 1, 2);
data.setValue(3, 0, 'Watch TV - this is some extra text');
data.setValue(3, 1, 2);
data.setValue(4, 0, 'Sleep - this is some extra text');
data.setValue(4, 1, 7);
var chart = new google.visualization.PieChart
(document.getElementById('chart_div'));
chart.draw(data, {width: 400, height: 240, is3D: true, title:
'My Daily Activities',
legendFontSize:12});
}
</script>
</head>
<body>
<div id="chart_div"></div>
</body>
</html>
---------------------CODE END---------------------
Hope this helps
Thanks Again
the_lorax
>
On Aug 31, 9:56 pm, MC Get Vizzy <
getvi...@google.com> wrote:
> I haven't been able to reproduce this. could you send a code snippet or a
> link to a live example?
>
> On Mon, Aug 31, 2009 at 10:58 AM, the_lorax <
simeon.wisl...@gmail.com>wrote:
>
>
>
>
>
> > I'm using the pie chart from from here
>
> >
http://code.google.com/apis/visualization/documentation/gallery/piech...
>
> > Here is any example of what happens, hope it helps:
>
> > [URL=
http://www.picturepush.com/public/2196460][IMG]http://<
http://www.picturepush.com/public/2196460%5D%5BIMG%5Dhttp://>
> >
www2.picturepush.com/photo/a/2196460/220/2196460.png[/IMG][/URL]<
http://www2.picturepush.com/photo/a/2196460/220/2196460.png%5B/IMG%5D...>