Skip to content

Commit

Permalink
Merge pull request #63 from canastro/fix/tooltip-leave
Browse files Browse the repository at this point in the history
fix: remove tooltip on exit chart area
  • Loading branch information
entronad committed Mar 22, 2022
2 parents f808963 + b2f973b commit 047be27
Show file tree
Hide file tree
Showing 3 changed files with 533 additions and 455 deletions.
8 changes: 7 additions & 1 deletion example/lib/pages/interval.dart
Expand Up @@ -78,7 +78,13 @@ class IntervalPage extends StatelessWidget {
Defaults.horizontalAxis,
Defaults.verticalAxis,
],
selections: {'tap': PointSelection(dim: Dim.x)},
selections: {
'hover': PointSelection(
dim: Dim.x,
on: {GestureType.hover},
clear: {GestureType.mouseExit},
)
},
tooltip: TooltipGuide(),
crosshair: CrosshairGuide(),
),
Expand Down

0 comments on commit 047be27

Please sign in to comment.