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

Render HoverDetail for only one series #587

Open
andrewcsmith opened this issue Aug 18, 2017 · 0 comments
Open

Render HoverDetail for only one series #587

andrewcsmith opened this issue Aug 18, 2017 · 0 comments

Comments

@andrewcsmith
Copy link

I have an extra renderer for different data series that I would like to be purely cosmetic (a best-fit line), and so I would like for the HoverDetail to show up on only a single series. Here's the (non-working) code that I have:

class Hover extends Rickshaw.Graph.HoverDetail {
  constructor(args) {
    args.graph.series.forEach((s) => {
      if (s.renderer != 'rubricplot') {
        s.disabled = true
      }
    })
    super(args)
  }
}

This results in no hover tooltip at all. If I use the basic Rickshaw.Graph.HoverDetail instead of my Hover subclass, it will try to give the details at the (purely cosmetic) endpoints of the best-fit line as well as the actual datapoints. How would you suggest that I fix this? Thank you.

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