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

GridColumn line styling based on the tick value #728

Closed
jithureddy opened this issue May 27, 2020 · 1 comment · Fixed by #787
Closed

GridColumn line styling based on the tick value #728

jithureddy opened this issue May 27, 2020 · 1 comment · Fixed by #787

Comments

@jithureddy
Copy link

I have a requirement to style the grid column line based on the tick value, for example Year line should be in red color or Quarter line in blue color. I would have done it easily if vx-grid supports render props mechanism as vx-axis

Do we have a way currently to style a particular line conditionally

@williaster
Copy link
Collaborator

hey @jithureddy 👋 , thanks for checking out vx. currently this is not possible to do in @vx/grid, but I agree it would be a great feature.

we do support something similar in @vx/axis, where you can specify tick label props per tick, so I imagine a similar function in GridColumns and GridRows would be straight forward.

happy to review a PR!

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

Successfully merging a pull request may close this issue.

2 participants