question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Grouped Bar Chart with More Than Two Levels

See original GitHub issue
bokeh=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')

image

As a reference: https://stackoverflow.com/a/43999451/2359430

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
MarcSkovMadsencommented, Dec 18, 2021

@philippjfr , @jlstevens. Do you have time to guide a PR here?

0reactions
madeline-scypherscommented, Dec 14, 2021

@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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found