[FEATURE]: Allow annotations for scatterternary to reference ternary axes (a,b,c) instead of (x,y)
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
Hi,
Description
For scatterternary plots, it would great if we could specify the annotation positions relative to the a,b, c axes instead of x and y.
Why should this feature be added?
Currently, we have to convert the annotations a,b, c positions into (arbitrary for this plot type) cartesian coordinate space; it would be easier (and be more logical) to be able to use a,b, c in the annotation declaration, e.g:
annotations: [
{
//x: 0.1,
//y: 0.135,
a: 10,
b: 70,
c: 20,
text: "my text"
}
]
Many thanks
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 locating the scatterternary annotation handling and the annotation declaration path in plotly.js. Check how annotation positions currently use x and y, then determine how a, b, and c coordinates should be interpreted for this plot type. Done means annotations can accept ternary-axis positions without requiring cartesian conversion, with coverage for the requested example.
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
- 48/100