-
Notifications
You must be signed in to change notification settings - Fork 39
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
[Bug] Chart screen remains when using updateSpecSync #1421
Labels
bug
Something isn't working
Comments
xuefei1313
added a commit
that referenced
this issue
Nov 16, 2023
20 tasks
20 tasks
xuefei1313
added a commit
that referenced
this issue
Nov 17, 2023
xuefei1313
added a commit
that referenced
this issue
Nov 17, 2023
xuefei1313
added a commit
that referenced
this issue
Nov 17, 2023
xuefei1313
added a commit
that referenced
this issue
Nov 17, 2023
xuefei1313
added a commit
that referenced
this issue
Nov 17, 2023
kkxxkk2019
pushed a commit
that referenced
this issue
Nov 17, 2023
kkxxkk2019
pushed a commit
that referenced
this issue
Nov 17, 2023
kkxxkk2019
pushed a commit
that referenced
this issue
Nov 17, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
1.5.4
Link to Minimal Reproduction
null
Steps to Reproduce
const spec = {
"type": "line",
"data": [
{
"id": "data",
"values": [
{
"cf9c787e31f010e48f9ha6799e0fd62c5be9": "二级",
"be0ec0f128143c74082t9e3430e3086fdc67": 128,
"ed9aca20ac0cf514b80x88be86e2f6619902": "用品",
"e19b5df539943d14662a8d3f34d9a1c98816": "公司"
},
{
"cf9c787e31f010e48f9ha6799e0fd62c5be9": "标准级",
"be0ec0f128143c74082t9e3430e3086fdc67": 751,
"ed9aca20ac0cf514b80x88be86e2f6619902": "信封",
"e19b5df539943d14662a8d3f34d9a1c98816": "消费者"
},
{
"cf9c787e31f010e48f9ha6799e0fd62c5be9": "标准级",
"be0ec0f128143c74082t9e3430e3086fdc67": 1010,
"ed9aca20ac0cf514b80x88be86e2f6619902": "装订机",
"e19b5df539943d14662a8d3f34d9a1c98816": "消费者"
},
{
"cf9c787e31f010e48f9ha6799e0fd62c5be9": "标准级",
"be0ec0f128143c74082t9e3430e3086fdc67": 427,
"ed9aca20ac0cf514b80x88be86e2f6619902": "用品",
"e19b5df539943d14662a8d3f34d9a1c98816": "公司"
}
],
"fields": {
"cf9c787e31f010e48f9ha6799e0fd62c5be9": {
"type": "ordinal",
"sortIndex": 1
},
"ed9aca20ac0cf514b80x88be86e2f6619902": {
"type": "ordinal",
"sortIndex": 1
},
"e19b5df539943d14662a8d3f34d9a1c98816": {
"type": "ordinal",
"sortIndex": 1
}
}
}
],
"legends": [],
"tooltip": {},
"color": {
"type": "ordinal",
"domain": [
"公司",
"消费者",
"小型企业"
],
"range": [
"#fc5454",
"#fc7454",
"#fc97af",
"#87f7cf",
"#f7f494",
"#72ccff",
"#f7c5a0",
"#d4a4eb",
"#d2f5a6",
"#76f2f2"
]
},
"theme": {},
"seriesField": "e19b5df539943d14662a8d3f34d9a1c98816",
"seriesStyle": [],
"axes": [
{
"type": "linear",
"visible": true,
"orient": "left",
"sampling": true,
"label": {
"visible": true,
"position": "outside",
"style": {
"fontSize": 14,
"fontFamily": "微软雅黑",
"fontWeight": "400",
"fill": "#909090",
"fillOpacity": 1,
"stroke": "",
"lineWidth": 0,
"lineDash": [
0,
0
],
"opacity": 1,
"strokeOpacity": 1,
"cursor": "default",
"textAlign": "right",
"textBaseline": "middle"
},
"autoRotate": false,
"autoHide": true
}
}
],
"direction": "vertical",
"barMaxWidth": 30,
"xField": [
"cf9c787e31f010e48f9ha6799e0fd62c5be9",
"ed9aca20ac0cf514b80x88be86e2f6619902",
"e19b5df539943d14662a8d3f34d9a1c98816"
],
"yField": "be0ec0f128143c74082t9e3430e3086fdc67",
"stack": false
};
const spec1 = {
"type": "bar",
"data": [
{
"id": "data",
"values": [
{
"cf9c787e31f010e48f9ha6799e0fd62c5be9": "二级",
"be0ec0f128143c74082t9e3430e3086fdc67": 128,
"ed9aca20ac0cf514b80x88be86e2f6619902": "用品",
"e19b5df539943d14662a8d3f34d9a1c98816": "公司"
},
{
"cf9c787e31f010e48f9ha6799e0fd62c5be9": "标准级",
"be0ec0f128143c74082t9e3430e3086fdc67": 751,
"ed9aca20ac0cf514b80x88be86e2f6619902": "信封",
"e19b5df539943d14662a8d3f34d9a1c98816": "消费者"
},
{
"cf9c787e31f010e48f9ha6799e0fd62c5be9": "标准级",
"be0ec0f128143c74082t9e3430e3086fdc67": 1010,
"ed9aca20ac0cf514b80x88be86e2f6619902": "装订机",
"e19b5df539943d14662a8d3f34d9a1c98816": "消费者"
},
{
"cf9c787e31f010e48f9ha6799e0fd62c5be9": "标准级",
"be0ec0f128143c74082t9e3430e3086fdc67": 427,
"ed9aca20ac0cf514b80x88be86e2f6619902": "用品",
"e19b5df539943d14662a8d3f34d9a1c98816": "公司"
}
],
"fields": {
"cf9c787e31f010e48f9ha6799e0fd62c5be9": {
"type": "ordinal",
"sortIndex": 1
},
"ed9aca20ac0cf514b80x88be86e2f6619902": {
"type": "ordinal",
"sortIndex": 1
},
"e19b5df539943d14662a8d3f34d9a1c98816": {
"type": "ordinal",
"sortIndex": 1
}
}
}
],
"legends": [],
"tooltip": {},
"color": {
"type": "ordinal",
"domain": [
"公司",
"消费者",
"小型企业"
],
"range": [
"#fc5454",
"#fc7454",
"#fc97af",
"#87f7cf",
"#f7f494",
"#72ccff",
"#f7c5a0",
"#d4a4eb",
"#d2f5a6",
"#76f2f2"
]
},
"theme": {},
"seriesField": "e19b5df539943d14662a8d3f34d9a1c98816",
"seriesStyle": [],
"axes": [
{
"type": "linear",
"visible": true,
"orient": "left",
"sampling": true,
"label": {
"visible": true,
"position": "outside",
"style": {
"fontSize": 14,
"fontFamily": "微软雅黑",
"fontWeight": "400",
"fill": "#909090",
"fillOpacity": 1,
"stroke": "",
"lineWidth": 0,
"lineDash": [
0,
0
],
"opacity": 1,
"strokeOpacity": 1,
"cursor": "default",
"textAlign": "right",
"textBaseline": "middle"
},
"autoRotate": false,
"autoHide": true
}
}
],
"direction": "vertical",
"barMaxWidth": 30,
"xField": [
"cf9c787e31f010e48f9ha6799e0fd62c5be9",
"ed9aca20ac0cf514b80x88be86e2f6619902",
"e19b5df539943d14662a8d3f34d9a1c98816"
],
"yField": "be0ec0f128143c74082t9e3430e3086fdc67",
"stack": false
};
const vchart = new VChart(spec, { dom: CONTAINER_ID, animation: false });
vchart.renderSync();
vchart.updateSpecSync(spec1);
vchart.updateSpecSync(spec0);
vchart.updateSpecSync(spec1);
vchart.updateSpecSync(spec0);
vchart.updateSpecSync(spec1);
// Just for the convenience of console debugging, DO NOT COPY!
window['vchart'] = vchart;
Current Behavior
Expected Behavior
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: