mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56:35 +00:00
Enable chart animations (#23311)
This commit is contained in:
parent
08459394a6
commit
6e2f0d8c9b
@ -99,7 +99,6 @@ export class StateHistoryChartLine extends LitElement {
|
||||
) {
|
||||
this._chartOptions = {
|
||||
parsing: false,
|
||||
animation: false,
|
||||
interaction: {
|
||||
mode: "nearest",
|
||||
axis: "xy",
|
||||
|
@ -103,7 +103,6 @@ export class StateHistoryChartTimeline extends LitElement {
|
||||
this._chartOptions = {
|
||||
maintainAspectRatio: false,
|
||||
parsing: false,
|
||||
animation: false,
|
||||
scales: {
|
||||
x: {
|
||||
type: "time",
|
||||
|
@ -194,7 +194,6 @@ export class StatisticsChart extends LitElement {
|
||||
private _createOptions(unit?: string) {
|
||||
this._chartOptions = {
|
||||
parsing: false,
|
||||
animation: false,
|
||||
interaction: {
|
||||
mode: "nearest",
|
||||
axis: "x",
|
||||
|
@ -145,7 +145,6 @@ class HaConfigHardware extends SubscribeMixin(LitElement) {
|
||||
protected willUpdate(): void {
|
||||
if (!this.hasUpdated) {
|
||||
this._chartOptions = {
|
||||
animation: false,
|
||||
responsive: true,
|
||||
scales: {
|
||||
y: {
|
||||
|
@ -57,7 +57,6 @@ export function getCommonOptions(
|
||||
|
||||
const options: ChartOptions = {
|
||||
parsing: false,
|
||||
animation: false,
|
||||
interaction: {
|
||||
mode: "x",
|
||||
},
|
||||
|
@ -111,7 +111,6 @@ export class HuiEnergyDevicesGraphCard
|
||||
private _createOptions = memoizeOne(
|
||||
(locale: FrontendLocaleData): ChartOptions => ({
|
||||
parsing: false,
|
||||
animation: false,
|
||||
responsive: true,
|
||||
maintainAspectRatio: false,
|
||||
indexAxis: "y",
|
||||
|
Loading…
x
Reference in New Issue
Block a user