Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据为以下这些数据时,圆环图ring就渲染不出来,但是数据改掉其中一个就可以渲染。有大佬遇到这种问题嘛 #456

Open
spongefz opened this issue Mar 25, 2024 · 0 comments

Comments

@spongefz
Copy link

当数据值为:
let arr = [
{
data: 879,
name: '数据1',
color: "#E4E4E6",
format: function (val) {
return '数据1' + (val * 100) + '%';
}
},
{
data: 616,
name: '数据二',
color: "#17BD9F",
format: function (val) {
return '数据二' + (val * 100) + '%';
}
},
{
data: 35,
name: '数据三',
color: "#FFDB05",
format: function (val) {
return '数据三' + (val * 100) + '%';
}
},
{
data: 39,
name: '数据四',
color: "#FF5F55",
format: function (val) {
return '数据四' + (val * 100) + '%';
}
},
]### ###
//这个图渲染不出来
let chart2 = new wxCharts({
canvasId: 'wxChartCanvas2',
type: 'ring',
series: datasets,
width: canvaswidth,
height: 296,
dataLabel: true,
legend: true,
disablePieStroke: true,
title: {
name: '总计' + sumcount,
textAlign: 'center',
color: '#000000',
fontSize: 8,
},
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant