Fix mempool chart tooltip hover selection.

This commit is contained in:
Miguel Medeiros 2021-09-26 15:24:29 -03:00
parent acbd7f0bde
commit b0e54818ae
No known key found for this signature in database
GPG key ID: 819EDEE4673F3EBB

View file

@ -197,7 +197,8 @@ export class MempoolGraphComponent implements OnInit, OnChanges {
progressPercentage = (item.value / totalValue) * 100; progressPercentage = (item.value / totalValue) * 100;
progressPercentageSum = (totalValueArray[index] / totalValue) * 100; progressPercentageSum = (totalValueArray[index] / totalValue) * 100;
let activeItemClass = ''; let activeItemClass = '';
if (this.hoverIndexSerie === item.seriesIndex) { const hoverActive = (this.inverted) ? Math.abs(item.seriesIndex - params.length + 1) : item.seriesIndex;
if (this.hoverIndexSerie === hoverActive) {
progressPercentageText = `<div class="total-parcial-active"> progressPercentageText = `<div class="total-parcial-active">
<span class="progress-percentage"> <span class="progress-percentage">
${progressPercentage.toFixed(2)} ${progressPercentage.toFixed(2)}