mirror of
https://github.com/mempool/mempool.git
synced 2025-02-25 15:10:12 +01:00
Fix mempool chart tooltip hover selection.
This commit is contained in:
parent
acbd7f0bde
commit
b0e54818ae
1 changed files with 2 additions and 1 deletions
|
@ -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)}
|
||||||
|
|
Loading…
Add table
Reference in a new issue