Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mplot y axis bounds turns off tooltip #724

Open
xandriaw opened this issue Apr 5, 2017 · 0 comments
Open

mplot y axis bounds turns off tooltip #724

xandriaw opened this issue Apr 5, 2017 · 0 comments

Comments

@xandriaw
Copy link

xandriaw commented Apr 5, 2017

This mplot (morrisjs) works fine within rCharts

df<-data.frame(time=c(1,2,3,4,5,6), values = c(9.4, 9.3, 11, 12, 12.2, 13.1))
m1 <- mPlot(values ~ time,data = df,type = "Line" )

but when I set the Y axis max and min:
m1$set(ymax=14, ymin=8.5)
the hover/tooltip stops working

Do you know if I can get the hover back? I tried m1$set(hideHover="auto") as well as setting the tooltip manually with

m1$set(hoverCallback = "#! function(index, options, content){
  var row = options.data[index]
  return '<b>' + row.time + '</b>' + '<br/>' +
     'value: ' + row.values 
} !#")

but whenever the ymin and ymax are set these don't show up.

How can I set the axis bounds and also have a hover ability?

thanks and I love rCharts!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant