You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Nivo Legends, I am trying to specify which data I want to use in the legend by using the data prop, however it cannot be overridden. I have troubleshooted this issue fairly extensively and am sure that it is an issue with the data override, as the data I am passing is valid.
Hi @sofo1413. I don't follow the technical details here, but the keywords (scatterplot, legend, data override) overlap with another issue #1962 and a tentative PR #2016. Does the PR address your question? Thanks
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!
When using Nivo Legends, I am trying to specify which data I want to use in the legend by using the data prop, however it cannot be overridden. I have troubleshooted this issue fairly extensively and am sure that it is an issue with the data override, as the data I am passing is valid.
const beginningData = scatterPlotData
.slice(0, Math.floor(scatterPlotData.length / 2));
const endingData = scatterPlotData
.slice(Math.floor(scatterPlotData.length / 2));
legends={
scatterPlotData && scatterPlotData.length <= 6
? [
{
...legendProps,
translateX: -225,
symbolSize: 18,
itemsSpacing: 0,
},
]
: [
{
data: beginningData,
...legendProps,
symbolSize: 10,
itemsSpacing: 0,
translateX: -250,
},
{
data: endingData[1],
...legendProps,
symbolSize: 10,
itemsSpacing: 0,
translateX: 70,
},
]
}
The text was updated successfully, but these errors were encountered: