apache / apache/echarts

[Bug] 智能吸附指针pointerSize无效,是否提供个示例

Open
#19,540 8 comments 0 reactions 1 assignee Claimed by @Ovilia View on GitHub
pending support
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.4.3

### Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=line-simple&version=5.4.3

### Steps to Reproduce

option = {
useCoarsePointer: true,
pointSize: 100,
pointerSize: 100,
tooltip: {
show:true
},
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value'
},
series: [
{
pointSize: 100,
pointerSize: 100,
data: [150, 230, 224, 218, 135, 147, 260],
type: 'line'
}
]
};

myChart.on('click', function(params) {
alert('1')
});

### Current Behavior

移动到当前折线的点上才显示tooltip;点击当前折线的点才能触发点击事件

### Expected Behavior

期望移动到当前折线的点周围就能显示tooltip;点击当前折线的点周围能触发点击事件

### Environment

_No response_

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.