Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previously charts with no data would render as an empty white block, which errored on hover. I've changed it to show n message instead:
![Screenshot 2025-02-13 134413](https://private-user-images.githubusercontent.com/81572860/412912152-ecd9e1e7-65d9-46ad-82fa-9a6114e53c9b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3MDI0NTIsIm5iZiI6MTczOTcwMjE1MiwicGF0aCI6Ii84MTU3Mjg2MC80MTI5MTIxNTItZWNkOWUxZTctNjVkOS00NmFkLTgyZmEtOWE2MTE0ZTUzYzliLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDEwMzU1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZlMGJlNjNiYjkwOTZlZWM0NWY1YTJlZWZkZmQ2YWVkZTY4NGNjMzRiOWJhYjc5ZjkxYjhmMzk2MDk5MDQ2NzcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.aU4tH2dhF_CS6Vfkns8z9SzYFurA6W1WBBDmJpTYwXQ)
The change to
CustomTooltip
, which was where the original error was, probably isn't necessary as after I added it I changed it so it doesn't try to render empty charts, but I thought I might as well leave it in just in case there are other circumstances in whichpayload
can be undefined.