victory icon indicating copy to clipboard operation
victory copied to clipboard

VictoryLegend not properly rendering with VictoryGroup

Open ricohumme opened this issue 2 years ago • 1 comments

The Problem

Hi,

I trying to implement a horizontal stacked barchart and wanting to add a legend to this to explain the bars. However, due to the nature of these bars, I need them to render without any Axis so I read I should use VictoryGroup instead of VictoryChart. This does in fact render the chart without any axis, but instead renders the legend partially / malformed or not at all.

Reproduction

For this I created a snack with 2 components showcasing this issue. https://snack.expo.dev/@ricohumme/stackedbarchart-example

ricohumme avatar Apr 26 '22 11:04 ricohumme

@ricohumme I was unable to fully render the VictoryLegend component with the VictoryGroup component and I was able to easily reproduce your results. I did figure out an alternative solution to your issue without VictoryGroup though: https://snack.expo.dev/@f13ldd4y/stackedbarchart-example

You may have already solved your problem, but if not, I hope that helps. 😁

Saf3ty1nnumb3rs avatar Jun 04 '22 09:06 Saf3ty1nnumb3rs

This issue is stale because it has been open for 90 days with no activity. If there is no activity in the next 7 days, the issue will be closed.

github-actions[bot] avatar Mar 02 '24 01:03 github-actions[bot]

This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.

github-actions[bot] avatar Mar 09 '24 02:03 github-actions[bot]