Plotly does not work with geom_chicklet
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- r
- Domain
- data-visualization
Research direction
The report provides no repository file or test; start by reproducing the supplied R example with ggplotly(p, tooltip = "text") and compare it with a standard geom_col chart. Trace how ggplotly handles geom_chicklet and verify that the interactive chart renders with the requested text tooltip; the issue does not specify a preferred test location.
Written by the indexing model from the issue text.
Description
I make a lot of bar charts and prefer geom_chicklet over goem_col for presentations
library(ggplot2)
library(plotly)
library(scales)
p <- ggplot(aes(y = perc,
x = response,
fill = fill_color,
text = paste("Response:", response, "
Percent:", percent(perc)))) + # Tooltip content
geom_chicklet() +
coord_flip() +
scale_fill_identity() +
scale_y_continuous(labels = percent_format()) +
labs(title = "Barriers indicated by the survey: these are the reasons people say they don't vote",
y = paste("Percent of the", nrow(combined_surveys_english), "survey respondents"),
caption = "",
x = "") +
theme_colibri() +
theme(axis.text.y = element_text(color = "black", size = 10),
strip.text.y = element_text(angle = 0),
plot.title = element_text(size = 16),
legend.position = "none")
Convert to interactive plot
ggplotly(p, tooltip = "text")
- Dominant language
- R
- Stars
- 2.7k
- Forks
- 641
- PR merge metrics
- No merged PRs in 30d
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.
More from plotly/plotly.R
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
-
save_image Error Open
Difficulty 3/5 1-2 days Newbie friendliness 52/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
easystats/performance#950 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
briandconnelly/airnow#9 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
OHDSI/CohortConstructor#774 ·