apache / apache/echarts

[Feature] Add data range threshold to show/hide symbol

Offen
#19,167 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
en new-feature topic: line
Vorherrschende Sprache
TypeScript
Sterne
67.3k
Forks
19.8k
Ø Merge
15 Std. 17 Min.
Gemergte PRs (30 T.)
5

Beschreibung

### What problem does this feature solve?

The chart does not look good with too many data and symbols, so that would be useful to add threshold to show/hide symbol based on the number of data in a certain range. Technically we can already do that by using event function, but this new property makes our life easier.
For example, if threshold is 50 and there are 51 data in the range, hide symbol. If there are less than or equal to 50 data, show the symbol.

image

### What does the proposed API look like?

In the `dataZoom` property, there should be something like this.

```js
symbolThreashold: {
threshold: number,
type: 'show' | 'hide'
}
```

`threshold ` takes the number of data threshold in the range. `type` takes ` 'show' | 'hide'`. `type` indicates that when `show` is taken, show the symbol when a number of data in the range, otherwise hide the symbol. When `hide` is taken, hide the symbol when a number of data in the range. otherwise show the symbol.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginnen Sie mit der Überprüfung der bestehenden dataZoom-Konfiguration und des im Issue erwähnten event-function-Ansatzes. Definieren Sie, wie sich der vorgeschlagene symbolThreashold-Schwellenwert und der show/hide-Typ verhalten sollen, wenn sich der sichtbare Datenbereich ändert. Als abgeschlossen gilt die Aufgabe, wenn die API implementiert ist und die Symbole bei Zählwerten über, unter und gleich dem Schwellenwert das spezifizierte Verhalten zeigen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
typescript
Bereich
data-visualization
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
30/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.