Closed MasterOdin closed 2 years ago
I can reproduce the effect and can look into it
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!
Describe/explain the bug
When passing in a custom multi-line legend to the
ScatterPlotCanvas
, the legend data is not being used properly, causing all ids to appear in each row, causing an overflow. I am using@nivo/scatterplot@0.79.1
.To Reproduce
Using the following legend data:
Getting the following result in my app:
I tried to create a code sandbox for it, but I was getting a blank canvas / react errors consistently.
Expected behavior
Expected behavior would be that the legend only shows
population_1
throughpopulation_8
on the first line, and then the remaining ids on the next row.Desktop (please complete the following information):
Additional context I was having a similar problem in bar charts, but upgrading to
@nivo/bar@0.72.0
fixed it. Looking at the changelog, I think it was this commit https://github.com/plouc/nivo/commit/3f0bb4e205529ff0b7b542931e6515b3c99dd248 that did it?