plotly / plotly/plotly.py

[FEATURE]: Support Curved-Boundary Bar Charts with Dynamic Phase/Threshold Detection

Offen
#5,672 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

enhancement feature P3 size: 5
Vorherrschende Sprache
Python
Sterne
18.8k
Forks
2.8k
Ø Merge
16 Std. 26 Min.
Gemergte PRs (30 T.)
21

Beschreibung

What problem does this feature solve?

In physical domain modeling (such as thermodynamic P-T phase diagrams), industrial monitoring, and multi-parameter threshold analysis, data visualization often requires representing dynamic bar elements within a two-dimensional parameter space that interact with non-linear, curved decision boundaries.

Current Limitations:
  1. Linear/Static Boundaries: Current shapes/shapes annotations in Plotly primarily target horizontal, vertical, or simple linear lines. Defining polynomial or spline-based curved boundary lines for dynamic spatial partitioning is not natively streamlined.
  2. Complex Collision Logic: Calculating real-time intersections (collision detection) between moving/resizing bar vertices (e.g., X position = Pressure, Y height = Temperature) and curved thresholds to dynamically update bar styling (e.g., solid, liquid, gas, or custom status) is mathematically complex to implement manually on top of standard trace types.
Expected Experience:

We hope Plotly could consider providing native support or built-in mechanisms for curved decision boundaries. When a bar's position along the X-axis or height along the Y-axis changes, the chart can evaluate its top vertex against curved boundaries to trigger real-time state changes and dynamic styling.


🔗 Live Demo & Repository

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 mit der verlinkten Live-Demo und dem Repository und prüfe anschließend die bestehende Unterstützung von plotly.py für Shapes und Annotations, die im Issue beschrieben ist. Es ist keine bestimmte Datei oder kein bestimmter Test angegeben; definiere vor der Implementierung den API-Umfang und die Akzeptanzkriterien für gekrümmte Begrenzungen, Kollisionserkennung und dynamisches Balken-Styling.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
data-visualization
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Ruhig
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
28/100

Neue Issues direkt in Ihr Postfach

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