Enable chart animations (#23311)

This commit is contained in:
Petar Petrov 2024-12-16 15:37:31 +02:00 committed by GitHub
parent 08459394a6
commit 6e2f0d8c9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 0 additions and 6 deletions

View File

@ -99,7 +99,6 @@ export class StateHistoryChartLine extends LitElement {
) {
this._chartOptions = {
parsing: false,
animation: false,
interaction: {
mode: "nearest",
axis: "xy",

View File

@ -103,7 +103,6 @@ export class StateHistoryChartTimeline extends LitElement {
this._chartOptions = {
maintainAspectRatio: false,
parsing: false,
animation: false,
scales: {
x: {
type: "time",

View File

@ -194,7 +194,6 @@ export class StatisticsChart extends LitElement {
private _createOptions(unit?: string) {
this._chartOptions = {
parsing: false,
animation: false,
interaction: {
mode: "nearest",
axis: "x",

View File

@ -145,7 +145,6 @@ class HaConfigHardware extends SubscribeMixin(LitElement) {
protected willUpdate(): void {
if (!this.hasUpdated) {
this._chartOptions = {
animation: false,
responsive: true,
scales: {
y: {

View File

@ -57,7 +57,6 @@ export function getCommonOptions(
const options: ChartOptions = {
parsing: false,
animation: false,
interaction: {
mode: "x",
},

View File

@ -111,7 +111,6 @@ export class HuiEnergyDevicesGraphCard
private _createOptions = memoizeOne(
(locale: FrontendLocaleData): ChartOptions => ({
parsing: false,
animation: false,
responsive: true,
maintainAspectRatio: false,
indexAxis: "y",