Ability to make points or bar sections editable (ideally with drag and drop)
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
Something like this:
Similar to what is possible with shapes when editable=True is set in the config: https://github.com/plotly/plotly.js/blob/master/src/plot_api/plot_config.js#L47
Changing the position of the point (or bar section) should:
- modify the underlying traces
- trigger an event like restyle or relayout
- be restricted based on the current state of the graph. In the example of the screenshot, it should only be possible that the bar region is moved to "China" or "Canada" and their respective x positions, since those are the available values. Similarly, the y position would be determined by the current "height" of the bar the region is moved to.
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 mit der Konfiguration für editable-shapes in src/plot_api/plot_config.js und vergleiche ihr Verhalten mit der angeforderten Bearbeitung von Punkten und Balkenabschnitten. Lege fest, wie Positionsänderungen die zugrunde liegenden Traces aktualisieren, restyle- oder relayout-Ereignisse auslösen und die verfügbaren kategorialen Werte sowie die Balkenhöhen des Graphen berücksichtigen. Als abgeschlossen gilt die Aufgabe, wenn diese Interaktionen mit den angegebenen Einschränkungen funktionieren.
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
- 25/100