mirror of
https://github.com/mempool/mempool.git
synced 2024-12-28 09:14:26 +01:00
Match pool color between pools pie and pools stack
This commit is contained in:
parent
78fa3e33cd
commit
e358a553c1
@ -78,8 +78,8 @@ export const poolsColor = {
|
|||||||
'poolin': '#3949AB',
|
'poolin': '#3949AB',
|
||||||
'binancepool': '#1E88E5',
|
'binancepool': '#1E88E5',
|
||||||
'viabtc': '#039BE5',
|
'viabtc': '#039BE5',
|
||||||
'btccom': '#00ACC1',
|
'btccom': '#00897B',
|
||||||
'slushpool': '#00897B',
|
'slushpool': '#00ACC1',
|
||||||
'sbicrypto': '#43A047',
|
'sbicrypto': '#43A047',
|
||||||
'marapool': '#7CB342',
|
'marapool': '#7CB342',
|
||||||
'luxor': '#C0CA33',
|
'luxor': '#C0CA33',
|
||||||
|
@ -9,7 +9,7 @@ import { SeoService } from 'src/app/services/seo.service';
|
|||||||
import { StorageService } from '../..//services/storage.service';
|
import { StorageService } from '../..//services/storage.service';
|
||||||
import { MiningService, MiningStats } from '../../services/mining.service';
|
import { MiningService, MiningStats } from '../../services/mining.service';
|
||||||
import { StateService } from '../../services/state.service';
|
import { StateService } from '../../services/state.service';
|
||||||
import { chartColors } from 'src/app/app.constants';
|
import { chartColors, poolsColor } from 'src/app/app.constants';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-pool-ranking',
|
selector: 'app-pool-ranking',
|
||||||
@ -120,6 +120,9 @@ export class PoolRankingComponent implements OnInit {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
data.push({
|
data.push({
|
||||||
|
itemStyle: {
|
||||||
|
color: poolsColor[pool.name.replace(/[^a-zA-Z0-9]/g, "").toLowerCase()],
|
||||||
|
},
|
||||||
value: pool.share,
|
value: pool.share,
|
||||||
name: pool.name + (this.isMobile() ? `` : ` (${pool.share}%)`),
|
name: pool.name + (this.isMobile() ? `` : ` (${pool.share}%)`),
|
||||||
label: {
|
label: {
|
||||||
@ -216,7 +219,6 @@ export class PoolRankingComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
color: chartColors
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user