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

fix(grid): link vertical grid to ticks on the x axis #478

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

fix(grid): link vertical grid to ticks on the x axis #478

wants to merge 1 commit into from

Conversation

zanona
Copy link

@zanona zanona commented Jun 16, 2020

At the moment <Grid direction={Grid.Direction.VERTICAL}/> doesn't render anything as it's referring to the points on the Y axis.
This change, updates both Horizontal and Vertical components so the ticks are related to their respective axis, and, at the same time, honours the numberOfTicks property by limiting it to ticks.length

@zanona zanona changed the base branch from master to dev June 16, 2020 15:46
At the moment `<Grid direction={Grid.Direction.VERTICAL}/>` doesn't render anything as it's referring to the points on the Y axis.
This change, updates both `Horizontal` and `Vertical` components so the ticks are based on their axis, but at the same time, respect the `numberOfTicks` property by limiting it to `ticks.length`
Copy link
Owner

@JesperLekland JesperLekland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I just need to test it before merging 👍

@mvanroon
Copy link

mvanroon commented Feb 16, 2021

ping @zanona @JesperLekland

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

Successfully merging this pull request may close these issues.

3 participants