text-anchor issues with line chart

737 views
Skip to first unread message

James

unread,
Nov 7, 2008, 11:54:44 PM11/7/08
to Google Visualization API
I'm already using the pie chart and I began using the line chart, but
the numbers on the Y axis always get cut off. The culprit is the text-
anchor. When it's changed from "end" to "middle", the numbers jump to
the right and are more visible.

I'm stumped. All my css values are reset, and the other graphs seem to
work fine.

I could use javascript to take these out, but I'd much rather solve
this the right way.


Any ideas?

Arshad

unread,
Nov 8, 2008, 10:15:26 AM11/8/08
to Google Visualization API

HI James,

You can use to here:

google.load("visualization", "1", {packages: ["annotatedtimeline"],
annotationsWidth: 15});


"annotationsWidth: 25" will arragne the size of Time line right
caption text.

Thanks
- arsh

James

unread,
Nov 9, 2008, 6:24:33 PM11/9/08
to Google Visualization API
The same problem occurs for pie charts.

http://code.google.com/apis/visualization/documentation/gallery/piechart.html

The root of the problem is that the length of the annotation doesn't
affect the width, and annotationsWidth doesn't seem to make a
difference either.

So while "foo" would work as an annotation, "fooboodooboo" would be
cut off.
Reply all
Reply to author
Forward
0 new messages