Fix inconsistent legend coloring in custom reports (#4162)
* fix inconsistent legend colouring in custom reports * note * Update VRT --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
|
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 104 KiB |
|
Before Width: | Height: | Size: 104 KiB After Width: | Height: | Size: 104 KiB |
|
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 103 KiB |
|
Before Width: | Height: | Size: 114 KiB After Width: | Height: | Size: 115 KiB |
|
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 115 KiB |
|
Before Width: | Height: | Size: 114 KiB After Width: | Height: | Size: 114 KiB |
|
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 117 KiB |
|
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 118 KiB |
|
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 116 KiB |
@@ -277,18 +277,18 @@ export function createCustomSpreadsheet({
|
|||||||
filterEmptyRows({ showEmpty, data: i, balanceTypeOp }),
|
filterEmptyRows({ showEmpty, data: i, balanceTypeOp }),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const sortedCalcDataFiltered = [...calcDataFiltered].sort(
|
||||||
|
sortData({ balanceTypeOp, sortByOp }),
|
||||||
|
);
|
||||||
|
|
||||||
const legend = calculateLegend(
|
const legend = calculateLegend(
|
||||||
intervalData,
|
intervalData,
|
||||||
calcDataFiltered,
|
sortedCalcDataFiltered,
|
||||||
groupBy,
|
groupBy,
|
||||||
graphType,
|
graphType,
|
||||||
balanceTypeOp,
|
balanceTypeOp,
|
||||||
);
|
);
|
||||||
|
|
||||||
const sortedCalcDataFiltered = [...calcDataFiltered].sort(
|
|
||||||
sortData({ balanceTypeOp, sortByOp }),
|
|
||||||
);
|
|
||||||
|
|
||||||
setData({
|
setData({
|
||||||
data: sortedCalcDataFiltered,
|
data: sortedCalcDataFiltered,
|
||||||
intervalData,
|
intervalData,
|
||||||
|
|||||||
6
upcoming-release-notes/4162.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
category: Bugfix
|
||||||
|
authors: [matt-fidd]
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix inconsistent legend coloring in custom reports
|
||||||