FormidableLabs / FormidableLabs/victory

Setting Axis center to non-zero, custom value

Open
#2,308 0 comments 0 reactions 0 assignees View on GitHub
Issue: Accepted Type: Enhancement :pencil2:
Dominant language
TypeScript
Stars
11.2k
Forks
536
PR merge metrics
No merged PRs in 30d

Description

# 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](https://github.com/FormidableLabs/victory/discussions/new) rather than opening an issue.**

# Bug Reports

### Checklist

- [x] I have read through the [FAQ](https://formidable.com/open-source/victory/docs/faq) and [Guides](https://formidable.com/open-source/victory/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
`

`

**Current Issue**
![image](https://user-images.githubusercontent.com/93905199/174454886-0cef0e43-50de-45d9-b9b4-ab0ea8e7a1e5.png)

**End Goal**
![image](https://user-images.githubusercontent.com/93905199/174454895-9f8b091d-0983-4084-b18e-37375083c527.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.