Skip to content

Commit

Permalink
fix: Confine tooltip of cartesian charts
Browse files Browse the repository at this point in the history
  • Loading branch information
scottsut committed Sep 19, 2023
1 parent ea3b00d commit 889593a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ class BasicBarChart extends Chart implements IChartLifecycle {
return {
tooltip: {
trigger: 'item',
confine: true,
formatter: this.getTooltipFormatterFunc(
chartDataSet,
groupConfigs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ class BasicDoubleYChart extends Chart {
axisPointer: {
type: 'cross',
},
confine: true,
formatter: this.getTooltipFormmaterFunc(
styleConfigs,
groupConfigs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ class BasicLineChart extends Chart {
return {
tooltip: {
trigger: 'item',
confine: true,
formatter: this.getTooltipFormmaterFunc(
chartDataSet,
groupConfigs,
Expand Down

0 comments on commit 889593a

Please sign in to comment.