You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Support Curved-Boundary Bar Charts with Dynamic Phase/Threshold Detection #5672
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:
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.
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.
@cnlnr This is probably too specific to include in the library as-is. We'd be happy to consider a more general-purpose API for these types of interactions.
Activity
robertclaus commentedon Jul 22, 2026
@cnlnr thank you for suggesting this. Do you have a suggestion for what the API in Plotly.js / Plotly.py would look for this?
robertclaus commentedon Jul 22, 2026
Linking related issue in Dash: plotly/dash#3913
cnlnr commentedon Jul 22, 2026
@robertclaus My coding ability is limited and I mainly rely on AI to write code, so I’m not really suitable to give API suggestions.
emilykl commentedon Jul 22, 2026
@cnlnr This is probably too specific to include in the library as-is. We'd be happy to consider a more general-purpose API for these types of interactions.