Allow indexing data in pmeta using x and y coordinates
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 18.3k
- Forks
- 2k
- Ø Merge
- 2 T. 12 Std.
- Gemergte PRs (30 T.)
- 28
Beschreibung
Problem Description.
Displaying a heatmap, I'd like to include in the hover box some data which depends only on the X (column) or Y (row).
Describe the solution you'd like
Allow specifying %{data.pmeta.foo.%{x}} and/or %{data.pmeta.bar.%{y}} in the hovertemplate.
In general, if a path element is in the format %{...}, then evaluate it, and use this as the next key.
Describe alternatives you've considered
It is possible to specify per-entry hover text for a heatmap, but this would require precomputing and sending much more data between the client and the server (N * M complete texts instead of N + M text fragments).
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die Verarbeitung von hovertemplate und die Auflösung von pmeta-Pfaden für Heatmaps zu lesen. Bestimme, wie auf x und y basierende Pfadelemente ausgewertet werden sollten, und überprüfe anschließend, dass der Hover-Text die angeforderten Formen %{data.pmeta.foo.%{x}} und %{data.pmeta.bar.%{y}} verwenden kann, ohne Text pro Eintrag zu benötigen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- Bereich
- data-visualization
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100