scenerecap commented on issue #21862:
URL: https://github.com/apache/echarts/issues/21862#issuecomment-7101011649
Reproduced on ECharts **5.6.0** (jsDelivr CDN, Chromium on macOS,
2026-11-23):
1. Render a bar chart with 5 category items and `showBackground` unset.
2. Call `myChart.setOption({ xAxis: { data: top3 }, series: [{
showBackground: true, data: … }] })` — enabling `showBackground` and reducing
the category list in one call.
3. ECharts throws `TypeError: Cannot read properties of undefined (reading
'width')`. The chart renders with misaligned bars and no background tracks.
Control: a fresh chart created with `showBackground: true` and 3 categories
from the start renders correctly — each bar has a grey background track behind
it.
35-second recording: https://scenerecap.com/s/8qmpo2kyx5
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]