Combining style, interval and certainty in Google Charts

57 views
Skip to first unread message

David Hyde

unread,
Oct 16, 2020, 11:40:15 AM10/16/20
to Google Visualization API

Hi. Have a look at https://jsfiddle.net/DavidHyde/fkuonb5s/. This is based on an example from the Google Charts documentation along with the code that I'm running. I didn't write the code and am not a Charts expert by any means, so don't understand all the code yet, but I'm getting to grips with the data definition format.

Anyway, I'm having trouble combining the style, interval and certainty roles. It seems that I can apply any one, but when I have two or more, only the first is applied.

Specifying "certainty" gives this:


Applying "style" gives this:


and this is just "interval"


What I really want to do is apply the certainty role for the hatching, and the interval role for the horizontal bar.

Can anyone help? Thanks

Daniel LaLiberte

unread,
Oct 16, 2020, 3:34:34 PM10/16/20
to Google Visualization API
Hi David,

Your chart works fine if you include all your data columns in the DataView columns.   Here it is with the necessary change:   https://jsfiddle.net/dlaliberte/cvu3t7se/6/

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/4c6a6c86-b822-4757-8b0a-01f7bb4e59b1n%40googlegroups.com.


--

Daniel LaLiberte

unread,
Oct 16, 2020, 3:38:45 PM10/16/20
to Google Visualization API
The 'annotationText' seems to not be working, however.  Maybe this particular way of rendering the annotation interferes with showing the annotationText (which is like a tooltip for the annotation). Changing it to 'tooltip' at least shows that the text is in the data.

David Hyde

unread,
Oct 19, 2020, 5:37:34 AM10/19/20
to Google Visualization API
Many thanks - I will apply your suggestions in my production code and see how it goes.
Reply all
Reply to author
Forward
0 new messages