Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(708)

Unified Diff: packages/charted/lib/locale/format/number_format.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « packages/charted/lib/core/utils/lists.dart ('k') | packages/charted/lib/svg/axis.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « packages/charted/lib/core/utils/lists.dart ('k') | packages/charted/lib/svg/axis.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698