antvis / antvis/F2

散点图只有一个点时,点击散点获取不到数据,data为[]

Open
#675 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

The issue which is not created via https://antv-issue-helper.surge.sh will be closed immediately.
this.chart.pluginGesture({
gesture: {
doubletap: (data, event) => {
console.log('data = ', data); //输出为[]
// console.log('event = ', event);

},
}];
---

注意:不是用 https://antv-issue-helper.surge.sh 创建的 issue 会被立即关闭。

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with a one-point scatter plot and the shown pluginGesture doubletap callback. Start by tracing the pluginGesture and doubletap entry points to see why the callback receives data as []; done means the clicked point's data is returned, with a regression test covering the single-point case.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.