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.

Make base of bars configurable

See original GitHub issue

so that positive and negative values can be stacked on each side of the zero line.

See current behavior of the each barmode here: http://codepen.io/etpinard/pen/mPGLrY?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:15 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
kk45991commented, Sep 14, 2016

Hello, I am using plotly with R and I do not see any difference between: barmode = “relative” and barmode = “group”.

So with the first options values are not stacked like in the example: http://codepen.io/etpinard/pen/mPGLrY

Like this: require(plotly) require(dplyr) set.seed(1) test_data <- data.frame(x = rep(1:10, 3), y = rnorm(30), z = rep(c(“A”, “B”, “C”), 10)) plot_ly(data = test_data, x = x, y = y, color = z, type = “bar”) %>% layout(barmode = “relative”)

plot_ly(data = test_data, x = x, y = y, color = z, type = “bar”) %>% layout(barmode = “group”)

1reaction
etpinardcommented, May 16, 2016

'relative' bar mode added in https://github.com/plotly/plotly.js/pull/517

Issue title changed to reflect barbase feature.

Read more comments on GitHub >

github_iconTop Results From Across the Web

BarFlex3D | Build Your Dream Bar Online - Krowne
This tool allows you to get the perfect configuration that you're looking for with your bar… without the custom price tag. So what...
Read more >
Configure a bar chart - AVEVA™ PI Vision
Right-click the bar chart and then click Format Bar Chart to open the Format Bar Chart pane. Under Style, customize the chart:.
Read more >
Bar Chart | Chart.js
Bar charts can be configured into stacked bar charts by changing the settings on the X and Y axes to enable stacking. Stacked...
Read more >
Bar Charts | Google Developers
Stacked bar charts are typically used when a category naturally divides into components. For instance, consider some hypothetical book sales, divided by genre ......
Read more >
How to use Numbers Bars in Sierra Chart - YouTube
This video shows how to use the numbers bars feature in Sierra Chart. ... the font for numbers bars 00:23:28 Template 3 is...
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