Skip to content

Commit 893dba2

Browse files
authored
CHARTS-139: Fix zero value tooltip in conversion funnel chart. (#46106)
* CHARTS-139: Fix zero value tooltip. * changelog
1 parent 42ca235 commit 893dba2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: fixed
3+
4+
Charts: Fix zero value tooltip in conversion funnel chart.

projects/js-packages/charts/src/components/conversion-funnel-chart/conversion-funnel-chart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ const ConversionFunnelChartInternal: FC< ConversionFunnelChartProps > = ( {
244244
<div className={ styles[ 'tooltip-title' ] }>{ step.label }</div>
245245
<div className={ styles[ 'tooltip-content' ] }>
246246
{ formatPercentage( step.rate ) }
247-
{ step.count && ` • ${ step.count.toLocaleString() } items` }
247+
{ ` • ${ step.count ?? 'no' } items` }
248248
</div>
249249
</>
250250
);

0 commit comments

Comments
 (0)