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

Unified Diff: packages/charted/examples/layout/treemap_demo.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
Index: packages/charted/examples/layout/treemap_demo.dart
diff --git a/packages/charted/examples/layout/treemap_demo.dart b/packages/charted/examples/layout/treemap_demo.dart
index 5733c0a77c5dbf8bfd2133f598695e7aa60f9a92..3108a4b7684dc1389de40aff09355d12150f4de5 100644
--- a/packages/charted/examples/layout/treemap_demo.dart
+++ b/packages/charted/examples/layout/treemap_demo.dart
@@ -59,8 +59,8 @@ main() {
node.enter.append("div")
..styleWithCallback('left', (d, i, e) => '${d.x}px')
..styleWithCallback('top', (d, i, e) => '${d.y}px')
- ..styleWithCallback('width', (d, i, e) => '${max(0, d.dx - 1)}px')
- ..styleWithCallback('height', (d, i, e) => '${max(0, d.dy - 1)}px')
+ ..styleWithCallback('width', (d, i, e) => '${max(0, (d.dx as int) - 1)}px')
+ ..styleWithCallback('height', (d, i, e) => '${max(0, (d.dy as int) - 1)}px')
..styleWithCallback('background', (d, i, e) => d.children.isNotEmpty ?
theme.getColorForKey(d.label, ChartTheme.STATE_NORMAL) : null)
..textWithCallback((d, i, e) => d.children.isNotEmpty ? null : d.label)
« no previous file with comments | « packages/charted/examples/charts/demo_interactive.dart ('k') | packages/charted/lib/charts/behaviors/chart_tooltip.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698