8000 [Bug] The pie chart rendering empty when the values were the same. · Issue #321 · VisActor/VChart · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Bug] The pie chart rendering empty when the values were the same. #321
Closed
@youngwinds

Description

@youngwinds

Version

1.1.0

Link to Minimal Reproduction

none

Steps to Reproduce

const spec = {
"type": "pie",
"categoryField": "20001",
"valueField": "10002",
"data": [
{
"id": "data",
"values": [
{
"10001": "销售额",
"10002": "16068954.132933617",
"10003": "230718135728053",
"20001": "销售额",
"2307181 721C 35728053": "16068954.132933617"
},
{
"10001": "销售额",
"10002": "16068954.132933617",
"10003": "230718135728056",
"20001": "销售额",
"230718135728056": "16068954.132933617"
},
{
"10002": "64275816.53173447",
"20001": "(其他)"
}
],
"transform": [
{
"type": "fields",
"options": {
"fields": {
"10001": {
"alias": "指标名称 "
},
"10002": {
"alias": "指标值 "
},
"20001": {
"alias": "图例项 ",
"domain": [
"销售额",
"(其他)"
]
},
"230718135728053": {
"alias": "销售额"
},
"230718135728056": {
"alias": "销售额"
},
"230718135728059": {
"alias": "销售额"
},
"230718135728062": {
"alias": "销售额"
},
"230718144747009": {
"alias": "销售额"
},
"230718144747012": {
"alias": "销售额"
}
}
}
}
]
}
],
"groupBy": "20001",
"color": {
"field": "20001",
"type": "ordinal",
"range": [
"#2a59c5"
],
"specified": {
"销售额": "#2a59c5",
"undefined": "#FFCC00"
}
}
};

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

// 只为了方便控制台调试用,不要拷贝
window['vchart'] = vchart;

Current Behavior

image

Expected Behavior

render correctly

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

Labels

bpbugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0