Skip to content

[Bug] legends pager compute wrong #4207

@xuefei1313

Description

@xuefei1313

Version

2.0.5

Link to Minimal Reproduction

null

Steps to Reproduce

const spec = {
width: 188,
height: 188,
"type": "pie",
"title": {
"text": "流程时长分布"
},
"data": {
"values": [
{
"type": "个人审批时长",
"value": "45"
},
{
"type": "其他节点时长",
"value": "55"
}
]
},
"valueField": "value",
"categoryField": "type",
"outerRadius": 0.9,
"innerRadius": 0.3,
"label": {
"visible": true
},
"legends": {
"visible": true,
maxRow: 1,
}
};

const vchart = new VChart(spec, { dom: CONTAINER_ID });
vchart.renderSync();

// Just for the convenience of console debugging, DO NOT COPY!
window['vchart'] = vchart;

Current Behavior

Image

Expected Behavior

pager should be 1/2

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions