【发布时间】:2019-12-09 03:30:06
【问题描述】:
我使用本教程https://www.smashingmagazine.com/2015/07/designing-simple-pie-charts-with-css/中的 svg 模式在 React 中创建了一个饼图
我有四件
对于所有四件:
stroke-dasharray: 25, 100;
对于每一件我还有:
stroke-dashoffset: 0;,
stroke-dashoffset: -25;,
stroke-dashoffset: -50; 和
stroke-dashoffset: -75;
问题是我在第一块和最后一块之间有一个间隙,所以这些块没有完全填满圆圈。
【问题讨论】: