I'm having an issue with a google BarChart. Some of the smaller bars are
not large enough to fit the entire annotation so it overflows out of the
bar. This is fine, except on bars where the annotation is white, which
makes it impossible to see the rest of the annotation against a white
background.
I color the bars either red or green. The red ones automatically have
black annotations and the green ones automatically have white annotations.
I've tried adding the following to my options
annotations: {
textStyle: {
color: '#000000', // does not work
bold: true, // works
italics: true, // works
}
},
That didn't change the color of the annotations. However bold: true or
italics: true would alter the annotations style.
I'm generating a BarChart with the following example data:
{
"data": [
[
"Symbol",
"Performance",
{
"role": "style"
},
{
"role": "annotation"
}
],
[
"ABM",
15.92,
"#9CEB7C",
"ABM (15.92%)"
],
[
"AAPL",
4.3,
"#9CEB7C",
"AAPL (4.30%)"
],
[
"SPX",
1.2,
"#9CEB7C",
"SPX (1.20%)"
],
[
"DWA6040",
0.41,
"#9CEB7C",
"DWA6040 (0.41%)"
],
[
"SPXEWI",
-0.2,
"#F57676",
"SPXEWI (-0.20%)"
],
[
"HSII",
-13.67,
"#F57676",
"HSII (-13.67%)"
]
],
}
You'll notice that SPXEWI has a red style and is only -0.2. That creates a
bar that isn't able to fit the entire annotation and since the annotation
is white, it is blends in with the background.
How can I force all the annotations to be a certain color?
--
You received this message because you are subscribed to the Google Groups
"Google Chart 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-chart-api.
For more options, visit https://groups.google.com/d/optout.