Labeled Legend for Negative Value in Area Chart in wrong position

16 views
Skip to first unread message

Cheryl Evans

unread,
Apr 3, 2018, 12:59:19 PM4/3/18
to Google Visualization API
https://jsfiddle.net/obd6rj7g/

My area chart has a negative value for one of the items.  When I use the Labeled position option for Legend, it does not align next to the negative value (see "Group 5" in my chart).  I assume this is an issue with Google charts.  Any ideas for getting the Group 5 legend to align next to the proper spot (the red area) on the chart?

Thanks!

Daniel LaLiberte

unread,
Apr 3, 2018, 1:19:47 PM4/3/18
to Google Visualization API
Thanks for posting.  Definitely looks like a bug, though it is not specifically about negative values.  The only way I can get things to line up is to add something like viewWindow: { min: -6 } to the vAxis options.  No idea why.

--
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/2cb92de1-1063-49f9-a34e-aaec4a55c829%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Cheryl Evans

unread,
Apr 3, 2018, 1:58:56 PM4/3/18
to Google Visualization API
Thank you for your help!   Solved my problem.  You rock!
Reply all
Reply to author
Forward
0 new messages