Skip to content

Commit 889593a

Browse files
committed
fix: Confine tooltip of cartesian charts
1 parent ea3b00d commit 889593a

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

frontend/src/app/components/ChartGraph/BasicBarChart/BasicBarChart.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ class BasicBarChart extends Chart implements IChartLifecycle {
242242
return {
243243
tooltip: {
244244
trigger: 'item',
245+
confine: true,
245246
formatter: this.getTooltipFormatterFunc(
246247
chartDataSet,
247248
groupConfigs,

frontend/src/app/components/ChartGraph/BasicDoubleYChart/BasicDoubleYChart.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ class BasicDoubleYChart extends Chart {
180180
axisPointer: {
181181
type: 'cross',
182182
},
183+
confine: true,
183184
formatter: this.getTooltipFormmaterFunc(
184185
styleConfigs,
185186
groupConfigs,

frontend/src/app/components/ChartGraph/BasicLineChart/BasicLineChart.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ class BasicLineChart extends Chart {
212212
return {
213213
tooltip: {
214214
trigger: 'item',
215+
confine: true,
215216
formatter: this.getTooltipFormmaterFunc(
216217
chartDataSet,
217218
groupConfigs,

0 commit comments

Comments
 (0)