-
-
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
Waterfall trace type #3037
Comments
I could see the API being just |
@etpinard is my data proposal above reasonably clear or... ? |
Essentially this models waterfalls a lot like lines, with special handling for |
Hmm. That sounds a little bit inconsistent with our current API. Currently, What if instead we had an array attribute with the same length as the coordinates e.g. sums: ['', '', 'intermediate', '', '', 'total'] where items with |
We could do that instead, yep. That would allow us to define something like the two-up stacks in the image above. |
I think we should support multi-cat here, as well as hovertemplates btw. Also note we will want to support |
That one is interesting.
so perhaps we should just wait for us to bump d3 to get this feature "for free" without having to add another attribute. |
Is there any way of swapping in the v4 version of the formatting module for the one we currently have? |
Yeah, we could do that. The entire d3-format module is |
We should create a new type of trace for waterfall charts. These are very useful for understand how sums decompose/recompose into each other, see: http://support.zebrabi.com/contribution-analysis-waterfall-charts/
This would be distinct from bar charts in that the position of each bar depends on the position of the previous one, without the trace having to contain this math.
Highcharts has a neat way of dealing with the "computed remnants" by having a flag on certain values that say "take this bar down to zero": https://www.highcharts.com/demo/waterfall
see also #1015
The text was updated successfully, but these errors were encountered: