plotly / plotly/plotly.js

[FEATURE]: Add separate types for each axis type

Open
#7,797 0 comments 0 reactions 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.