[Bug] Chart width shrinks when operating datazoom frequently
Open
@skie1997 is already working on this.
Since Apr 18, 2025.
bug
- Dominant language
- TypeScript
- Stars
- 1.8k
- Forks
- 221
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 26
Description
Version
1.13.7
Link to Minimal Reproduction
null
Steps to Reproduce
const spec = {
type: 'bar',
width: 440,
data: [
{
id: 'barData',
values: [
{ month: '啊dasd洒大地洒的撒打算大撒打算撒打算打算', sales: 220 },
{ month: 'Tuesday', sales: 130 },
{ month: 'Wednesday', sales: 25 },
{ month: 'Thursday', sales: 29 },
{ month: '撒打打啊算打算大撒大大撒4 打算打算大大撒打', sales: 38 }
]
}
],
xField: 'month',
yField: 'sales',
dataZoom:[{
orient:'bottom'
}]
};
const vchart = new VChart(spec, { dom: CONTAINER_ID });
vchart.renderSync();
// Just for the convenience of console debugging, DO NOT COPY!
window['vchart'] = vchart;
Current Behavior
Expected Behavior
no change for chart width
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.