Skip to content

add_annotations should work in 3D #1424

Open
@cpsievert

Description

@cpsievert

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions