VisActor / VisActor/VChart

[Feature] axes range could not change after legend click when there is only one group bind in it

Open
#3,720 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.8k
Forks
221
Avg merge
1d 6h
Merged PRs (30d)
26

Description

What problem does this feature solve?

双轴图场景,当有轴只有对应一组数据时,期望图例点击时,不要改变轴的区间。现在会变成 0-1,看起比较奇怪。

What does the proposed API look like?

// 增加配置允许轴对应筛选前的数据
domainCollect: 'view' | 'raw'

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.

Research direction

Start by reproducing the dual-axis case with one data group on an axis, then trace how a legend click recalculates each axis range. The change is done when that axis keeps its range instead of becoming 0-1, with a domainCollect option supporting both view and raw data.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.