Plotly.js: bargap in barmode=relative

Created on 19 Mar 2019  Â·  2Comments  Â·  Source: plotly/plotly.js

If I make a multi-trace histogram with barmode set to "relative", I would expect the bargap to stay 0, like it does in "stack".

Per @alexcjohnson:

We should really coerce barmode first, then invoke this logic only for barmode !== 'group'. And of course update it when bar stackgroup becomes a thing…

bug

All 2 comments

@antoinerg would you be interested in taking this one at some point this week?

This was the link @etpinard dropped into Slack about where in the code it's happening: https://github.com/plotly/plotly.js/blob/05884832cb59c9ec159141b791a4645d09b2d7c3/src/traces/bar/layout_defaults.js#L52

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HunterMcGushion picture HunterMcGushion  Â·  3Comments

boleslawmaliszewski picture boleslawmaliszewski  Â·  3Comments

tim-sauchuk picture tim-sauchuk  Â·  3Comments

mithi picture mithi  Â·  3Comments

danielsamuels picture danielsamuels  Â·  3Comments