[PR #4137] [CLOSED] Fix barchart data sorting on barcharts split by interval #5205

Closed
opened 2026-02-28 21:08:03 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/4137
Author: @matt-fidd
Created: 1/12/2025
Status: Closed

Base: masterHead: fix-barchart-sorting


📝 Commits (2)

📊 Changes

2 files changed (+11 additions, -6 deletions)

View changed files

📝 packages/desktop-client/src/components/reports/graphs/BarGraph.tsx (+5 -6)
upcoming-release-notes/4137.md (+6 -0)

📄 Description

I made a mistake in #4072 by allowing the interval data to be sorted too. This fixes that, and prevents the original data array from being mutated, instead sorting a copy and returning it in.

Before (notice the months on the x axis):
image

After:
image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/4137 **Author:** [@matt-fidd](https://github.com/matt-fidd) **Created:** 1/12/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `fix-barchart-sorting` --- ### 📝 Commits (2) - [`50216a0`](https://github.com/actualbudget/actual/commit/50216a0d0f3031c4698934d2dae0c3272b60b2c7) fix barchart sorting - [`8e676e7`](https://github.com/actualbudget/actual/commit/8e676e70c989973457c0bf8c8cab56fe7204a6fe) note ### 📊 Changes **2 files changed** (+11 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/reports/graphs/BarGraph.tsx` (+5 -6) ➕ `upcoming-release-notes/4137.md` (+6 -0) </details> ### 📄 Description I made a mistake in #4072 by allowing the interval data to be sorted too. This fixes that, and prevents the original data array from being mutated, instead sorting a copy and returning it in. Before (notice the months on the x axis): ![image](https://github.com/user-attachments/assets/ab3b2513-f13b-4ba9-92d2-c8ceb93c6d6b) After: ![image](https://github.com/user-attachments/assets/4640679c-ede8-481d-9ece-a1229ec65d94) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-02-28 21:08:03 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#5205