diff --git a/frontend/src/app/components/mempool-graph/mempool-graph.component.ts b/frontend/src/app/components/mempool-graph/mempool-graph.component.ts index bb141b19b..5c06fc11f 100644 --- a/frontend/src/app/components/mempool-graph/mempool-graph.component.ts +++ b/frontend/src/app/components/mempool-graph/mempool-graph.component.ts @@ -177,9 +177,10 @@ export class MempoolGraphComponent implements OnInit, OnChanges { return { totalValue: totalValueTemp, totalValueArray: this.inverted ? totalValueArrayTemp.reverse() : totalValueArrayTemp.reverse(), + values: this.inverted ? [...values].reverse() : values, }; }; - const { totalValue, totalValueArray } = totals(params); + const { totalValue, totalValueArray, values } = totals(params); const title = `
${params[0].axisValue} @@ -217,16 +218,16 @@ export class MempoolGraphComponent implements OnInit, OnChanges { } itemFormatted.push(` - ${colorSpan(index)} + ${colorSpan(item.seriesIndex)} - ${this.vbytesPipe.transform(item.value, 2, 'vB', 'MvB', false)} + ${this.vbytesPipe.transform(values[item.seriesIndex].value, 2, 'vB', 'MvB', false)} - ${this.vbytesPipe.transform(totalValueArray[index], 2, 'vB', 'MvB', false)} + ${this.vbytesPipe.transform(totalValueArray[item.seriesIndex], 2, 'vB', 'MvB', false)}