mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +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 = {
|
this._chartOptions = {
|
||||||
parsing: false,
|
parsing: false,
|
||||||
animation: false,
|
|
||||||
interaction: {
|
interaction: {
|
||||||
mode: "nearest",
|
mode: "nearest",
|
||||||
axis: "xy",
|
axis: "xy",
|
||||||
|
@ -103,7 +103,6 @@ export class StateHistoryChartTimeline extends LitElement {
|
|||||||
this._chartOptions = {
|
this._chartOptions = {
|
||||||
maintainAspectRatio: false,
|
maintainAspectRatio: false,
|
||||||
parsing: false,
|
parsing: false,
|
||||||
animation: false,
|
|
||||||
scales: {
|
scales: {
|
||||||
x: {
|
x: {
|
||||||
type: "time",
|
type: "time",
|
||||||
|
@ -194,7 +194,6 @@ export class StatisticsChart extends LitElement {
|
|||||||
private _createOptions(unit?: string) {
|
private _createOptions(unit?: string) {
|
||||||
this._chartOptions = {
|
this._chartOptions = {
|
||||||
parsing: false,
|
parsing: false,
|
||||||
animation: false,
|
|
||||||
interaction: {
|
interaction: {
|
||||||
mode: "nearest",
|
mode: "nearest",
|
||||||
axis: "x",
|
axis: "x",
|
||||||
|
@ -145,7 +145,6 @@ class HaConfigHardware extends SubscribeMixin(LitElement) {
|
|||||||
protected willUpdate(): void {
|
protected willUpdate(): void {
|
||||||
if (!this.hasUpdated) {
|
if (!this.hasUpdated) {
|
||||||
this._chartOptions = {
|
this._chartOptions = {
|
||||||
animation: false,
|
|
||||||
responsive: true,
|
responsive: true,
|
||||||
scales: {
|
scales: {
|
||||||
y: {
|
y: {
|
||||||
|
@ -57,7 +57,6 @@ export function getCommonOptions(
|
|||||||
|
|
||||||
const options: ChartOptions = {
|
const options: ChartOptions = {
|
||||||
parsing: false,
|
parsing: false,
|
||||||
animation: false,
|
|
||||||
interaction: {
|
interaction: {
|
||||||
mode: "x",
|
mode: "x",
|
||||||
},
|
},
|
||||||
|
@ -111,7 +111,6 @@ export class HuiEnergyDevicesGraphCard
|
|||||||
private _createOptions = memoizeOne(
|
private _createOptions = memoizeOne(
|
||||||
(locale: FrontendLocaleData): ChartOptions => ({
|
(locale: FrontendLocaleData): ChartOptions => ({
|
||||||
parsing: false,
|
parsing: false,
|
||||||
animation: false,
|
|
||||||
responsive: true,
|
responsive: true,
|
||||||
maintainAspectRatio: false,
|
maintainAspectRatio: false,
|
||||||
indexAxis: "y",
|
indexAxis: "y",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user