mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
fix(explore): Pie chart label formatting when series is temporal (#18216)
This commit is contained in:
committed by
GitHub
parent
9671384efe
commit
37430d4044
@@ -88,9 +88,6 @@ export function formatSeriesName(
|
||||
if (name === undefined || name === null) {
|
||||
return NULL_STRING;
|
||||
}
|
||||
if (typeof name === 'number') {
|
||||
return numberFormatter ? numberFormatter(name) : name.toString();
|
||||
}
|
||||
if (typeof name === 'boolean') {
|
||||
return name.toString();
|
||||
}
|
||||
@@ -99,6 +96,9 @@ export function formatSeriesName(
|
||||
|
||||
return timeFormatter ? timeFormatter(d) : d.toISOString();
|
||||
}
|
||||
if (typeof name === 'number') {
|
||||
return numberFormatter ? numberFormatter(name) : name.toString();
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user