-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Update for D3 v4 #2246
Update for D3 v4 #2246
Conversation
👍 |
Codecov Report
@@ Coverage Diff @@
## master #2246 +/- ##
========================================
+ Coverage 75.82% 76.83% +1%
========================================
Files 51 51
Lines 4227 4122 -105
========================================
- Hits 3205 3167 -38
+ Misses 1022 955 -67
Continue to review full report at Codecov.
|
Not to nag, but d3 is on RC3 of v5 now. https://github.com/d3/d3/releases |
d3 v5 doesn't seem to have v4 incompatibility issues. Very much waiting for this to be merged and released! |
Now using this feature branch in a production project because Salesforce Lockerservice breaks with d3v3. Would love to use the actual release version! Thanks. |
@masayuki0812 We are noticing an error when hovering over bars which creates the tooltips.
Have you seen this before or do we need to fix it ourselves by hacking it together for the time being? |
@masayuki0812 After we received the initial error in Sales Force,
We noticed that this problem had to do with I am wondering what your opinion is on this solution and if you can suggest a way we can make it better or solve our problem all together. Since the specific function failing was
This is what the function looks like now,
We are confident that this solves the immediate problem of hovers on bar graphs not showing up, but the concern is what else is being affected due to If you can think of a good way for us to solve this throughout your C3.js PR based on the problem and the way we solved the problem, please let us know. |
@dborstelmann @wuno |
I just updated c3 to work with d3 v4.
Breaking changes I committed:
data.selection.draggable = true
because of new d3 drag behavior. (zoom and data.selection.draggable still work together, but zoomed section cannot be moved by drag.)axis.x.extent
toaxis.x.selection
based on d3.v4 update.zoom.extent
tozoom.initialRange
based on d3.v4 update.api.tooltip.show
interface. (Removedindex
and addedid
to specify target of data)axis.y.tick.time.value
toaxis.y.tick.time.type
and to receive d3 interval functions (e.g.d3.timeSecond
).#2203 and my changes should be the one later.
closes #2143