[FEATURE]: Add separate types for each axis type
Open
Nobody has claimed this yet.
enhancement
feature
P2
plotly-internal
size: 3
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
Description
In #7680, types are being added. The LayoutAxis type is used in a number of places where a more specific axis type should be used: CartesianAxis, PolarAxis, etc. There should be specific types for each axis.
Why should this feature be added?
To have better type safety.
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 by reviewing the type additions in #7680 and searching the repository for uses of LayoutAxis. Identify the axis contexts that need distinct types, such as CartesianAxis and PolarAxis, then update those usages so the resulting types provide stronger type safety.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100