I am interested in creating a diverging stacked bar chart to visualize some survey data. I have attached a sample notebook with where I am at so far.

What I would like to do is transform each bar to be aligned such that the “Neutral” category is centered on the x-axis about zero. I am using the Robbins & Heiberger paper as a reference.

I don’t know if this is an operation that would be done in the Plot specification, or if I should transform the data first, and then plot afterward.

Each bar would need to be moved to the left by the sum of “Strongly Disagree”, “Disagree” and half of “Neutral”.

Anyways, just looking for some advice and wondering if anyone here has done something similar before.

Thanks for your help,

-Eitan