Grouped Bar Chart with More Than Two Levels
See original GitHub issuebokeh=0.13.0=py36_0
holoviews=1.10.0=py36_1
This doesn’t seem to be supported yet. From here, it says
Bars support stacking just like the Area element as well as grouping by a second key dimension.
The following doesn’t work as intended (or maybe I’m missing something?):
%%opts Bars.Grouped [group_index='Group'] Bars.Stacked [stack_index='Group']
from itertools import product
np.random.seed(3)
index, groups, other = ['A', 'B'], ['a', 'b'], ["x", "y"]
keys = product(index, groups, other)
bars = hv.Bars([k+(np.random.rand()*100.,) for k in keys],
["Other", 'Index', 'Group'], 'Count')
bars.relabel(group='Grouped') + bars.relabel(group='Stacked')
As a reference: https://stackoverflow.com/a/43999451/2359430
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
A Complete Guide to Grouped Bar Charts | Tutorial by Chartio
A grouped bar chart allows for values to be compared on levels of two different categorical variables. Use this guide to learn how...
Read more >Grouped Bar Chart in Excel - How to Create? (10 Steps)
1. u003cbr/u003eu003cimg alt=u0022Grouped-Bar-Chart-Example-1.0.1u0022 src=u0022https://www.wallstreetmojo.com/wp-content/uploads/2019/08/Grouped-Bar-Chart ... 2. u003cbr/u003eu003cimg alt=u0022Grouped-Bar-Chart-Example-1.0.1.5u0022 src=u0022https://www.wallstreetmojo.com/wp-content/uploads/2019/08/Grouped-Bar-Chart ... 3. u003cbr/u003eu003cimg alt=u0022Grouped-Bar-Chart-Example-1.2.0u0022 src=u0022https://www.wallstreetmojo.com/wp-content/uploads/2019/08/Grouped-Bar-Chart ...
Read more >Creating a Grouped Bar Chart - Excel - eduCBA
A grouped chart is a group of bar charts or multiset bar charts. Instead of a single bar, you can see multiple bars...
Read more >Grouped Bar Graph | Matplotlib | Python Tutorials - YouTube
In this Python Programming video tutorial you will learn about multiple bar chart or grouped bar graph in matplotlib in detail.
Read more >3.2 Grouping Bars Together | R Graphics Cookbook, 2nd edition
The most basic bar graphs have one categorical variable on the x-axis and one continuous variable on the y-axis. Sometimes you'll want to...
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 FreeTop 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
Top GitHub Comments
@philippjfr , @jlstevens. Do you have time to guide a PR here?
@philippjfr if I wanted to put in a PR to fix this a get the BarPlot to be able to group and stack at the same time, how much work do you think that would be? I’ve ran into this at least half a dozen times at work trying to use holoviews so I would love for it to work. I have a pretty good amount of experience with lower level bokeh and holoviews so I’m pretty sure I can do it.
is this something you’d be interested in? And is anyone else working on it right now?