Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

是使用 data-view 的 source 来重新设置新的数据吗?

Open
#52 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by reading the source and transform entry points referenced in the issue, then inspect any existing tests covering repeated data updates and connector reuse. Determine whether a new data value can reuse the existing connector and transforms, or whether another update method is intended; document or test the confirmed behavior.

Written by the indexing model from the issue text.

Description

像下面这样初始化的时候已经设置了 connector, transform:

dv.source(data, {
  type: 'topojson',
});

dv.transform({
  type: 'filter',
  callback(row) {
    return row.Run !== "1";
  }
});

如果我此时有新的 data, 可以重新使用 source 方法设置数据, 这时候会重新用原来的 transform 的来处理一遍新数据。
但是依旧需要在 souce 方法中提供 connector 配置, 这个 connector 有必要在重新传进去吗? 按我的理解是应该复用, 虽然传进去也没什么问题。

或者有什么其他用来设置新的数据的方法?

Dominant language
TypeScript
Stars
251
Forks
49
PR merge metrics
No merged PRs in 30d

Getting set up

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.

More from antvis/data-set

All issues in antvis/data-set

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.