mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-20 02:38:53 +00:00
Fix confine
This commit is contained in:
@@ -305,8 +305,10 @@ export class StateHistoryChartLine extends LitElement {
|
|||||||
visualMap: this._visualMap,
|
visualMap: this._visualMap,
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: "axis",
|
trigger: "axis",
|
||||||
|
renderMode: "html",
|
||||||
position: "bottom",
|
position: "bottom",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
confine: true,
|
||||||
formatter: this._renderTooltip,
|
formatter: this._renderTooltip,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -255,8 +255,10 @@ export class StateHistoryChartTimeline extends LitElement {
|
|||||||
right: rtl ? labelWidth : 1,
|
right: rtl ? labelWidth : 1,
|
||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
|
renderMode: "html",
|
||||||
position: "bottom",
|
position: "bottom",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
confine: true,
|
||||||
formatter: this._renderTooltip,
|
formatter: this._renderTooltip,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -335,8 +335,10 @@ export class StatisticsChart extends LitElement {
|
|||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: "axis",
|
trigger: "axis",
|
||||||
|
renderMode: "html",
|
||||||
position: "bottom",
|
position: "bottom",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
confine: true,
|
||||||
formatter: this._renderTooltip,
|
formatter: this._renderTooltip,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user