-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Open
Labels
Milestone
Description
Version
5.6.0
Link to Minimal Reproduction
// Expect green rect
// But actually black rect if lazyUpdate: true
const LAZY_UPDATE = true;
// const LAZY_UPDATE = false;
option = {
xAxis: {},
yAxis: {},
series: [
{
type: 'line',
data: [
[10, 1],
[3, 5]
]
}
]
};
setTimeout(() => {
var step1 = {
option: {
graphic: {
elements: [
{
type: 'rect',
id: 'grid_boundary_indicator',
shape: { x: 50, y: 50, width: 330, height: 310 },
style: { fill: 'rgba(0,150,0,0.5)' },
silent: true
}
]
},
xAxis: {},
yAxis: {},
series: [
{
type: 'line',
data: [
[10, 1],
[3, 5]
]
}
]
},
ecSetOptionOpt: { notMerge: true, lazyUpdate: LAZY_UPDATE }
};
var step2 = {
option: {
graphic: {
elements: [
{
id: 'grid_boundary_indicator',
shape: { x: 50, y: 50, width: 330, height: 310 }
}
]
}
},
ecSetOptionOpt: { lazyUpdate: LAZY_UPDATE }
};
myChart.setOption(step1.option, step1.ecSetOptionOpt);
myChart.setOption(step2.option, step2.ecSetOptionOpt);
}, 1000);Steps to Reproduce
See the demo URL above.
Current Behavior
graphic loose some info if lazyUpdate: true
In the case above, loose style: {...}
Expected Behavior
Consistent and correct behavior regardless of lazyUpdate setting.
Environment
- OS:
- Browser:
- Framework:Any additional comments?
No response
gioneves