Skip to content

Change order of stacked bars for energy usage graph card#30073

Draft
stheid wants to merge 1 commit intohome-assistant:devfrom
stheid:patch-1
Draft

Change order of stacked bars for energy usage graph card#30073
stheid wants to merge 1 commit intohome-assistant:devfrom
stheid:patch-1

Conversation

@stheid
Copy link
Copy Markdown

@stheid stheid commented Mar 9, 2026

changed the ordering such that from_grid and to_grid are are on top and the bottom of the stack

Proposed change

The energy usage plot stacks the positive values from_grid, from_battery and used_solar. For negative values its to_grid and to_battery. I propose to switch to_grid and to_battery because i find it more intuitive to have the own consumption ordered towards the x-axis (the same reason solar has been ordered that way) and grid interaction towards the end of the stack.

Screenshots

image

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

there is no related discussion yet.

Checklist

  • I understand the code I am submitting and can explain how it works.
  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • I have followed the perfect PR recommendations
  • Any generated code has been carefully reviewed for correctness and compliance with project standards.

To help with the load of incoming pull requests:

changed the ordering such that from_grid and to_grid are are on top and the bottom of the stack
Copy link
Copy Markdown

@home-assistant home-assistant bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @stheid

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant