且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

d3图表开箱即用,最后一个圆环未正确显示

更新时间:2023-08-30 21:52:34

在richardwestenra提供的答案的评论中进行讨论之后,我们提出了另一种解决方案,该解决方案在许多方面将margin.rightwidth减少了可以使绘图显示在绘图区域内的地方,而不是被剪切路径剪切的地方.

After discussion in the comments provided for answer by richardwestenra, we came up with an alternative solution which reduces the margin.right from the width in a number of places to make the plot appear within the drawing area and not be clipped by the clip path.

该解决方案位于 https://codesandbox.io/s/vigorous-mcclintock-hsmgu