Lola
Lola

Reputation: 2648

C3.js: Tooltip on line beetwen points

I have a specific chart:

enter image description here

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

Answers (1)

Wandrille
Wandrille

Reputation: 6811

You can remove points drastically with:

selectAll('svg circle').remove()

Upvotes: 1

Related Questions