-
Notifications
You must be signed in to change notification settings - Fork 611
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 bug tick orient inverted #1348
Conversation
@@ -42,7 +42,12 @@ describe('Mark: Bar', function() { | |||
"y": {"bin": true, "type": "quantitative", "field": "IMDB_Rating"}, | |||
"x": {"scale": {"type": 'log'}, "type": "quantitative", "field": 'US_Gross', "aggregate": "mean"} | |||
}, | |||
"data": {"url": 'data/movies.json'} | |||
"data": {"url": 'data/movies.json'}, |
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.
You're fixing default behavior in config.ts
, but here modify the test to no longer test the default behavior. The correct fix is to fix the asserts below.
Can you provide a screenshot as well? |
Fix the test. |
assert.deepEqual(props.x2, {scale: 'x', value: 0}); | ||
}); | ||
|
||
it('should have no width', function(){ |
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.
should have no height too? Why did you just remove it?
reset the default orient for tick along with tests |
Fix #1347
Bug is the default orient should be vertical, instead of horizontal.
Now this spec will give the following output correctly.