Closed GillesSanMartin closed 2 years ago
You have to use either top
or bottom
not both.
What you trying to achieve?
Sorry, I thought these options should be used to define the margins (as often in R) not the position. What I was looking for was a way to add some withe space at the bottom of the legend because in my real life example, the last element of the legend was masked (after selector buttons)
This is what I was looking for :
df |>
group_by(Letters) |>
e_chart(x = X) |>
e_scatter(serie = Y, symbol_size = 10) |>
e_grid(left = '20%') |>
e_legend(orient = 'vertical',
left = '2%',
padding = c(50,5,50,5),
selector = list(
list(type = 'inverse', title = 'Invert'),
list(type = 'all', title = 'Reset'))
)
Sorry for the unnecessary disturbance and thank you for developing such a great package !
No worries, don't apologise :)
In the following reproducible example, nothing seems to happen when I change de value of the
bottom
argument ofe_legend
function. If I change thetop
argument value, the legend moves away from the top of the graph as expected.sessionInfo
output :