You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can we show additional variables in tooltips?
Say I have a dataframe with x,y and z.
df <- data.frame(x=c(4,5,6,3),y=c(2,4,3,2),z=c("A","A","A","B"))
x and y are on x and y axis respectively. z is not used in anyway for plotting. Not even as grouping variable. How do I show z variable in the tooltip?
The text was updated successfully, but these errors were encountered:
This package is a really straight forward wrapper for highcharts. So we need to construct the data as highcharts need. So it is really useful if you study the api via examples. In particular lets see http://www.highcharts.com/demo/bubble, and click View options then look how is the data and you'll see:
To add this type of data to highcarts via highcarter we need to parse the data frame using list.parse (basically put a dataframe in a list form) function from rlist package (I change the z name colum because if the type of chart is bubble this value will be used to get the bubble's size:
How can we show additional variables in tooltips?
Say I have a dataframe with x,y and z.
df <- data.frame(x=c(4,5,6,3),y=c(2,4,3,2),z=c("A","A","A","B"))
x and y are on x and y axis respectively. z is not used in anyway for plotting. Not even as grouping variable. How do I show z variable in the tooltip?
The text was updated successfully, but these errors were encountered: