svg / d3.js rounded corner on one corner of a rectangle

后端 未结 5 1272
青春惊慌失措
青春惊慌失措 2020-12-01 04:41

I know svg has an in built function to do rounded corners, but I need to do rounded corners on only 2 of the four corners.

I know I can draw multiple rectangles on t

5条回答
  •  囚心锁ツ
    2020-12-01 04:43

    I found myself with this problem recently in order to do a bar chart with top rounded corners in d3. I made a codesandbox demo of the solution I found.

提交回复
热议问题