antvis / antvis/F2

adjust和interaction没办法一起用

Open
#1,087 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
637
PR merge metrics
No merged PRs in 30d

Description

在项目中,要使用interaction的时候,需要用按需加载的写法才能生效
![image](https://user-images.githubusercontent.com/13306747/99666429-f9920980-2aa5-11eb-91dd-e25247ef964d.png)
但是这样写之后,即使加载了adjust
![image](https://user-images.githubusercontent.com/13306747/99666596-247c5d80-2aa6-11eb-8f0f-9249386e9dd2.png)
也会报错。
![image](https://user-images.githubusercontent.com/13306747/99666670-3f4ed200-2aa6-11eb-86b8-5361930e6724.png)
使用的是官网的例子
![image](https://user-images.githubusercontent.com/13306747/99666750-5ab9dd00-2aa6-11eb-8f4f-461f1253b978.png)
相反,全量引入F2则adjust生效,但是interaction不生效,报错了。

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the official examples for on-demand loading and full F2 imports, focusing on the interaction and adjust modules shown in the issue. Compare the two loading approaches and confirm that both adjust and interaction work together without the reported error; the issue is done when the documented examples behave consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.