VChart
VChart copied to clipboard
[Bug] label not updated after updateSpecSync
Version
1.12.6
Link to Minimal Reproduction
none
Steps to Reproduce
const spec = {
type: 'area',
data: {
values: [
{
time: '2:00',
value: 8
},
{
time: '4:00',
value: 9
},
{
time: '6:00',
value: 11
},
{
time: '8:00',
value: 14
},
{
time: '10:00',
value: 16
},
{
time: '12:00',
value: 17
},
{
time: '14:00',
value: 17
},
{
time: '16:00',
value: 16
},
{
time: '18:00',
value: 15
}
]
},
xField: 'time',
yField: 'value',
label:{
visible:false
}
};
const vchart = new VChart(spec, { dom: CONTAINER_ID });
vchart.renderSync();
spec.label.visible = true;
vchart.updateSpec(spec)
// Just for the convenience of console debugging, DO NOT COPY!
window['vchart'] = vchart;
Current Behavior
label not shown after updateSpec
Expected Behavior
show label after updateSpec
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response