Custom chart help with VictoryStack #2262
Unanswered
andrew-silvernail
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am somewhat new to React using a custom Victory chart in an existing project.
The basic setup is:
My issue is the
pre_initialized_components_toggled_on_and_off
components do not fill up all of the available space in the custom chart. These consist of an array ofVictoryGroup
s that wrapVictoryScatter
s andVictoryLine
s, where all of the scatter points and lines have generatedy
values. Looking over the docsVictoryStack
sounded like it would help.So now I have
which breaks the chart. Specifically some of my
VictoryScatter
points within theVictoryGroup
s get cloned (which I hear is whatVictoryStack
needs to do internally for re-scaling), and my flatVictoryLine
s get messed up as well.I've attempted to recreate the problem in codesandbox.io. My example doesn't have quite the same behavior but it does "unflatten" my lines. I've added a few buttons to my example to demonstrate this behavior.
My question: is this setup supported to begin with? Is there a better way to solve my problem without using
VictoryStack
?Beta Was this translation helpful? Give feedback.
All reactions