diff --git a/plugins/woocommerce-admin/packages/components/src/chart/d3chart/legend.js b/plugins/woocommerce-admin/packages/components/src/chart/d3chart/legend.js index 5dbaa1ccaae..3e8f63f8c38 100644 --- a/plugins/woocommerce-admin/packages/components/src/chart/d3chart/legend.js +++ b/plugins/woocommerce-admin/packages/components/src/chart/d3chart/legend.js @@ -61,7 +61,7 @@ class D3Legend extends Component { } = this.props; const { isScrollable } = this.state; const numberOfRowsVisible = data.filter( row => row.visible ).length; - const showTotalLabel = legendDirection === 'column' && data.length > numberOfRowsVisible && totalLabel; + const showTotalLabel = legendDirection === 'column' && data.length > selectionLimit && totalLabel; const visibleKeys = data.filter( key => key.visible );