Skip to content
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

[Bug]: tm_g_ae_sub module AE table is not clearly visible #245

Open
kartikeyakirar opened this issue Nov 29, 2023 · 0 comments
Open

[Bug]: tm_g_ae_sub module AE table is not clearly visible #245

kartikeyakirar opened this issue Nov 29, 2023 · 0 comments
Labels
bug Something isn't working core

Comments

@kartikeyakirar
Copy link
Contributor

kartikeyakirar commented Nov 29, 2023

What happened?

In Chrome, the visibility of the AE table is compromised, as the labels overcrowd and extend beyond the table's boundaries. This issue occurs due to the table adjusting to fit the available width. However, at a 70-80% zoom level, the table's appearance improves.

we could consider to implement a bottom scrollbar or set a minimum width.

At zoom 100% labes are going outside of the plot.
image
At zoom 70% table looks ok
image

Sample App

# Example using stream (ADaM) dataset
data <- cdisc_data() |>
  within({
    ADSL <- rADSL
    ADAE <- rADAE
  })

datanames(data) <- c("ADSL", "ADAE")
join_keys(data) <- default_cdisc_join_keys[datanames(data)]

app <- init(
  data = data,
  modules = modules(
    tm_g_ae_sub(
      label = "AE by Subgroup",
      dataname = "ADAE",
      arm_var = teal.transform::choices_selected(
        selected = "ACTARMCD",
        choices = c("ACTARM", "ACTARMCD")
      ),
      group_var = teal.transform::choices_selected(
        selected = c("SEX", "REGION1", "RACE"),
        choices = c("SEX", "REGION1", "RACE")
      ),
      plot_height = c(600, 200, 2000)
    )
  )
)
shinyApp(app$ui, app$server)
@kartikeyakirar kartikeyakirar added the bug Something isn't working label Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core
Projects
None yet
Development

No branches or pull requests

2 participants