You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may be a bug related to #4067 , but I haven't combed through the source code to confirm.
I am creating a custom tooltip for a line chart to display in the format "Date: percentage". When I use the default tooltip x and y properties, the date formats correctly. When I use the tooltip: custom property, the date being used isn't part of my initial dataset. (There are 11 items in the w.globals.labels array when I only passed in four items to the series.)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This may be a bug related to #4067 , but I haven't combed through the source code to confirm.
I am creating a custom tooltip for a line chart to display in the format "Date: percentage". When I use the default tooltip x and y properties, the date formats correctly. When I use the tooltip: custom property, the date being used isn't part of my initial dataset. (There are 11 items in the
w.globals.labels
array when I only passed in four items to the series.)Code Sandbox: https://codesandbox.io/p/sandbox/react-basic-example-forked-vt6tkg
Date shown here should be 7/22/2024


Incorrect:
Correct:
Does anyone have any suggestions to fix this?
(edited to update sandbox link)
Beta Was this translation helpful? Give feedback.
All reactions