Add logarithmic scale option to Statistics and History graph cards (#29874)

* Add logarithmic scale option to History graph card

* Add logarithmic scale option to Statistics graph card

* Apply suggestions from code review

Use Y-axis instead of vertical axis

Co-authored-by: Fletcher <me@fboyd.me>

---------

Co-authored-by: Fletcher <me@fboyd.me>
This commit is contained in:
wittypluck 2023-11-23 10:03:10 +01:00 committed by GitHub
parent 4b0b2b796f
commit f713391627
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -48,6 +48,11 @@ show_names:
description: If false, no entity names are shown in the card.
type: boolean
default: true
logarithmic_scale:
required: false
description: If true, numerical values on the Y-axis will be displayed with a logarithmic scale.
type: boolean
default: false
{% endconfiguration %}
### Options For Entities

View File

@ -64,6 +64,11 @@ hide_legend:
description: If true, the legend will be hidden.
type: boolean
default: false
logarithmic_scale:
required: false
description: If true, numerical values on the Y-axis will be displayed with a logarithmic scale.
type: boolean
default: false
{% endconfiguration %}
### Options For Entities