Skip to content

Better handling of linetype for bar-like traces #1595

Open
@cpsievert

Description

@cpsievert

For one, it should map to marker.line.dash instead of line.dash. Also, the value shouldn't be added to the trace name

zoo_dat <- tibble::tibble(
  animal = rep(c('giraffes', 'orangutans', 'monkeys'), 2),
  count = c(20, 14, 23, 12, 18, 29),
  zoo = rep(c('SF Zoo', 'LA Zoo'), each = 3)
)
plot_ly(zoo_dat) %>%
  add_bars(
    x = ~animal,
    y = ~count,
    color = ~zoo,
    stroke = I("black"),
    linetype = I(5)
  )

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions