Skip to content

Commit

Permalink
Added legend
Browse files Browse the repository at this point in the history
  • Loading branch information
dmenne committed Jan 12, 2025
1 parent c597637 commit 757cf43
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
14 changes: 10 additions & 4 deletions R/app_server.R
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,16 @@ app_server = function(input, output, session) {

# ----------- Help-related functions --------------------

observeEvent(input$help_about, {
ano_modal("about")
})

# ----------- Legend text --------------------
output$legend_text = renderUI({
req(update_network())
HTML('<small>Arrows<small> Percentages: expert classifications. <span style="color:orange">Orange:</span>majority. <span style="color:green">Green:</span> consensus if available</small></small>')
})

# ----------- Patient text --------------------
output$patient_text = renderUI({
req(record())
Expand Down Expand Up @@ -683,10 +693,6 @@ app_server = function(input, output, session) {
}
})

observeEvent(input$help_about, {
ano_modal("about")
})

# classification_method() with ignoreInit
observeEvent(classification_method(), {
is_example = is_example(isolate(record()))
Expand Down
1 change: 1 addition & 0 deletions R/app_ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ app_ui = function() {
fluidRow(
id = "patient_panel",
column(12, uiOutput("patient_text")),
column(12, uiOutput("legend_text")),
column(10, mod_visnet_ui("ano", height = 300)),
column(2,
id = "save_panel",
Expand Down

0 comments on commit 757cf43

Please sign in to comment.