-
Notifications
You must be signed in to change notification settings - Fork 592
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
Facet generates customized grid #1367
Conversation
|
||
// it might have more to be included here. | ||
['grid'].forEach(function(group) { | ||
const value = properties[group] ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure about if there's more properties need to be added here so I leave here as a list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. I would examine properties of 'axis', 'labels', 'title', 'ticks', 'majorTicks', 'minorTicks'
and see if they have similar problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried and grid
is only the special rule here. Should I remove the list and only leave grid here or keep it as a list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's leave it as is. Currently innerAxis is only for grid, but we can support others in the future.
(That's beyond scope of this PR.)
The problem of this bug before the change in axis.ts, the vega-lite spec will generate this vega-spec
And not it will look like:
The difference is from |
Hmm actually it works for the old version of axis properties but not the new version. It cannot parse |
It was my mistake and it works for new version of axis properties, too. The spec below using the new axis properties will generate the same output as above.
|
Haven't got a chance to look deeply, but could you add unit test first? |
Unit test is added. |
Fix the second part of #1237.
Now the spec below generate the right output.