Skip to content

Commit c1bc87a

Browse files
committed
index: Always show legend, even when there is only one trace.
1 parent 03aac8a commit c1bc87a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/report_scripts/index.Rmd

+2
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,12 @@ tagList(lapply(locations,
9696
mode = 'line',
9797
stackgroup = 'one',
9898
showlegend = TRUE,
99+
name = ~variable,
99100
x = ~dates,
100101
y = ~value,
101102
color = ~variable) %>%
102103
layout (title = location,
104+
showlegend = TRUE,
103105
yaxis = list(title = "Frequency"))
104106
}))
105107
```

0 commit comments

Comments
 (0)