add_annotations should work in 3D
Open
Nobody has claimed this yet.
difficulty: medium
enhancement
priority: medium
- Dominant language
- R
- Stars
- 2.7k
- Forks
- 641
- PR merge metrics
- No merged PRs in 30d
Description
That is, this should 'just work':
plot_ly(mtcars, x = ~wt, y = ~mpg, z = ~disp) %>%
add_markers() %>%
add_annotations(text = row.names(mtcars))
The tricky bit here is that the annotation array needs to be placed under layout.scene.annotations, not layout.annotations
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 supplied plot_ly example and inspect how add_annotations places annotation arrays for 2D layouts. Trace the 3D layout path, then verify that the annotations are placed under layout.scene.annotations and that the example works with the mtcars markers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100