Skip to content

Commit 2d9ec87

Browse files
committed
hide legend on single-package popularity chart
1 parent 394ce92 commit 2d9ec87

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/components/popularity-chart.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ class PopularityChart extends HTMLElement {
309309
: lineTooltipHandler,
310310
},
311311
legend: {
312+
display: data.datasets.length > 1,
312313
align: isSmallScreen ? "start" : "center",
313314
labels: {
314315
color: textColor,

0 commit comments

Comments
 (0)