Skip to content

Open more-info from energy pie chart legend, enlarge legend toggle on touch#52506

Merged
bramkragten merged 2 commits into
devfrom
fix-energy-pie-legend-more-info
Jun 11, 2026
Merged

Open more-info from energy pie chart legend, enlarge legend toggle on touch#52506
bramkragten merged 2 commits into
devfrom
fix-energy-pie-legend-more-info

Conversation

@MindFreeze

@MindFreeze MindFreeze commented Jun 9, 2026

Copy link
Copy Markdown
Member

Proposed change

Two related fixes to chart legends:

  • The energy devices pie/donut chart legend now opens the entity more-info dialog when you tap a device name, the same as the other charts. The "Untracked" slice and external statistics (which have no entity) keep toggling visibility instead.
  • On touch devices the legend toggle now has a larger tap target, with the row gap and pointless padding removed so the toggle sits clearly next to its own label. This applies to all chart legends, making the visibility toggle easier to hit on a phone. This changes the spacing and makes the legend a bit less compact on mobile.

Screenshots

Before:
image

After:
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

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 perfect PR recommendations
  • Any generated code has been carefully reviewed for correctness and compliance with project standards.

If user exposed functionality or configuration variables are added/changed:

To help with the load of incoming pull requests:

… touch

The energy devices pie chart legend now opens the entity more-info dialog when tapping a device name, matching the other charts; untracked and external-statistic items keep toggling visibility. On touch devices the legend toggle gets a larger tap target with tighter spacing so it clearly pairs with its label.
@MindFreeze MindFreeze added this to the 2026.6 milestone Jun 9, 2026
@MindFreeze MindFreeze marked this pull request as ready for review June 9, 2026 10:54
@bramkragten bramkragten merged commit 534bea2 into dev Jun 11, 2026
12 checks passed
@bramkragten bramkragten deleted the fix-energy-pie-legend-more-info branch June 11, 2026 13:18
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.

Filtering Statistics Chart entities (legend) difficult on mobile

2 participants