F2
F2 copied to clipboard
innerRadius not work
Results

Code

Sometimes the property innerRadius doesn't work。 what should I do?
version: ^3.2.4
It will be nice to provide a CodePen Link which can reproduce the issue, we provide a CodePen template f2-github-issue.
I don't know how to reproduce it. (template)[https://codepen.io/Carl_su/pen/gqdPOB]. :sweat_smile:
...在 issue 模板里面已经非常清楚得注明了,请按照 issue 模板提供可以复现的完整代码,包括数据、源码以及运行环境,否则无法帮你定位,请了解
恩,是你的数据有问题,饼图的 position('x*y') x 字段需要是字符串类型,你只要把你的 time 字段变成字符串就可以啦!
const data = [
{
"type":"出口重柜",
"value":10.99,
"time":'2019'
},
{
"type":"进口吉柜",
"value":2,
"time":'2019'
},{
"type":"进口重柜",
"value":0.98,
"time":'2019'
}];
@simaQ 谢谢