Fix size column order when invert mempool chart.
This commit is contained in:
		
							parent
							
								
									b0e54818ae
								
							
						
					
					
						commit
						80fcceef73
					
				@ -177,9 +177,10 @@ export class MempoolGraphComponent implements OnInit, OnChanges {
 | 
				
			|||||||
            return {
 | 
					            return {
 | 
				
			||||||
              totalValue: totalValueTemp,
 | 
					              totalValue: totalValueTemp,
 | 
				
			||||||
              totalValueArray: this.inverted ? totalValueArrayTemp.reverse() : totalValueArrayTemp.reverse(),
 | 
					              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 = `<div class="title">
 | 
					          const title = `<div class="title">
 | 
				
			||||||
            ${params[0].axisValue}
 | 
					            ${params[0].axisValue}
 | 
				
			||||||
            <span class="total-value">
 | 
					            <span class="total-value">
 | 
				
			||||||
@ -217,16 +218,16 @@ export class MempoolGraphComponent implements OnInit, OnChanges {
 | 
				
			|||||||
              }
 | 
					              }
 | 
				
			||||||
              itemFormatted.push(`<tr class="item ${activeItemClass}">
 | 
					              itemFormatted.push(`<tr class="item ${activeItemClass}">
 | 
				
			||||||
              <td class="indicator-container">
 | 
					              <td class="indicator-container">
 | 
				
			||||||
                ${colorSpan(index)}
 | 
					                ${colorSpan(item.seriesIndex)}
 | 
				
			||||||
              </td>
 | 
					              </td>
 | 
				
			||||||
              <td class="total-progress-sum">
 | 
					              <td class="total-progress-sum">
 | 
				
			||||||
                <span>
 | 
					                <span>
 | 
				
			||||||
                  ${this.vbytesPipe.transform(item.value, 2, 'vB', 'MvB', false)}
 | 
					                  ${this.vbytesPipe.transform(values[item.seriesIndex].value, 2, 'vB', 'MvB', false)}
 | 
				
			||||||
                </span>
 | 
					                </span>
 | 
				
			||||||
              </td>
 | 
					              </td>
 | 
				
			||||||
              <td class="total-progress-sum">
 | 
					              <td class="total-progress-sum">
 | 
				
			||||||
                <span>
 | 
					                <span>
 | 
				
			||||||
                  ${this.vbytesPipe.transform(totalValueArray[index], 2, 'vB', 'MvB', false)}
 | 
					                  ${this.vbytesPipe.transform(totalValueArray[item.seriesIndex], 2, 'vB', 'MvB', false)}
 | 
				
			||||||
                </span>
 | 
					                </span>
 | 
				
			||||||
              </td>
 | 
					              </td>
 | 
				
			||||||
              <td class="total-progress-sum-bar">
 | 
					              <td class="total-progress-sum-bar">
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user