added % special case
This commit is contained in:
@@ -83,6 +83,11 @@ def unit_formatter(
|
||||
def formatter(val):
|
||||
return f"{val:.{decimals}g}"
|
||||
|
||||
elif unit == "%":
|
||||
|
||||
def formatter(val):
|
||||
return f"{100*val:.{decimals}g}%"
|
||||
|
||||
else:
|
||||
|
||||
def formatter(val):
|
||||
|
||||
Reference in New Issue
Block a user