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.
Thanks for your help.