Hi Roberto,

I'll add documentation for boxStyle in a few hours, but here's a glimpse:
'annotations': {
      'textStyle': {
        'fontSize': 10,
        'auraColor': 'none'
      },
      'boxStyle': {
        'stroke': '#888888', 'strokeWidth': 0.5,
        'rx': 2, 'ry': 2,
        'gradient': {
          'color1': '#eeeeee',
          'color2': '#dddddd',
          'x1': '0%', 'y1': '0%',
          'x2': '0%', 'y2': '100%',
          'useObjectBoundingBoxUnits': true
        }
     }
}

Jon


On Thu, Jan 30, 2014 at 9:23 AM, Roberto Tremonti <
[email protected]> wrote:

> 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.
>

-- 
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