Skip to content

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

Description

@spongefz

当数据值为:
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,
},
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions