You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible to create a grouped-and-stacked bar chart in Plotly.js by creating each group as a subplot. It's not as simple as setting a top-level feature like 'barmode': 'stacked+grouped' but because it's more elemental it offers more options.
Here each subplot references a shared common yaxis and its own xaxis. Each xaxis gets a "domain" which here means a portion of the overall bottom axis width. Here the first group gets [0.0, 0.33], the second [0.34, 0.66] and the third [0.67, 1.0]
Reacted by cbonilla-catalogue, Jared McKimm, David Meza, Fabrice Sodogandji, Awalin Shopan, Alexander Serov and Reetika Sarkar-Bermudez
Reacted by Alexander Wunschik, luis-lopez09, Paulo Vieira, Lies, carlosbettin, Evan Baker, terenceng2010, cbonilla-catalogue, brandondaypeak, Fabrice Sodogandji and 4 more
I am trying to use this layout for my json data but I am unable to get the right graph... Instead of xaxis: x1 ... I need xaxis: Code and xaxis: test but i am not getting as I think there is some link to xaxis: x1 ... which cannot be changed .. Please help me how to make it work
Activity
etpinard commentedon Jun 29, 2017
Would be nice!
See related:
mojoaxel commentedon Mar 12, 2018
Here is a screenshot to demonstrate what this feature request is for:

Here are some related community entries for this topic:
protobi-pieter commentedon May 2, 2018
It is possible to create a grouped-and-stacked bar chart in Plotly.js by creating each group as a subplot. It's not as simple as setting a top-level feature like
'barmode': 'stacked+grouped'but because it's more elemental it offers more options.Here each subplot references a shared common yaxis and its own xaxis. Each xaxis gets a "domain" which here means a portion of the overall bottom axis width. Here the first group gets [0.0, 0.33], the second [0.34, 0.66] and the third [0.67, 1.0]
https://codepen.io/__proto__/pen/XqgWEq
etpinard commentedon Mar 28, 2019
Merging into #3614 - which will make stack+group bars possible
arushiS27 commentedon Jul 17, 2019
I am trying to use this layout for my json data but I am unable to get the right graph... Instead of xaxis: x1 ... I need xaxis: Code and xaxis: test but i am not getting as I think there is some link to xaxis: x1 ... which cannot be changed .. Please help me how to make it work