-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(heatmap): better handling of NaN values
When a NaN value is included in heatmap data, no errors appear but two warnings are raised: * The prop `node.color` is marked as required in `HeatMapCellTooltip`, but its value is `undefined`. * Received NaN for the `children` attribute. If this is expected, cast the value to a string. This commit addresses both of these, and adds a `nanColor` prop to `HeatMap` to allow specifying the color used for a cell that is NaN (defaults to #000000).
- Loading branch information
1 parent
efbda0f
commit 02ef557
Showing
3 changed files
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters