VisActor / VisActor/VChart

[Bug] Chart width shrinks when operating datazoom frequently

Open
#3,899 0 comments 0 reactions 1 assignee View on GitHub

@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

Image

Expected Behavior

no change for chart width

Environment
- OS:
- Browser:
- Framework:
Any additional comments?

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.