D3 Horizontal Bar chart

Hi,

I would like to be able to do a bar chart like this Variable width bar chart with matching, data driven, variable width wordwrap 路 GitHub, but as a horizontal bar chart, with both negative and positive values on the x-axis and the height of the bars to be propotional to a function of the whole and have the y-axis scale accordingly.

Like this but have the y-axis compressed to eliminate all the space.

Any assistance would be appreciated

TIA
Trevor

An example of the compressed y-axis would look like this

here is some code, its nearly what I want but I need the bars to stack on top of each other to go up to the 100%

image

Any suggestions?

TIA
Trevor