We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The legend title is not shown for legends in horizontal orientation.
Here's a line plot with a legend.
library(ggplot2) library(plotly) plt <- ggplot(Orange, aes(age, circumference, group = Tree, color = Tree)) + geom_line()
The plotly version with a vertical legend correctly displays the title.
ggplotly(plt)
If I change to horizontal orientation, the title is no longer present
ggplotly(plt) %>% layout( legend = list( orientation = "h" ) )
Notice that the word "Tree" is not present in this image.
This is a low priority bug since there is a workaround: you can manually specify the legend title.
ggplotly(plt) %>% layout( legend = list( orientation = "h", title = list(text = "Tree") ) )
The text was updated successfully, but these errors were encountered:
Duplicate of #1049 (there's a WIP #1697)
Sorry, something went wrong.
No branches or pull requests
The legend title is not shown for legends in horizontal orientation.
Here's a line plot with a legend.
The plotly version with a vertical legend correctly displays the title.
ggplotly(plt)
If I change to horizontal orientation, the title is no longer present
Notice that the word "Tree" is not present in this image.
This is a low priority bug since there is a workaround: you can manually specify the legend title.
The text was updated successfully, but these errors were encountered: