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

Is it possible to select a single line in a nv.models.lineChart()? #2225

Open
whyjay17 opened this issue Nov 25, 2020 · 0 comments
Open

Is it possible to select a single line in a nv.models.lineChart()? #2225

whyjay17 opened this issue Nov 25, 2020 · 0 comments

Comments

@whyjay17
Copy link

I am trying to make an onClick event using dispatch.on('elementClick' on chart.lines where chart is nv.models.lineChart()
What I did was

chart.lines.dispatch.on('elementClick', (e) => {
   console.log(e)
})

With this, when I clicked on a single line on a line chart that has multiple series (legends), it returns the information of all lines instead of the selected one. Is there a way to make this work only for the line that I selected?

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