Skip to content

feat: add speed distribution histogram to drive details#208

Merged
vide merged 2 commits intomainfrom
feat/speed-histogram
Mar 20, 2026
Merged

feat: add speed distribution histogram to drive details#208
vide merged 2 commits intomainfrom
feat/speed-histogram

Conversation

@vide
Copy link
Owner

@vide vide commented Mar 20, 2026

Summary

  • Adds a speed distribution histogram to the drive details screen, placed after the elevation chart and before the weather section
  • Matches the histogram style from the default Teslamate Grafana drive details dashboard
  • Buckets of 10 km/h (or 5 mph when imperial units)
  • Percentage values: one decimal for values under 10% (e.g. "0.7%"), no decimals otherwise (e.g. "23%")
  • Uses the existing InteractiveBarChart component with tappable bars and tooltips
  • Localized title in all 4 locales (EN/IT/ES/CA)

Test plan

  • Open a drive detail — verify speed histogram appears after elevation chart
  • Tap bars — tooltip shows percentage
  • Check bucket labels match expected 10 km/h increments
  • Verify with imperial units: 5 mph buckets

🤖 Generated with Claude Code

vide and others added 2 commits March 20, 2026 15:48
Add a speed histogram chart at the end of the drive detail charts
(before weather), matching the Teslamate Grafana drive details panel.

- Buckets of 10 km/h (or 5 mph when imperial)
- Values shown as percentages: one decimal for <10%, no decimals otherwise
- Uses InteractiveBarChart with tappable bars and tooltips
- Add speed_distribution string to all 4 locales

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The TeslaMate API pre-converts speed to the user's unit system.
Speeds are already in km/h or mph — no conversion needed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vide vide merged commit 306a5ef into main Mar 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant