Commit 17bed1a
committed
✨ [feat] Enhance chart rendering with unit preferences and theme detection
- 🔧 [build] Introduce unit preferences for time, distance, temperature, and speed in chart options
- 🛠️ [fix] Update `createEnhancedChart` to use local unit symbols based on user preferences
- 🎨 [style] Improve tooltip formatting to display values in user-selected units
- ⚡ [perf] Optimize dataset interpolation settings for smoother rendering
- 🔧 [build] Add theme detection logic to apply user-defined or auto themes in charts
- 📝 [docs] Update documentation for new options in chart rendering functions
- 🎨 [style] Refactor rendering functions for altitude, power vs heart rate, and speed vs distance charts to support unit preferences
- 🔧 [build] Modify `getUnitSymbol` to return appropriate speed units based on distance preferences
- 🛠️ [fix] Adjust `convertValueToUserUnits` to handle speed conversions correctly
- 📝 [docs] Enhance tooltip display for distance and speed to show both metric and imperial units
Signed-off-by: Nick2bad4u <[email protected]>1 parent 60f3f77 commit 17bed1a
File tree
36 files changed
+22244
-21018
lines changed- .github/agents
- electron-app
- tests
- charts
- strictTests
- unit/utils
- charts/core
- types/utils
- charts
- components
- core
- rendering
- data/lookups
- formatting
- converters
- display
- utils
- charts
- components
- core
- rendering
- data/lookups
- formatting
- converters
- display
36 files changed
+22244
-21018
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
18 | 27 | | |
19 | 28 | | |
20 | 29 | | |
| |||
0 commit comments