#6405·recharts

Is it possible to render the tooltip based on the item in a line chart?

Author: avenmiaCreated Oct 1, 2025Updated Sep 9, 2026
Labelspending response

My line chart contains a lot of lines so the default tooltip which shows all the data at a certain point becomes too large. I'm trying to show the tooltip based on the current dot being hovered over, not for all the values at that XAxis. Is this possible?

I looked at the payload for the Tooltip in the LineChart and it gives the array of values for that xAxis value, but I couldn't find anything that helps me distinguish the particular item I'm hovered over.

Instead of this being two values, I want to just show Page D, pv.

Image