Skip to content

Commit

Permalink
Fix inconsistent legend coloring in custom reports (#4162)
Browse files Browse the repository at this point in the history
* fix inconsistent legend colouring in custom reports

* note

* Update VRT

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
matt-fidd and github-actions[bot] authored Jan 15, 2025
1 parent 97b28ca commit 5fc3e2e
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 5 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -277,18 +277,18 @@ export function createCustomSpreadsheet({
filterEmptyRows({ showEmpty, data: i, balanceTypeOp }),
);

const sortedCalcDataFiltered = [...calcDataFiltered].sort(
sortData({ balanceTypeOp, sortByOp }),
);

const legend = calculateLegend(
intervalData,
calcDataFiltered,
sortedCalcDataFiltered,
groupBy,
graphType,
balanceTypeOp,
);

const sortedCalcDataFiltered = [...calcDataFiltered].sort(
sortData({ balanceTypeOp, sortByOp }),
);

setData({
data: sortedCalcDataFiltered,
intervalData,
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/4162.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [matt-fidd]
---

Fix inconsistent legend coloring in custom reports

0 comments on commit 5fc3e2e

Please sign in to comment.