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 allowed

However 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 [email protected].
To post to this group, send email to [email protected].
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.

Reply via email to