Open whyjay17 opened 3 years ago
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
dispatch.on('elementClick'
chart.lines
nv.models.lineChart()
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?
I am trying to make an onClick event using
dispatch.on('elementClick'
onchart.lines
where chart isnv.models.lineChart()
What I did wasWith 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?