Skip to content

Commit

Permalink
refact(data-viz): remove X/Y/Color input auto-update
Browse files Browse the repository at this point in the history
Finally I don't think it brings a lot to update automatically
the selected variables, also it was
not correctly implemented.
  • Loading branch information
juliendiot42 committed Sep 24, 2024
1 parent 88c2c76 commit 3a13a67
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/fun/func_data-viz.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,12 @@ data_viz_server <- function(id, plot_data) {
var_list <- c(none_value, var_list)
updateSelectInput(session, "x_var",
choices = var_list,
selected = ifelse(!is_null_var(input$x_var) && input$x_var %in% var_list, input$x_var, var_list[2])
)
updateSelectInput(session, "y_var",
choices = var_list,
selected = ifelse(!is_null_var(input$x_var) && input$y_var %in% var_list, input$y_var, var_list[1])
)
updateSelectInput(session, "col_var",
choices = var_list,
selected = ifelse(!is_null_var(input$x_var) && input$col_var %in% var_list, input$col_var, var_list[1])
)
})

Expand Down

0 comments on commit 3a13a67

Please sign in to comment.