diff --git a/widgets/linechart/value_formatter.go b/widgets/linechart/value_formatter.go index 35e71d5..c629469 100644 --- a/widgets/linechart/value_formatter.go +++ b/widgets/linechart/value_formatter.go @@ -69,7 +69,7 @@ func durationSingleUnitPrettyFormat(d time.Duration, decimals int) string { } func suffixDecimalFormat(decimals int, suffix string) string { - suffix = strings.ReplaceAll(suffix, "%", "%%") // safe `%` character for fmt. + suffix = strings.Replace(suffix, "%", "%%", -1) // Safe `%` character for fmt. return fmt.Sprintf("%%.%df%s", decimals, suffix) }