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

Unified Diff: packages/charted/lib/charts/behaviors/chart_tooltip.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/lib/charts/behaviors/chart_tooltip.dart
diff --git a/packages/charted/lib/charts/behaviors/chart_tooltip.dart b/packages/charted/lib/charts/behaviors/chart_tooltip.dart
index 85d4b552c0110211babae2fab372b5d934ca9e7d..308b211ee0e8e7fa500d0fb5bc77823c7a33b35d 100644
--- a/packages/charted/lib/charts/behaviors/chart_tooltip.dart
+++ b/packages/charted/lib/charts/behaviors/chart_tooltip.dart
@@ -91,14 +91,11 @@ class ChartTooltip implements ChartBehavior {
// tooltip for them, if none is selected/hovered, show all.
var activeMeasures = [];
if (showSelectedMeasure) {
- if(_state != null) {
+ if (_state != null) {
activeMeasures.addAll(_state.selection);
- activeMeasures
- .add(_state.preview != null
- ? _state.preview
- : _state.hovered.first);
+ activeMeasures.add(
+ _state.preview != null ? _state.preview : _state.hovered.first);
} else {
-
// If state is null, chart tooltip will not capture selection, but only
// display for the currently hovered measure column.
activeMeasures.add(e.column);
@@ -167,7 +164,7 @@ class ChartTooltip implements ChartBehavior {
y = coord.y + _TOOLTIP_OFFSET;
}
return boundTooltipPosition(
- new math.Rectangle(x, y, rect.width, rect.height));
+ new math.Rectangle(x as num, y as num, rect.width, rect.height));
}
/// Positions the tooltip to be inside of the chart boundary.
« no previous file with comments | « packages/charted/examples/layout/treemap_demo.dart ('k') | packages/charted/lib/charts/behaviors/hovercard.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698