diff --git a/packages/x-charts/src/Gauge/GaugeValueText.tsx b/packages/x-charts/src/Gauge/GaugeValueText.tsx index ace6f9607344..a7c054eae2d3 100644 --- a/packages/x-charts/src/Gauge/GaugeValueText.tsx +++ b/packages/x-charts/src/Gauge/GaugeValueText.tsx @@ -14,7 +14,7 @@ export interface GaugeValueTextProps extends Omit { } function defaultFormatter({ value }: GaugeFormatterParams) { - return value === null ? 'NaN' : value.toLocaleString(); + return value === null ? null : value.toLocaleString(); } function GaugeValueText(props: GaugeValueTextProps) { const { text = defaultFormatter, className, ...other } = props;