plotly / plotly/plotly.js

Set scatter chart marker size using coordinates

Offen
#7,384 3 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

feature P3
Vorherrschende Sprache
JavaScript
Sterne
18.3k
Forks
2k
Ø Merge
2 T. 12 Std.
Gemergte PRs (30 T.)
28

Beschreibung

I'd like to set the marker size in scatter charts using coordinates.

My suggestion to implement this would be to add x0, x1, y0, and y1 attributes for scatter chart points, if these attributes are set the marker would scale to fit inside those coordinates. When setting the size using coordinates, the existing marker size attribute could be used as a minimum size.

The purpose of this is to be able to have points which represent a range of data instead of just a singular coordinate. A range of values across only one axis should also be supported.

The existing layout shapes aren't fit for our purpose because they can't be interacted with, and are quite slow for large datasets.

Here is an example of the type of data I would like to present (made using the existing shapes)

There have been related requests for absolute marker sizes already https://github.com/plotly/plotly.js/issues/3682
And similar requests in plotly.py https://github.com/plotly/plotly.py/issues/3535

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, die Implementierung des Scatter-Charts und die zugehörigen Anfragen in den Issues 3682 und plotly.py 3535 zu prüfen, und vergleiche anschließend das CodePen-Beispiel mit dem aktuellen shape-basierten Ansatz. Done sollte x0-, x1-, y0- und y1-Bereiche unterstützen, einschließlich Bereichen auf nur einer Achse, dabei aber die Markierungsgröße als Mindestgröße beibehalten und die Interaktion für große Datensätze erhalten.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

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

Neue Issues direkt in Ihr Postfach

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