Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting Axis center to non-zero, custom value #2308

Open
3 tasks done
socialunicornofficial opened this issue Jun 18, 2022 · 0 comments
Open
3 tasks done

Setting Axis center to non-zero, custom value #2308

socialunicornofficial opened this issue Jun 18, 2022 · 0 comments
Labels
Issue: Accepted The submitted issue has been confirmed by the Victory core team Type: Enhancement ✏️ An enhancement or feature proposal that will be addressed after the next release

Comments

@socialunicornofficial
Copy link

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

  • I have read through the FAQ and Guides

  • I am using the latest version of Victory

  • 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

`

<VictoryAxis
tickValues={[-90, 100, 110]}
domain={{x : [-90, 110]}}

/>
<VictoryAxis
dependentAxis
tickValues={[-90, 100, 110]}
domain={{y : [-90, 110]}}
/>

`

Current Issue
image

End Goal
image

@carbonrobot carbonrobot added Type: Enhancement ✏️ An enhancement or feature proposal that will be addressed after the next release Issue: Accepted The submitted issue has been confirmed by the Victory core team labels Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Accepted The submitted issue has been confirmed by the Victory core team Type: Enhancement ✏️ An enhancement or feature proposal that will be addressed after the next release
Projects
None yet
Development

No branches or pull requests

2 participants