Skip to content

Hover text showing only first letter #1125

@tuomastik

Description

@tuomastik

Hover tooltip shows only first letter when color and colors parameters are provided. Without color and colors parameters, the text is shown correctly.

library(plotly)

plot_ly(mtcars, x = ~wt, y = ~hp, z = ~qsec,
        color = as.factor(rownames(mtcars)),
        colors = grDevices::heat.colors(nrow(mtcars)),
        hoverinfo = "text",
        text = rownames(mtcars)) %>% add_markers()

The code above produces the following figure:
image

The following figure is produced without color and colors parameters:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions