-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Coordinate mixin cleanup - xUnits #1410
Conversation
…rearranged the code to make it more explicit about what it does.
I also checked my notes from the days and I realized in case of non ordinal charts, having the 3rd parameter present causes test failure. In D3v3 code |
I was always confused by However, if d3v4 is forcing us to change our API for one of the more confusing corners of dc.js, that's kind of a big deal and we need to document it. In particular it means that a user can't pass their own function that acts like What tests fail using the third argument? I bet we were misusing it and d3 got stricter about it. |
Actually I think this change means that |
Alright I'm off to do weekend things. Good work! :) |
I agree that We should document it, in upgrade guide as well as in documentation for xUnits (I will do that now) |
- geoChart | ||
- Color scheme | ||
- tension in curves | ||
|
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 documenting all of these in Changelog.md, and also in the API documentation. We could do a D3-style CHANGES summary as well
Okay, I have now over-documented this, made the function throw, tested the throw, etc. Hopefully people will notice somehow. |
Thanks @kum-deepak, merged for 3.0 alpha 9 |
I really think it can not be documented more :) |
This function took one of my longest time while I was working on the D3 v4 to comprehend about how it is working. Then I realized the code makes big distinction on whether Ordinal or Continuous scale is in use. This prompted me to make the logic explicit that what this function does in each case.
In this PR I have rearranged the code to make it more explicit about what it does.