-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Icicle Trace #5546
Icicle Trace #5546
Conversation
Bug - No transition on slicetext While playing around with the Icicle chart, I found a bug:
icicle.-.text.no.transition.mov[Notice that the Looking deeper into this, I found that this behaviour is most likely a by-product of the way the transition logic is coded for all of Sunburst, Treemap, and now Icicle: Sunburst: Notice how sunburst_2.movInsights/Resolutions I was exploring the makeUpdateTextInterpolator function but was not able to find anything relevant. Do any of you have insights into what the reason/problem could be? CC
treemap.-.text.appears.mov |
Re the transition bug, if it already impacts treemap/sunburst, let's just leave it as-is here and log an issue to cover the existing ones and then loop back around once this PR is merged to tackle it for all three trace types. |
That sounds like a solid plan. Will do that. |
Instead of adding 4 mocks added 1477ceb, can't we add a simple & single mock to test 4 directions? |
…cle-trace-base merge from master
Great point, I'll reconfigure this. Thanks for the tip. Here's what the |
… into icicle-trace-base pull from remote branch
…ss the trace domain anymore
Okay this should be good to go now. |
@Kully now in order for the image test pass please replace The diff is in respect to #5611. |
Looks like you already got to it in your commit, thank you 🙂 Is there anything else for us to do now? I can't wait for these ICICLES to hit the main library. |
Addressed in c57dda5. |
src/traces/icicle/attributes.js
Outdated
editType: 'plot', | ||
description: [ | ||
'Sets the orientation of the icicle.', | ||
'With *v* the icicle grows vertically.', |
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.
this isn't really clear to me... "v" means "bottom up" and "h" means "left to right" ? It would be helpful to note here that the other two possibilities (top-down and right-to-left) can be achieved via flip
if that is indeed how to do it.
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.
In fact I might phrase this as "the root node(s) are on the left" rather than talking about icicles "growing" :)
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.
Great point, and I agree with this. I'l add that note.
src/traces/icicle/attributes.js
Outdated
|
||
flip: treemapAttrs.tiling.flip, | ||
|
||
pad: treemapAttrs.tiling.pad, |
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 think the default value for this attribute should be 0, so as to look more like sunbursts and less like treemaps
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.
Yes that's a good idea as well. I remember when playing around with padding, 0 or close-to-0 looked the best to me.
Will change this.
closes: #5369
Overview of the Pull Request:
This PR is for the purposes of adding an Icicle/Flame charts to the Plotly traces. The high level aim is for the Icicle to achieve parity with the sunburst and treemap traces, and other features
Setting up the PR
git rebase
their local branch off the latestmaster
,git add
thedist/
folder (thedist/
is updated only on version bumps),package-lock.json
file (if any new dependency required),List of Tasks
sunburst
andtreemap
tracesmaxdepth
used (horizontal/vertical)"root: {"color": "red"}
to see the bug (or another color).Icicle.Bug.-.Root.is.Clickable.mov