Change in Google Visualization API Version 1

21 views
Skip to first unread message

Luis Gomez

unread,
Dec 12, 2011, 10:41:39 AM12/12/11
to Google Visualization API
Hello.
I´m new on Group. I would like to ask if there was any change on
Version 1 of the Visualization API. I still use this version and look
like the char behavior change. Am i right?

Thanks a lot

Roni Biran

unread,
Dec 12, 2011, 11:14:56 AM12/12/11
to google-visua...@googlegroups.com
Hi and welcome,

The visualization API has two versions: 1 for production and 1.1 for development. Every new version pushed to production is marked as version 1

Best of luck 


--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.

asgallant

unread,
Dec 12, 2011, 11:19:59 AM12/12/11
to google-visua...@googlegroups.com
Version control with the viz API is (unfortunately) lacking.  There are only two versions at any one time: 1 (release) and 1.1 (developmental).  Approximately once per month, the dev team releases an RC to 1.1 and then pushes it into 1 ~2 weeks later.  The upside is that you always have the most recent version running; the downside is that if new features/bug fixes break your code, you can't roll back to a previous version.

Long story short - yes, the chart behavior likely has changed since you first built your charts.

Luis Gomez

unread,
Dec 12, 2011, 12:40:29 PM12/12/11
to Google Visualization API
Thanks a lot for the quick answer. I ddin´t know that rule, but never
is too late to learn.

Just only other question that i´m sure you all can help me.

I have this code:

http://pastebin.com/bW6zjU5m

but because "No escolarizados" is too low in percent (%), only 0,04%,
the value doesn´t appear on the chat. Is the correct behabior, or my
code is wrong?

Thanks a lot.

asgallant

unread,
Dec 12, 2011, 12:54:43 PM12/12/11
to google-visua...@googlegroups.com
Your code is fine - by default, the Pie charts don't draw any slices that are smaller than 1/2 degree arc.  You can try changing the sliceVisibilityThreshold option to something like 1/2160 (1/6 degree arc), which would theoretically allow your slice to draw, though it is quite possible that the slice would be narrower than a single pixel.  You could also artificially inflate the size of your "No escolarizados" value and set the formatted value to the true value; something like this:

data.setValue(0,0,'No Escolarizado');
data.setValue(0,1,30);
data.setFormattedValue(0, 1, '3');

should make the slice big enough to draw, and the tooltip will show the correct value.
Reply all
Reply to author
Forward
0 new messages