react-trend v1.2.2 Release Notes
Release Date: 2017-03-10 // about 7 years ago-
โ Add support for same-value lines
๐ Fixes a bug where same-value datasets (eg.
[0, 0, 0, 0, 0]
) would crash.๐ The fix assumes that if all values are the same, the line will run along the bottom of the available space. This is not an ideal fix for all cases; a future version will allow for greater customization. See the discussion in #9 for more information.
Special thanks to @Mattasher for discovering this bug!