feat: likert plot definitions

This commit is contained in:
Andreas Gammelgaard Damsbo 2026-03-30 20:18:28 +02:00
commit 18eae4b3a3
No known key found for this signature in database

View file

@ -377,7 +377,7 @@ data_visuals_server <- function(id,
# showNotification(paste0(warn), type = "warning") # showNotification(paste0(warn), type = "warning")
# }, # },
error = function(err) { error = function(err) {
showNotification(paste0(err), type = "err") showNotification(paste0(err), type = "error")
}) })
} }
}, ignoreInit = TRUE) }, ignoreInit = TRUE)
@ -600,6 +600,18 @@ supported_plots <- function() {
secondary.max = 4, secondary.max = 4,
tertiary.type = c("dichotomous"), tertiary.type = c("dichotomous"),
secondary.extra = NULL secondary.extra = NULL
),
plot_euler = list(
fun = "plot_likert",
descr = i18n$t("Likert diagram"),
note = i18n$t(
"Plot survey results"
),
primary.type = c("dichotomous", "categorical"),
secondary.type = c("dichotomous", "categorical"),
secondary.multi = TRUE,
tertiary.type = c("dichotomous", "categorical"),
secondary.extra = NULL
) )
) )
} }