recharts / recharts

Redefined chart library built with React and D3
http://recharts.org
MIT License
24.18k stars 1.72k forks source link

Display a tooltip for the nearest non null value #5288

Open Fefedu973 opened 15 hours ago

Fefedu973 commented 15 hours ago

I want to know if it is possible to implement something, my graph has a lot of null values and the graph render is filling them alone by making a continuous curve, i always want to show a tooltip so it dosen't flicker however i don't want to display the tooltip for the null values but i want to display the tooltip for the nearest non null value. Is it possible ? Thanks !

ckifer commented 12 hours ago

This isn't possible without some customization but you could do it.

Digging for an example...

ckifer commented 12 hours ago

Try starting from here and see what you can do

https://github.com/recharts/recharts/issues/5270#issuecomment-2499639145