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

Fixed Axis length (axis domain?) #469

Closed
johanneseckert opened this issue Feb 23, 2019 · 2 comments
Closed

Fixed Axis length (axis domain?) #469

johanneseckert opened this issue Feb 23, 2019 · 2 comments

Comments

@johanneseckert
Copy link

johanneseckert commented Feb 23, 2019

I am looking for a way to keep data comparable when the dataset changes. I need to have axis be fixed, i.e. always span from 0—100 so when data enters and leaves, the axis should not scale to the data provided.

I tried tickValues and tickCount, but both don't have the desired result. I think in D3 world that's domain?

@johanneseckert
Copy link
Author

kapture 2019-02-23 at 13 14 36

in case it wasn't clear, ☝️ this is not what I want. I need the vertical axis to be fixed.

@johanneseckert johanneseckert changed the title Fixed Axis length Fixed Axis length (axis domain?) Feb 23, 2019
@plouc
Copy link
Owner

plouc commented Mar 5, 2019

@johanneseckert, you can set a static max value, if defined, the max value won't be computed automatically and the axis size will remain constant. You can test it on the website:

component props

demo ui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants