Skip to content

Commit

Permalink
✨ (facet) hide single-item legends
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann committed May 3, 2024
1 parent c9a9bd8 commit 9ed1ca1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,8 @@ export class FacetChart
index,
})
)
if (this.facetStrategy === FacetStrategy.metric && newBins.length <= 1)
return []
return newBins
}

Expand Down

0 comments on commit 9ed1ca1

Please sign in to comment.