Closed rdatasculptor closed 4 months ago
not sure why and how, but after a few adjustments I made it work:
df %>%
filter(vargroup == "var2") %>%
e_charts(number) %>%
e_bar(var2,
x_index = 0,
y_index = 0
) %>%
e_data(filter(df, vargroup == "var1")) %>%
e_bar(var1,
y_index = 1,
x_index = 1
) %>%
e_data(filter(df, vargroup == "var3")) %>%
e_bar(var3,
y_index = 2,
x_index = 2
) %>%
e_grid(height = 400) %>%
e_grid(height = 400) %>%
e_grid(height = 400) %>%
e_x_axis(gridIndex = 0, show = FALSE, index = 0) %>%
e_x_axis(gridIndex = 1, show = FALSE, index = 1) %>%
e_x_axis(gridIndex = 2, show = FALSE, index = 2) %>%
e_y_axis(gridIndex = 0, show = TRUE, index = 0) %>%
e_y_axis(gridIndex = 1, show = TRUE, index = 1) %>%
e_y_axis(gridIndex = 2, show = TRUE, index = 2) %>%
e_legend(selectedMode = "single")
I am experimenting with giving charts in different grids in the same canvas its own x axis maximum. The end goal is to be able to switch between the charts using the legend.
Please take a look at this example:
As you can see. the x axis takes the maximum of biggest chart. How can I give all the grids its own x axis maximum?
If I do something like this:
then all the x axes use the same max.
Is there a solution for this problem?