Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kgabryje committed Jun 28, 2023
1 parent a40f28e commit f869484
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,13 @@ const getYAxisFormatter = (
if (forcePercentFormatter) {
return getNumberFormatter(',.0%');
}
if (isSavedMetric(metrics[0]) && customFormatters[metrics[0]]) {
return customFormatters[metrics[0]];
const metricsArray = ensureIsArray(metrics);
if (
metricsArray.length === 1 &&
isSavedMetric(metricsArray[0]) &&
customFormatters[metricsArray[0]]
) {
return customFormatters[metricsArray[0]];
}
return getNumberFormatter(yAxisFormat);
};
Expand Down

0 comments on commit f869484

Please sign in to comment.