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.

Single bar datum does not display with barmode='overlay'

See original GitHub issue

This was originally a plotly.py issue I was told to reopen here. Forgive the lack of js reproducible example

I’m creating a bar plot with multiple categories and I wanted to colour each category differently, even though the categories don’t overlap. Multiple rows display fine using barmode='overlay', but if there’s only one row in a category, it doesn’t display:

image

If I don’t split the data, it displays fine (different street, same issue):

image

If I change barmode='relative' then it displays fine: image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
alexcjohnsoncommented, Dec 4, 2017

OK. Closing as this does seem covered by the other two issues I mentioned.

0reactions
radumascommented, Dec 4, 2017

Ah, no I just used the relative mode instead, since it suits what we were trying to accomplish

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plotly: How to always show the lowest bar in front in overlay ...
Try this: fig. · @r-beginners That does not work since if you use barmode='stack' it will put the bars on top of each...
Read more >
plotly.graph_objects.Bar — 5.11.0 documentation
If none or skip are set, no information is displayed upon hovering. ... In “group” barmode, traces that set “offset” will be excluded...
Read more >
Clustered & Overlapped Bar Charts with Plotly Express
Overlapped (Overlapping) Bar Charts are used to make comparisons between different items or categories. They compare only two numerical ...
Read more >
Leica Application Suite - LAS User Manual - STLCC.edu
Leica Microsystems (Switzerland) Ltd.accepts no responsibility for any errors that may appear in this document. No part of this publication may be ...
Read more >
Bar Charts | Google Developers
Like all Google charts, bar charts display tooltips when the user hovers over ... We don't recommend that you mix styles too freely...
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