Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotly legend shows unformatted colours #177

Open
tomjemmett opened this issue Jul 14, 2023 · 0 comments
Open

Plotly legend shows unformatted colours #177

tomjemmett opened this issue Jul 14, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@tomjemmett
Copy link
Member

The ggplot object uses a formatter in scale_colour_manual (labels = ptd_title_case) to convert text like "common_cause" to "Common Cause". It also hides the title "point_colour".

While we base the plotly chart off of the ggplot code, it does not use the formatter in the legend, and it also shows the legend title. This could do with being cleaned up, but it's not immediately obvious from the plotly docs how to do this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant