Skip to content

Commit 31f8032

Browse files
authored
ID:318005 [dv.papo] Setting analysis_indicator to NULL causing loss of plot legend (#43)
* Force legend visibility * Bumped minor version number on both DESCRIPTION and NEWS.md * RoxygenNote set to 7.3.2
1 parent 9f180c7 commit 31f8032

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: dv.papo
22
Title: Patient Profile
3-
Version: 2.1.1-9000
3+
Version: 2.1.1-9001
44
Authors@R:
55
c(person("Boehringer-Ingelheim Pharma GmbH & Co.KG", role = c("cph", "fnd")),
66
person(given = "Korbinian",

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# dv.papo 2.1.1-9001
2+
3+
- Fixed issue where setting analysis_indicator to NULL caused loss of plot legend.
4+
15
# dv.papo 2.1.1-9000
26

37
- Fixed issue with plot displays when POSIXt date-time variables used for the timeline limits.

R/mod_plots.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,10 @@ patient_plot_server <- function(id, subject_var,
424424
heights = heights / sum(heights)
425425
)
426426

427+
# Force legend visibility after subplot construction, since by default
428+
# if any plot does not have a legend then combined plot loses legend.
429+
plots$x$layout$showlegend <- TRUE
430+
427431
x_limits_z <- x_limits - sl_info[["trt_start_date"]]
428432
plots <- silence_warning(
429433
plotly::layout(plots, height = sum(heights), xaxis = list(range = x_limits_z)),

0 commit comments

Comments
 (0)