plotly / plotly/plotly.R

defaultValues doesn't respect numeric values

Open
#1,191 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
2.7k
Forks
641
PR merge metrics
No merged PRs in 30d

Description

TX <- crosstalk::SharedData$new(txhousing, ~year)
p <- ggplot(TX, aes(month, median, group = year)) + geom_line() +
  facet_wrap(~city, ncol = 2)
highlight(ggplotly(p), dynamic = TRUE, selectize = TRUE, defaultValues = 2006)
  • Always transmit strings? How to handle list-columns?
  • How to set things a different color? Named list (e.g, defaultValues = list(red = 2006, blue = 2014))?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the supplied R example using crosstalk::SharedData$new, ggplotly(), and highlight() with defaultValues = 2006. Trace how defaultValues is handled, then clarify expected behavior for numeric values, strings, list-columns, and named color values; the issue is done when those cases have an agreed, tested outcome.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.