allow boxes of different height on the timeline graph
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 18.8k
- Forks
- 2.8k
- Avg merge
- 16h 26m
- Merged PRs (30d)
- 21
Description
Hi,
I have a situation where I would like to visualize the burn rate of projects on a timeline. It would be most logical to present this as the height of each box. Currently every row in the timeline graph is of uniform height, and there is no provision for changing the size.
Would it be possible to add a new feature for varying heights within the timeline graph? Something like this (in Plotly Express):
df = pd.DataFrame([
dict(Task="Project A", Start='2009-01-01', Finish='2009-02-28', Burnrate=200),
dict(Task="Project B", Start='2009-03-05', Finish='2009-04-15', Burnrate=75),
dict(Task="Project C", Start='2009-02-20', Finish='2009-05-30', Burnrate=110)
])
fig = px.timeline(df, x_start="Start", x_end="Finish", y="Task", size="Burnrate")
fig.show()
Also, while the boxes can be drawn very slim (low size values), there probably needs to be a minimum row height determined by the label text.
Something similar could probably be built by stacking bar charts or area plots in one facet column, but I think the resulting graph would be too high and might also be visually too complicated.
Cheers,
--Martin
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Plotly Express timeline entry point and the provided Python example. Determine how varying Burnrate-based box heights and a label-driven minimum row height should behave, then validate the feature with timeline examples and tests covering different sizes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- plotly, python
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100