-
-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
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
e_gauge: remove plot area margins #568
Comments
@micboat can you add what you tried with e_grid modifications? Thanks! |
@rdatasculptor I tested your approach. Couldn't get the labels on there so I ended up creating each gauge and using combinewidgets to display them. Each chart had different metrics customization. But this is how far I got with your recommendation: Load the librarylibrarian::shelf(echarty, data.table) df <- data.table( tmp <- lapply(ec.data(df, 'names'), function(c) { # ec.data() converts data.frame into named list |
Thanks! I think you put the wrong script in your answer. That's {echarty}, not {echarts4r} :). |
Hi is there any way to completely remove or at least reduce the margins from e_gauge plots? the space between the gauage plots and the rest of the narrative in my quarto document is too noticeable.
I tried setting e_grid but it doesnt seem to apply.
e_charts() %>%
e_y_axis(gridIndex = 0, min=0,max=100) %>%
e_gauge(1.01, "LoA", min = 0, max = 2, splitNumber = 20,
axisLine = list(
lineStyle = list(
color = list(
c(0.4, "red"),
c(0.45, "yellow"),
c(0.55, "green"),
c(0.6, "yellow"),
c(20/20, "red")
)
)
))
Am trying to set up 6 gauges (2 rows 3 cols) compacted but the margins makes that impossible. I tried the e_arrange but it didnt help either
The text was updated successfully, but these errors were encountered: