Pyramid / back-to-back / symmetrical charts
See original GitHub issueAs mentioned in #1836, I’d love to see a flag on Bar to switch the vertical axis to be the categorical axis so we can make charts like
(source: http://www.economist.com/news/21631911-end-population-pyramid-world-reshaped)
Am thinking it’s fairly easy code, but the interface could get confusing - at the moment my best suggestion would be vertical_cat
(optional Bool that defaults to false). The reason this is weird is that then you can set a custom y_range, but it would actually be a custom x_range…suggestions welcome.
In implementing this would it be ok to add it as an example in the examples folder, or are there processes for adding new examples?
Issue Analytics
- State:
- Created 9 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
A Complete Guide to Histograms | Tutorial by Chartio
Histograms are a common chart type used to look at distributions of numeric variables. Check out this guide to learn how to use...
Read more >A237270 - OEIS
This is formed by combing four copies of the pyramid back-to-back (cf. ... For the construction of the diagram we use the symmetric...
Read more >One- to two-dimensional visualization
Pyramid graph (back to back histogram) ... the reason of creating a symmetrical violin plot and what additional information we can obtain from...
Read more >Symmetry and Skew | Passy's World of Mathematics
If our Histogram is a pyramid type balanced shape, with both sides of the Median pretty much the same shape, then we say...
Read more >Population Pyramids. - ppt download - SlidePlayer
Symmetry : statistically speaking pyramids should be relatively symmetrical. Any asymmetry indicates a difference in the male and female population.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
So, I’ve caused some confusion 😒
@bryevdv and @pzwang wrote some comments on #1851 about how to do a range (split / two-way / symmetric ) that would facilitate a pyramid plot.
It’s interesting, because I wasn’t imagining doing pyramid plots like that. To my mind, a pyramid plot is two bar charts back-to-back. And so I was just imagining sticking two seperate plots together.
See my ipython notebook - http://nbviewer.ipython.org/github/birdsarah/bokeh/blob/pyramid_plot/examples/plotting/notebook/pyramid_plot.ipynb:
Maybe there are some different things bubbling here:
There’s not a canned high level chart type for it, but you can certainly draw this type of chart, as demonstrated above. Now with
hbar
it should be even easier.