Skip to content

Commit

Permalink
fix(explore): Pie chart label formatting when series is temporal (apa…
Browse files Browse the repository at this point in the history
  • Loading branch information
kgabryje authored and ofekisr committed Feb 8, 2022
1 parent ebde45a commit 1e02a86
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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;
}

Expand Down

0 comments on commit 1e02a86

Please sign in to comment.