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',
 | 
			
		||||
   'binancepool': '#1E88E5',
 | 
			
		||||
   'viabtc': '#039BE5',
 | 
			
		||||
   'btccom': '#00ACC1',
 | 
			
		||||
   'slushpool': '#00897B',
 | 
			
		||||
   'btccom': '#00897B',
 | 
			
		||||
   'slushpool': '#00ACC1',
 | 
			
		||||
   'sbicrypto': '#43A047',
 | 
			
		||||
   'marapool': '#7CB342',
 | 
			
		||||
   'luxor': '#C0CA33',
 | 
			
		||||
 | 
			
		||||
@ -9,7 +9,7 @@ import { SeoService } from 'src/app/services/seo.service';
 | 
			
		||||
import { StorageService } from '../..//services/storage.service';
 | 
			
		||||
import { MiningService, MiningStats } from '../../services/mining.service';
 | 
			
		||||
import { StateService } from '../../services/state.service';
 | 
			
		||||
import { chartColors } from 'src/app/app.constants';
 | 
			
		||||
import { chartColors, poolsColor } from 'src/app/app.constants';
 | 
			
		||||
 | 
			
		||||
@Component({
 | 
			
		||||
  selector: 'app-pool-ranking',
 | 
			
		||||
@ -120,6 +120,9 @@ export class PoolRankingComponent implements OnInit {
 | 
			
		||||
        return;
 | 
			
		||||
      }
 | 
			
		||||
      data.push({
 | 
			
		||||
        itemStyle: {
 | 
			
		||||
          color: poolsColor[pool.name.replace(/[^a-zA-Z0-9]/g, "").toLowerCase()],
 | 
			
		||||
        },
 | 
			
		||||
        value: pool.share,
 | 
			
		||||
        name: pool.name + (this.isMobile() ? `` : ` (${pool.share}%)`),
 | 
			
		||||
        label: {
 | 
			
		||||
@ -216,7 +219,6 @@ export class PoolRankingComponent implements OnInit {
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      ],
 | 
			
		||||
      color: chartColors
 | 
			
		||||
    };
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user