Open nogaini opened 4 months ago
Try using GraphingTooltip
instead of CustomToolTip
@Manas1820 The point is to use a custom tooltip for displaying stuff not currently possible with GraphingTooltip
. :)
In this regard, passing the "formatter" parameter of GraphingTooltip would be amazing.
E.g., using formatter="{(value) => value && value.toLocaleString()}"
or formatter="new Intl.NumberFormat('de-DE').format(value)"
I've tried both to no avail.
I have a
CustomTooltip
local component stored inassets/customtooltip.js
. How can I include this tooltip inside a recharts component?I tried this:
But this gives me the error: