diff --git a/packages/x-charts/src/ChartsAxisHighlight/ChartsAxisHighlight.tsx b/packages/x-charts/src/ChartsAxisHighlight/ChartsAxisHighlight.tsx index ba52a0470815d..38f77bcc6b36d 100644 --- a/packages/x-charts/src/ChartsAxisHighlight/ChartsAxisHighlight.tsx +++ b/packages/x-charts/src/ChartsAxisHighlight/ChartsAxisHighlight.tsx @@ -117,7 +117,7 @@ function ChartsAxisHighlight(props: ChartsAxisHighlightProps) { /> )} - {isBandScaleY && yScale(axisY.value) === undefined && ( + {isBandScaleY && yScale(axisY.value) !== undefined && (