apache / apache/echarts

[Feature] Tooltip missing trigger: stack

Open
#21,653 0 comments 0 reactions 0 assignees View on GitHub
en new-feature pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### What problem does this feature solve?

Context:
A very basic chart showing bars with 5 (or N) series (activities), 2 (or N) stacks (people) , and several categories (weeks).
There is a jsfiddle https://jsfiddle.net/j6e19myk/1/ showing a working example.

All works fine thanks to your excellent work.

Feature:
All works fine, but the tooltip. I'd like a kind of option like "trigger: stack" so the tooltip could display only the values belonging to the stack being under the mouse.
Unless my data should be rearranged but I can't imagine how, since the results are as expected.

Best regards
Pierre.

### What does the proposed API look like?

This is only a feature request.

Contributor guide

Open the contributing guide

Research direction

Start with the linked JSFiddle and inspect the current tooltip behavior for the multi-series, multi-stack bar chart. Determine how a stack is identified under the pointer and define what a `trigger: stack` option should display; the work is done when the hovered stack shows only its corresponding values without changing existing tooltip behavior.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.