Annotation style line color

906 views
Skip to first unread message

Luke Mauldin

unread,
Nov 13, 2015, 10:45:08 AM11/13/15
to Google Visualization API
I have a line chart similar to: http://jsfiddle.net/NC37X/  I am using annotations: {style: line} to add data points.  I want to change the color of the 'Foo' and 'Bar' vertical annotation lines.  I can set annotations.textStyle.color and that changes the color of the label but I also want to change the color of the vertical line.  

Can someone please help me out?

Luke

Daniel LaLiberte

unread,
Nov 13, 2015, 11:27:22 AM11/13/15
to Google Visualization API
Hi Luke,

The annotations.stem.color option should affect the line color, but we appear to have some limitations in that regard that we will have to work on.

--
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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/5f6add30-46aa-4c28-82e3-ae6d91c45023%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA

Daniel LaLiberte

unread,
Nov 13, 2015, 11:31:59 AM11/13/15
to Google Visualization API
Actually, there is an annotations.stemColor option that does affect your line style annotations.  This is the old name, which will continue to work, though it is not in the documentation.

Luke Mauldin

unread,
Nov 16, 2015, 8:58:09 AM11/16/15
to Google Visualization API
Settings annotations.stemColor worked to change the line.  Is there a better way to set this or should I continue to use this option?  Also, sometimes when I hover over the annotation line text, the text disappears and only reappears if I reload the graph.


On Friday, November 13, 2015 at 10:31:59 AM UTC-6, Daniel LaLiberte wrote:
Actually, there is an annotations.stemColor option that does affect your line style annotations.  This is the old name, which will continue to work, though it is not in the documentation.
On Fri, Nov 13, 2015 at 11:27 AM, Daniel LaLiberte <dlali...@google.com> wrote:
Hi Luke,

The annotations.stem.color option should affect the line color, but we appear to have some limitations in that regard that we will have to work on.
On Fri, Nov 13, 2015 at 10:45 AM, Luke Mauldin <lukem...@gmail.com> wrote:
I have a line chart similar to: http://jsfiddle.net/NC37X/  I am using annotations: {style: line} to add data points.  I want to change the color of the 'Foo' and 'Bar' vertical annotation lines.  I can set annotations.textStyle.color and that changes the color of the label but I also want to change the color of the vertical line.  

Can someone please help me out?

Luke

--
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 google-visualization-api+unsub...@googlegroups.com.



--
dlali...@Google.com   5CC, Cambridge MA
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton MA



--
dlali...@Google.com   5CC, Cambridge MA
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton MA

Daniel LaLiberte

unread,
Nov 16, 2015, 9:07:08 AM11/16/15
to Google Visualization API
Right now, there is no better alternative.

The disappearing annotation text is interesting.  We'll have to investigate.  Let us know if you find a pattern. 

On Mon, Nov 16, 2015 at 8:58 AM, Luke Mauldin <lukem...@gmail.com> wrote:
Settings annotations.stemColor worked to change the line.  Is there a better way to set this or should I continue to use this option?  Also, sometimes when I hover over the annotation line text, the text disappears and only reappears if I reload the graph.

On Friday, November 13, 2015 at 10:31:59 AM UTC-6, Daniel LaLiberte wrote:
Actually, there is an annotations.stemColor option that does affect your line style annotations.  This is the old name, which will continue to work, though it is not in the documentation.
On Fri, Nov 13, 2015 at 11:27 AM, Daniel LaLiberte <dlali...@google.com> wrote:
Hi Luke,

The annotations.stem.color option should affect the line color, but we appear to have some limitations in that regard that we will have to work on.
On Fri, Nov 13, 2015 at 10:45 AM, Luke Mauldin <lukem...@gmail.com> wrote:
I have a line chart similar to: http://jsfiddle.net/NC37X/  I am using annotations: {style: line} to add data points.  I want to change the color of the 'Foo' and 'Bar' vertical annotation lines.  I can set annotations.textStyle.color and that changes the color of the label but I also want to change the color of the vertical line.  

Can someone please help me out?

Luke

--
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 google-visualizati...@googlegroups.com.
--
dlali...@Google.com   5CC, Cambridge MA
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton MA



--
dlali...@Google.com   5CC, Cambridge MA
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton MA

--
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 google-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.

For more options, visit https://groups.google.com/d/optout.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA
Reply all
Reply to author
Forward
0 new messages