-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix bar lengths in milliseconds from base #4900
Conversation
|
||
var xEnd = out.style[2]; | ||
expect(xEnd).not.toBe(1580670000000); | ||
expect(xEnd).toBe(1580688000000); |
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.
If you're testing toBe
, what do you gain from testing not.toBe
? 🤔
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.
Just to ensure no one change the test.
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.
Very nice - I like the approach of handling this in set_convert
so it can be extended later to other situations more easily 🎉
💃
Fixes #4558.
demo 1: Gantt chart example
demo 2: before vs after
@plotly/plotly_js