legend_action | R Documentation |
Legend
e_legend_select(e, name, btn = NULL)
e_legend_unselect(e, name, btn = NULL)
e_legend_toggle_select(e, name, btn = NULL)
e_legend_scroll(e, scroll_index = NULL, legend_id = NULL, btn = NULL)
e |
An |
name |
Legend name. |
btn |
A |
scroll_index |
Controle the scrolling of legend when |
legend_id |
Id of legend. |
e <- CO2 |>
group_by(Type) |>
e_charts(conc) |>
e_scatter(uptake)
e |>
e_legend_unselect("Quebec")
e |>
e_legend_unselect("Quebec", btn = "btn") |>
e_button("btn", "Quebec")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.