Both line and point annotation types in a single chart

23 views
Skip to first unread message

jovistruck

unread,
Dec 7, 2016, 7:32:58 PM12/7/16
to Google Visualization API
I want to plot some data points with annotation style 'point' and one with 'line', how do I do that?

Currently I use 
annotations: {
style: 'point'
}

Can I modify my view selectively?. 
view.setColumns([0,
1, {
calc: "stringify",
sourceColumn: 1,
type: "string",
role: "annotation"
},
2, {
calc: "stringify",
sourceColumn: 2,
type: "string",
role: "annotation"
},
3, {
calc: "stringify",
sourceColumn: 3,
type: "string",
role: "annotation"
},
4, {
calc: "stringify",
sourceColumn: 4,
type: "string",
role: "annotation"
},
5, {
calc: "stringify",
sourceColumn: 5,
type: "string",
role: "annotation"
},
6, {
calc: "stringify",
type: "string",
role: "annotation"
}
]);

Column 6 is an annotation column
{ role: 'annotation'}

thanks!
jovi

Daniel LaLiberte

unread,
Dec 12, 2016, 11:22:11 AM12/12/16
to Google Visualization API
Hi Jovi,

Sorry, but we don't have per-series annotation options, though that is a very reasonable request, and might not be difficult to add.  No promises when we could get to it, however.

--
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.
To post to this group, send email to google-visualization-api@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/b0c0c3ce-efcd-4678-b21a-8a0a8646f4ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages