Create difficulty chart component

This commit is contained in:
nymkappa
2022-02-16 21:20:28 +09:00
parent e2e3546934
commit 7270b1ccac
11 changed files with 192 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
import { Component, OnDestroy, OnInit } from '@angular/core';
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup } from '@angular/forms';
import { Router } from '@angular/router';
import { EChartsOption, PieSeriesOption } from 'echarts';
@@ -23,7 +23,7 @@ import { StateService } from '../../services/state.service';
}
`],
})
export class PoolRankingComponent implements OnInit, OnDestroy {
export class PoolRankingComponent implements OnInit {
poolsWindowPreference: string;
radioGroupForm: FormGroup;
@@ -90,9 +90,6 @@ export class PoolRankingComponent implements OnInit, OnDestroy {
);
}
ngOnDestroy(): void {
}
formatPoolUI(pool: SinglePoolStats) {
pool['blockText'] = pool.blockCount.toString() + ` (${pool.share}%)`;
return pool;