-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
adding pie, treemap, sunburst, funnel and funnelarea to px #1909
Conversation
This is all pretty good, modulo inline comments. I'd really like to have support for |
This would basically be the "value added" of PX for these traces IMO, as compared to using the graph objects directly, so that's why I think it's important :) |
The way I would implement discrete color is basically in |
Extra requirement: if |
Hum, interesting to see that the test fail because the color of the funnel is not the same. |
Do we want to accept |
it's normal that |
ok good, so nothing more to do for this :-). |
@emmanuelle some tweaks in that last commit, LMK what you think. |
mapping[cat] = args["color_discrete_sequence"][ | ||
len(mapping) % len(args["color_discrete_sequence"]) | ||
] | ||
result["marker"]["colors"].append(mapping[cat]) |
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.
Oh interesting, I did not know that marker_colors
could be a dictionary, I thought it had to be a list/array.
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 it does have to be a list, and in this case it is...?
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 is the same code you had, just inlined :)
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.
oh yes I had read too fast!
Thanks, looks good to me. Should we give each other a 💃 ? :-) |
No description provided.