Index: packages/charted/lib/locale/format/number_format.dart |
diff --git a/packages/charted/lib/locale/format/number_format.dart b/packages/charted/lib/locale/format/number_format.dart |
index 9e938f9990f84d00b2859cef79a0373ff9811860..5964fcd9b3788c898586023dd46e58c5d63f832a 100644 |
--- a/packages/charted/lib/locale/format/number_format.dart |
+++ b/packages/charted/lib/locale/format/number_format.dart |
@@ -141,6 +141,7 @@ class NumberFormat { |
var zcomma = (zfill != null) && comma; |
return (value) { |
+ if (value == null) return '-'; |
var fullSuffix = suffix; |
// Return the empty string for floats formatted as ints. |