-
Notifications
You must be signed in to change notification settings - Fork 533
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 to d3 4 #141
Comments
If change d3 v3 into v4 on techan.js v0.6.0, it happen 'the uncaught TypeError'. Cannot read property 'linear' of undefined |
@andredumas is there a timeline for this? |
@gajus I haven't looked at what the impact will be, there's a few fundamental 'must have' features I'm getting through first to help increase coverage and ensure this cutover will be smooth. |
Do you need help? |
Yes, @Silviu-Marian, a check list of items would be great! Some code would be awesome 😃 |
Ha. Alright then, I'm looking into it. :) |
I report a minimal analysis about update task. After following Main files and apis involved:
Check also See Changes in D3 4.0 for details. A brief resumen.
Really I didn't apply any change locally. I would like to understand if we may create an approach with incremental steps. As we know, as Argo developer, I am interested to close this issue. :) |
This is awesome thanks @albertosantini! In terms of approach, I'll roughly spike it using your summary to size things up. If it feels large I'll add tasks here or create additional issues and push work to a branch. If any others want to contribute that would be great. Would certainly speed things up. |
Actually made surprisingly good progress on this. Thanks again @albertosantini for the detailed summary. Definitely gave this task the kick start it needed. All examples have been cut over as well. Hopefully not too many issues coming out of this, extensive tests were definitely the hero of the day for this change. |
@andredumas Thanks a lot for the effort. I vote that commit as Tested with Argo and it seems it works nice. Thanks again! |
This is how Hope that helps. |
Update dependency to d3 v4.
Potentially Breaking Changes
Changes were required to support this update:
axisannotations
cannot auto orient themselves asd3.axis
no longer exposesaxis.orient()
. A member has been added so thataxisannotation.orient
exists with the same interface as d3.v3d3.svg.axis
. Defaults tobottom
. Pass stringstop
,bottom
,left
,right
. This may change in future. If either d3 exposes orient, or constructors may be added similar to new axis constructors:axisannotationTop
financetime.zoomable()
returns a persistent instance associated with the financetime. Previously was a new instance per call. To emulate previous functionality callfinancetime.zoomable().copy()
The text was updated successfully, but these errors were encountered: