Skip to content

Commit c847c81

Browse files
committed
Fix confine
1 parent a95df74 commit c847c81

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/components/chart/state-history-chart-line.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,10 @@ export class StateHistoryChartLine extends LitElement {
305305
visualMap: this._visualMap,
306306
tooltip: {
307307
trigger: "axis",
308+
renderMode: "html",
308309
position: "bottom",
309310
align: "center",
311+
confine: true,
310312
formatter: this._renderTooltip,
311313
},
312314
};

src/components/chart/state-history-chart-timeline.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,10 @@ export class StateHistoryChartTimeline extends LitElement {
255255
right: rtl ? labelWidth : 1,
256256
},
257257
tooltip: {
258+
renderMode: "html",
258259
position: "bottom",
259260
align: "center",
261+
confine: true,
260262
formatter: this._renderTooltip,
261263
},
262264
};

src/components/chart/statistics-chart.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,10 @@ export class StatisticsChart extends LitElement {
335335
},
336336
tooltip: {
337337
trigger: "axis",
338+
renderMode: "html",
338339
position: "bottom",
339340
align: "center",
341+
confine: true,
340342
formatter: this._renderTooltip,
341343
},
342344
};

0 commit comments

Comments
 (0)