Hi guys,
I'm trying to find a way to change font and tick color/opacity for 
annotations in a area chart.
I can't find any options in documentation.
At the moment I change style using a JS function on chart redraw.

function cleanStyle () {
 var rectTags = document.getElementsByTagName("rect");
 for (var i = 0; i < rectTags.length; i++) {

if (
 rectTags[i].hasAttribute("width") &&
parseInt(rectTags[i].getAttribute("width")) == 1
 ) {

rectTags[i].setAttribute("fill", "white");
rectTags[i].setAttribute("opacity", 0.5);
 }
}
 var textTags = document.getElementsByTagName("text");
 for (var i = 0; i < textTags.length; i++) {

textTags[i].setAttribute("font-family", "HelveticaNeue-Light");
 }
 }

It's rough but it works, as my only rect and text elements are related to 
annotations.

Release notes for latest version of Jan 
29th<https://developers.google.com/chart/interactive/docs/release_notes>talk 
about "A set of boxStyle options for annotations." but I can't find 
them in documentation.

Thanks for your help.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to