Skip to content

Commit 5a4d1d9

Browse files
Interaction (tooltip) working when "custom label position" == "off" (#760)
Co-authored-by: Niels de Jong <[email protected]>
1 parent b535a01 commit 5a4d1d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chart/bar/BarChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ const NeoBarChart = (props: ChartProps) => {
272272
return { width: this.offsetWidth, height: this.offsetHeight };
273273
};
274274

275-
const extraProperties = positionLabel ? { barComponent: BarComponent } : {};
275+
const extraProperties = positionLabel !== 'off' ? { barComponent: BarComponent } : {};
276276
const canvas = data.length > 30;
277277
const BarChartComponent = canvas ? ResponsiveBarCanvas : ResponsiveBar;
278278

0 commit comments

Comments
 (0)