fix(chart): apply number format in Box Plot tooltip only where necessary (#27142)

This commit is contained in:
goto-loop 2024-10-30 21:59:06 +01:00 committed by GitHub
parent 849d426e06
commit a729f04695
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -229,10 +229,10 @@ export default function transformProps(
`Median: ${numberFormatter(value[3])}`, `Median: ${numberFormatter(value[3])}`,
`1st Quartile: ${numberFormatter(value[2])}`, `1st Quartile: ${numberFormatter(value[2])}`,
`Min: ${numberFormatter(value[1])}`, `Min: ${numberFormatter(value[1])}`,
`# Observations: ${numberFormatter(value[7])}`, `# Observations: ${value[7]}`,
]; ];
if (value[8].length > 0) { if (value[8].length > 0) {
stats.push(`# Outliers: ${numberFormatter(value[8].length)}`); stats.push(`# Outliers: ${value[8].length}`);
} }
return headline + stats.join('<br/>'); return headline + stats.join('<br/>');
}, },