react-trend v1.2.2 Release NotesRelease Date: 2017-03-10 // almost 3 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!