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

feat: allow displaying grid for y and row channels #377

Merged
merged 5 commits into from
May 4, 2021

Conversation

sehilyi
Copy link
Member

@sehilyi sehilyi commented May 3, 2021

This PR adds support for displaying grid lines for y-axis and row.

Usage:

{ y: "value", type: "quantitative", grid: true}, 
{ row: "category", type: "nominal", grid: true}

Customization:

theme: { base: "light", axis: { gridColor: "lightgray", gridStrokeWidth: 2 } }

Screenshots:
Screen Shot 2021-05-03 at 7 23 39 PM

Screen Shot 2021-05-04 at 11 33 10 AM

Screen Shot 2021-05-04 at 11 31 17 AM

Fix #29
Discussion #373 (comment)

@sehilyi
Copy link
Member Author

sehilyi commented May 4, 2021

@wangqianwen0418, I added grids as well. Can you take a look if they look okay?

@wangqianwen0418
Copy link
Member

@sehilyi , it looks great!

Just have one small suggestion, do you think we should add an outline to the circular view? The outline will make the circular view consistent with the linear view. Also, the y axis will not pop out in the circular view.

image

@sehilyi
Copy link
Member Author

sehilyi commented May 4, 2021

Thank you for the suggestion! Yes, I think we should show the outline. It will make the boundaries between tracks more visually clear. I will open a separate PR to support that!

@sehilyi sehilyi merged commit fd6e181 into master May 4, 2021
@sehilyi sehilyi deleted the sehilyi/editor-bug-fix branch May 4, 2021 18:38
@sehilyi sehilyi changed the title feat: show grid for quantitative y axis feat: allow displaying grid for y and row channels May 4, 2021
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.

Support grids
2 participants