victory icon indicating copy to clipboard operation
victory copied to clipboard

Setting Axis center to non-zero, custom value

Open socialunicornofficial opened this issue 2 years ago • 0 comments

Questions

I'm working on a Quadrant chart that involves

  1. VictoryAxis(X)
  2. 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 have read through the FAQ and Guides

  • [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 image

End Goal image

socialunicornofficial avatar Jun 18 '22 19:06 socialunicornofficial