Remove Gaps Between Bars in Plotly
问题 I am trying to create a Marimekko chart in R using Plotly. Essentially, this is just a stacked, variable-width bar chart with both bars directly adjacent to one another. Currently, my attempt looks like this: The code to create it is here: bar.test <- plot_ly(type = "bar") %>% layout(title = paste0("Newark Charter vs District BTO Makeup"), xaxis = list(title = ""), yaxis = list(title = "Percent BTO", tickformat = "%")) %>% add_trace(x = ~test1$sch.type, y = ~test1$y, width = ~test1$width,