apache / apache/echarts

[Feature] Tooltip shared option

Open
#20,833 1 comment 0 reactions 0 assignees View on GitHub
en new-feature pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
15h 17m
Merged PRs (30d)
5

Description

### What problem does this feature solve?

When working with multiple series on spesifically line charts currently you can not disable shared tooltip. It always shows all series' tooltips. But sometimes you may want to use seperate tooltips. Making trigger option to 'item' does not work because it makes harder to hover a point. With this feature you should be able to use trigger:'axis' and show the closest value's tooltip on hover. Many chart libraries have this feature currently.

### What does the proposed API look like?

I should be able to hover somewhere in chart area (not just the points in datasets) it should find the closest value of the point i hover in dataset and show its tooltip. i should be able to control this with a parameter. if its true show both tooltips and its not the one i described above.

Image
Image

Contributor guide

Open the contributing guide

Research direction

The issue does not name files, tests, or entry points. Start by locating the tooltip handling for line charts and the existing trigger option; done means a documented parameter can choose between shared tooltips and the closest hovered value while supporting hover anywhere in the chart area.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.