Reputation: 2648
I have a specific chart:
and I would like to remove points and add tooltip to the line, because there is confusion when crossing lines
It seems that this cannot be done using standard library functions. Does anyone know how to add a tooltip for the line?
i try to add event for line:
let line = d3.selectAll(".c3-line")
line.on("mouseover", function(){
console.log('here');
})
to add custom tooltip - but no one event for line not works
Upvotes: 0
Views: 207
Reputation: 6811
You can remove points drastically with:
selectAll('svg circle').remove()
Upvotes: 1