Applies advanced custom styling to the legend of a Plotly figure.
This function adds a box around each individual legend item and changes legend symbols to rectangles.
The modifications are applied using JavaScript via htmlwidgets::onRender().
Arguments
- fig
A Plotly figure object created by
plotly::plot_ly()or similar.
See also
Other plotly:
ro_ply_add_theme(),
ro_ply_cursor(),
ro_ply_dim(),
ro_ply_disable_toolbar(),
ro_ply_focus_linechart(),
ro_ply_keyboard_nav_barchart(),
ro_ply_keyboard_nav_bargraph(),
ro_ply_keyboard_nav_legend(),
ro_ply_keyboard_nav_linechart(),
ro_ply_keyboard_nav_trendline(),
ro_ply_theme(),
ro_ply_title()
