Version
1.12.2
Link to Minimal Reproduction
null
Steps to Reproduce
const spec = {
"type": "bar",
"color": [
"#693BFF",
"#A894F7"
],
"series": [
{
"type": "bar",
"seriesField": "DisplayName",
"xField": "Timestamp",
"yField": "Value",
"tooltip": {
"activeType": "dimension",
"dimension": {
"shapeType": "circle",
"content": {}
}
}
}
],
"dataZoom": [
{
"orient": "bottom",
}
],
"legends": {
"visible": true,
"position": "middle"
},
"data": [
{
"id": "dataId",
"values": []
}
],
"axes": [
{
"orient": "bottom",
"sampling": true,
"label": {
"autoRotate": true,
"autoHide": true
}
}
],
"stackCornerRadius": 5
}
const vchart = new VChart(spec, { dom: CONTAINER_ID });
vchart.renderSync();
setTimeout(() => {
vchart.updateData('dataId', [
{
"DisplayName": "API",
"Timestamp": "10/15",
"Value": 0
},
{
"DisplayName": "SDK",
"Timestamp": "10/15",
"Value": 0
},
{
"Name": "Bot",
"Timestamp": "10/16",
"Value": 3,
"BotId": "bot-20241016201205-cxmm2",
"RequestSource": "api",
"DisplayName": "API"
},
{
"DisplayName": "API",
"Timestamp": "10/17",
"Value": 0
},
{
"DisplayName": "SDK",
"Timestamp": "10/17",
"Value": 0
},
{
"Name": "Bot",
"Timestamp": "10/18",
"Value": 472,
"BotId": "bot-20241016201205-cxmm2",
"RequestSource": "api",
"DisplayName": "API"
},
{
"Name": "Bot",
"Timestamp": "10/18",
"Value": 391,
"BotId": "bot-20241016201205-cxmm2",
"RequestSource": "sdk",
"DisplayName": "SDK"
},
{
"Name": "Bot",
"Timestamp": "10/19",
"Value": 1039,
"BotId": "bot-20241016201205-cxmm2",
"RequestSource": "sdk",
"DisplayName": "SDK"
},
{
"DisplayName": "API",
"Timestamp": "10/20",
"Value": 0
},
{
"DisplayName": "SDK",
"Timestamp": "10/20",
"Value": 0
},
{
"Name": "Bot",
"Timestamp": "10/21",
"Value": 1627,
"BotId": "bot-20241016201205-cxmm2",
"RequestSource": "api",
"DisplayName": "API"
},
{
"Name": "Bot",
"Timestamp": "10/21",
"Value": 110,
"BotId": "bot-20241016201205-cxmm2",
"RequestSource": "sdk",
"DisplayName": "SDK"
}
]);
}, 2000);
Current Behavior

Expected Behavior

Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
Version
1.12.2
Link to Minimal Reproduction
null
Steps to Reproduce
const spec = {
"type": "bar",
"color": [
"#693BFF",
"#A894F7"
],
"series": [
{
"type": "bar",
"seriesField": "DisplayName",
"xField": "Timestamp",
"yField": "Value",
"tooltip": {
"activeType": "dimension",
"dimension": {
"shapeType": "circle",
"content": {}
}
}
}
],
"dataZoom": [
{
"orient": "bottom",
}
],
"legends": {
"visible": true,
"position": "middle"
},
"data": [
{
"id": "dataId",
"values": []
}
],
"axes": [
{
"orient": "bottom",
"sampling": true,
"label": {
"autoRotate": true,
"autoHide": true
}
}
],
"stackCornerRadius": 5
}
const vchart = new VChart(spec, { dom: CONTAINER_ID });
vchart.renderSync();
setTimeout(() => {
vchart.updateData('dataId', [
{
"DisplayName": "API",
"Timestamp": "10/15",
"Value": 0
},
{
"DisplayName": "SDK",
"Timestamp": "10/15",
"Value": 0
},
{
"Name": "Bot",
"Timestamp": "10/16",
"Value": 3,
"BotId": "bot-20241016201205-cxmm2",
"RequestSource": "api",
"DisplayName": "API"
},
{
"DisplayName": "API",
"Timestamp": "10/17",
"Value": 0
},
{
"DisplayName": "SDK",
"Timestamp": "10/17",
"Value": 0
},
{
"Name": "Bot",
"Timestamp": "10/18",
"Value": 472,
"BotId": "bot-20241016201205-cxmm2",
"RequestSource": "api",
"DisplayName": "API"
},
{
"Name": "Bot",
"Timestamp": "10/18",
"Value": 391,
"BotId": "bot-20241016201205-cxmm2",
"RequestSource": "sdk",
"DisplayName": "SDK"
},
{
"Name": "Bot",
"Timestamp": "10/19",
"Value": 1039,
"BotId": "bot-20241016201205-cxmm2",
"RequestSource": "sdk",
"DisplayName": "SDK"
},
{
"DisplayName": "API",
"Timestamp": "10/20",
"Value": 0
},
{
"DisplayName": "SDK",
"Timestamp": "10/20",
"Value": 0
},
{
"Name": "Bot",
"Timestamp": "10/21",
"Value": 1627,
"BotId": "bot-20241016201205-cxmm2",
"RequestSource": "api",
"DisplayName": "API"
},
{
"Name": "Bot",
"Timestamp": "10/21",
"Value": 110,
"BotId": "bot-20241016201205-cxmm2",
"RequestSource": "sdk",
"DisplayName": "SDK"
}
]);
}, 2000);
Current Behavior
Expected Behavior
Environment
Any additional comments?
No response