-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
[SIP-5] Refactor sankey #5701
[SIP-5] Refactor sankey #5701
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5701 +/- ##
==========================================
- Coverage 63.45% 63.44% -0.02%
==========================================
Files 361 361
Lines 22972 22976 +4
Branches 2557 2557
==========================================
Hits 14576 14576
- Misses 8381 8385 +4
Partials 15 15
Continue to review full report at Codecov.
|
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.
nice lgtm!
|
||
div.selectAll('*').remove(); | ||
const svg = div.append('svg') | ||
.attr('width', width + margin.left + margin.right) | ||
.attr('height', height + margin.top + margin.bottom) | ||
.attr('width', innerWidth + margin.left + margin.right) |
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.
could potentially just use width
/height
here but nbd
* extract slice and formdata from sankey * use arrow function * reorganize imports (cherry picked from commit 506cfd1)
* extract slice and formdata from sankey * use arrow function * reorganize imports
* extract slice and formdata from sankey * use arrow function * reorganize imports
slice
andformData
according to [SIP-5]@williaster @conglei