From a729f04695be75b5302781fbcebff6ef61a95c7e Mon Sep 17 00:00:00 2001 From: goto-loop <102797966+goto-loop@users.noreply.github.com> Date: Wed, 30 Oct 2024 21:59:06 +0100 Subject: [PATCH] fix(chart): apply number format in Box Plot tooltip only where necessary (#27142) --- .../plugin-chart-echarts/src/BoxPlot/transformProps.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/BoxPlot/transformProps.ts b/superset-frontend/plugins/plugin-chart-echarts/src/BoxPlot/transformProps.ts index 8150c3e3e..5eb80b1a6 100644 --- a/superset-frontend/plugins/plugin-chart-echarts/src/BoxPlot/transformProps.ts +++ b/superset-frontend/plugins/plugin-chart-echarts/src/BoxPlot/transformProps.ts @@ -229,10 +229,10 @@ export default function transformProps( `Median: ${numberFormatter(value[3])}`, `1st Quartile: ${numberFormatter(value[2])}`, `Min: ${numberFormatter(value[1])}`, - `# Observations: ${numberFormatter(value[7])}`, + `# Observations: ${value[7]}`, ]; if (value[8].length > 0) { - stats.push(`# Outliers: ${numberFormatter(value[8].length)}`); + stats.push(`# Outliers: ${value[8].length}`); } return headline + stats.join('
'); },