plotly / plotly/plotly.py

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

Open
#5,672 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature P3 size: 5
Dominant language
Python
Stars
18.8k
Forks
2.8k
Avg merge
16h 26m
Merged PRs (30d)
21

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked live demo and repository, then review plotly.py's existing shapes and annotations support described in the issue. No specific file or test is identified; define the API scope and acceptance criteria for curved boundaries, collision detection, and dynamic bar styling before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.