victory
victory copied to clipboard
Setting Axis center to non-zero, custom value
Questions
I'm working on a Quadrant chart that involves
- VictoryAxis(X)
- VictoryAxis(dependentAxis Y )
I'm trying to set my axis center to 100, 100 instead of 0,0
For discussions about features or questions about how to use Victory, please start a new discussion rather than opening an issue.
Bug Reports
Checklist
-
[x] I am using the latest version of Victory
-
[x] I've searched open issues to make sure I'm not opening a duplicate issue
The Problem
I'm not able to shift the center to 100, 100 instead of 0,0. I'm attaching the expected result v/s the one that's getting generated
On the left side of the graph, X-axis should start from 100 (at center) and go to 90 Similarly on Y-axis, bottom side, center should start from 100 and end at 90
Reproduction
` <VictoryChart> <VictoryAxis tickValues={[-90, 100, 110]} domain={{x : [-90, 110]}}
/> <VictoryAxis dependentAxis tickValues={[-90, 100, 110]} domain={{y : [-90, 110]}} /> </VictoryChart> `
Current Issue
End Goal