could you please direct me on how to draw in D3.js rounded corners (just for the first and for the last element) within the stacked bar chart.
Currently generated SVG code for one instance/one row of stacked bar is as follows:
<g class="layer" style="fill: rgb(247, 139, 157);">
<rect rx="15" ry="15" y="104" x="51" height="21" width="100"></rect>
<rect rx="15" ry="15" y="22" x="78" height="21" width="166"></rect>
<rect rx="15" ry="15" y="227" x="48" height="21" width="341"></rect>
<rect rx="15" ry="15" y="186" x="80" height="21" width="546"></rect>
<rect rx="15" ry="15" y="145" x="80" height="21" width="418"></rect>
<rect rx="15" ry="15" y="63" x="40" height="21" width="238"></rect>
</g>
Above I've added:
.attr("rx", 15)
.attr("ry", 15)
to all rect elements which is not even close to my requirement. The question is how to add corners just to boundary elements (first and last)?