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 recipe #2416
Waterfall recipe #2416
Conversation
src/basic_recipes/waterfall.jl
Outdated
final_gap = p.final_gap[] === automatic ? p.dodge[] == automatic ? 0 : p.gap : p.final_gap | ||
barplot!( | ||
p, | ||
fromto[].final; |
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.
You should turn all the fromto[]
/marker[]
/etc into: lift(x-> x.xy, fromto)
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.
Thanks for the hint! Does this also apply to p.show_final[]
, p.final_gap[]
etc?
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, but there you should be able to just remove the []
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.
Hm, but if I remove []
e.g. in L58, I get
ERROR: TypeError: non-boolean (Observable{Any}) used in boolean context
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.
Yeah only remove it when passing it to another plotting function, not actually when using it in an if
;) It's still an observable after all, and not a boolean
bump: I added more |
* implement waterfall recipe * add plotting_functions examples for waterfall to the docs * mention waterfall in NEWS.md * add more `lift`s in waterfall recipe Co-authored-by: Simon <sdanisch@protonmail.com>
Description
This is the implementation of waterfall charts as a recipe as discussed with @jkrumbiegel in #2314.
Not sure, if the amount and naming of specific attributes is OK;
It adds the following examples to the docs:
Type of change
Delete options that do not apply:
Checklist