United4Surveillance / signal-detection-tool

A tool for detection of signals in infectious disease surveillance data.
Other
8 stars 0 forks source link

[BUG] Map legend has double case title #320

Open PvomFelde opened 2 months ago

PvomFelde commented 2 months ago

Describe the Bug

Map legend has now a double case title. Noticed under PR #314

Comment by Thomas: I tried to replicate the double-"Cases" bug without luck on the same Linux-server as AnjaMJ. On my Windows laptop, however, I see the bug - but it is also unrelated to the pull request code (I tried uncommenting the changes). Comparing the HTML-report interactive vs static it appears the double-"Cases" is introduced in the interactive figure only. The plotly-package version is the same on both machines.

I have tried with the following package versions: ggplot2: Windows laptop (R 4.4.0): 3.5.1 Linux (R 4.0.2): 3.4.4 plotly: 4.10.4

So maybe it is ggplotly issue with a newer ggplot2 version?

Expected Behavior

Remove the doubled "Cases" below the color scale for the cases

Screenshots / Code Snippets (if applicable)

If applicable, add screenshots, code snippets, or logs to help explain your problem.

Environment (please complete the following information):

Additional Context

Add any other context about the problem here.