Skip to content

feat: Add more options to customize a number format, use default accuracy & format settings#1233

Open
ildar170975 wants to merge 57 commits intokalkih:devfrom
ildar170975:decimals
Open

feat: Add more options to customize a number format, use default accuracy & format settings#1233
ildar170975 wants to merge 57 commits intokalkih:devfrom
ildar170975:decimals

Conversation

@ildar170975
Copy link
Copy Markdown
Collaborator

@ildar170975 ildar170975 commented Apr 23, 2025

  1. Define decimals options per entity.
  2. Override a card-wide decimal option for each Y-axis by using new decimals_primary_labels & decimals_secondary_labels.
  3. If no decimals options are defined (card-wide or per entity) - use default entity accuracy settings (individual entity accuracy settings are accounted).
  4. Use HA frontend number format settings.

@ildar170975
Copy link
Copy Markdown
Collaborator Author

ildar170975 commented Apr 23, 2025

Implements:
#863
#1010
#1221
#702

@ildar170975 ildar170975 linked an issue Apr 23, 2025 that may be closed by this pull request
@ildar170975 ildar170975 marked this pull request as ready for review April 23, 2025 21:13
zhiayang added a commit to zhiayang/mini-graph-card-yuki that referenced this pull request Sep 3, 2025
@zagi988
Copy link
Copy Markdown

zagi988 commented Feb 1, 2026

Will this be ever added?
It's a very useful feature, please add it.

@ildar170975
Copy link
Copy Markdown
Collaborator Author

It will be added along with a forthcoming feature to show states according to their own settings (number format, precision).

@ildar170975 ildar170975 marked this pull request as draft March 6, 2026 21:14
@ildar170975 ildar170975 changed the title feat: Add "decimals" per entity & "decimals_secondary" options feat: Add more options to customize a number format, use default accuracy & format settings Mar 7, 2026
@ildar170975 ildar170975 linked an issue Mar 7, 2026 that may be closed by this pull request
@ildar170975 ildar170975 marked this pull request as ready for review March 8, 2026 01:11
@ildar170975 ildar170975 marked this pull request as draft March 8, 2026 23:34
@ildar170975 ildar170975 marked this pull request as ready for review March 10, 2026 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants