I followed the following SA question to build a stacked bar chart using <path>
instead of <rect>
, so I can style the top bar part to have a rounded corner.
How to Make a bar chart with rounded corners with extended grid in d3.js?
Here is a code pen with my code showing my code and the wrong effect: https://codepen.io/Yeronimo/pen/jOPWBGL
The problem is that the stacked bars align at the top.
I have tried many changes to the bar function and the calling "attr d" function, but I seem to be only making things worse. Any help would be appreciated.
And here a poorly shopped image of what it should look like. So the idea is that the bars have the correct height and correct order in my current code, just that they should be aligning at the bottom. In the image the rounded corners got lost, but they are visible in the pen.