--
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/0cf52e42-b084-465c-8560-21eeaf29582b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I'm not clear what your code is doing, but as the error message says, only one column of tooltips per series is allowed. What it doesn't say there (but in docs I believe it does) is that the tooltip column needs to follow the series column that it corresponds to. So if you have a domain column and two series each with their own tooltips, then the order of columns should be domain, series1, tooltips1, series2, tooltips2. Try that and report again if that is not working.
On Sat, Jun 24, 2017 at 4:13 PM, Paul Maural <maura...@gmail.com> wrote:
Hi,It looks like it isnt so straightforward in GoogleVis to put custom tooltip for individual y variables if your line plot contains multiple y variables.Take this example :df <- data.frame(year=1:11,pop=1:11, qoq=11:21,pop.html.tooltip=letters[1:11], qoq.html.tooltip=letters[11:21]);plot(gvisComboChart(df, xvar = "year", yvar = c('pop', 'qoq', 'pop.html.tooltip', 'qoq.html.tooltip'), options = list(seriesType="lines", tooltip = '{isHtml: true}')))I got below error message :Only one column with role 'tooltip' per series is allowedHowever below code works fine when I remove the variable ''qoq.html.tooltip''df <- data.frame(year=1:11,pop=1:11, qoq=11:21,pop.html.tooltip=letters[1:11], qoq.html.tooltip=letters[11:21]);plot(gvisComboChart(df, xvar = "year", yvar = c('pop', 'qoq', 'pop.html.tooltip'), options = list(seriesType="lines", tooltip = '{isHtml: true}')))However in this case, I am unable to assign custom tooltip for variable 'qoq' unlike 'pop'Can someone help me how can I give custom tooltip for both 'pop' and 'qoq'
--
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+unsubscr...@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/0cf52e42-b084-465c-8560-21eeaf29582b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/kGNBlVpCVzk/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAOtcSJMe9Awhb0hHGfawsmdS-2b7DPvrAW6MAPzX8w12Aa_Sig%40mail.gmail.com.