Merge pull request #2524 from mempool/nymkappa/bugfix/isp-chart-color
Update ISP pie chart colors
This commit is contained in:
		
						commit
						7087f7a78c
					
				| @ -134,9 +134,6 @@ export class NodesPerISPChartComponent implements OnInit { | |||||||
|         return; |         return; | ||||||
|       } |       } | ||||||
|       data.push({ |       data.push({ | ||||||
|         itemStyle: { |  | ||||||
|           color: isp[0] === null ? '#7D4698' : undefined, |  | ||||||
|         }, |  | ||||||
|         value: this.sortBy === 'capacity' ? isp[7] : isp[6], |         value: this.sortBy === 'capacity' ? isp[7] : isp[6], | ||||||
|         name: isp[1].replace('&', '') + (isMobile() || this.widget ? `` : ` (${this.sortBy === 'capacity' ? isp[7] : isp[6]}%)`), |         name: isp[1].replace('&', '') + (isMobile() || this.widget ? `` : ` (${this.sortBy === 'capacity' ? isp[7] : isp[6]}%)`), | ||||||
|         label: { |         label: { | ||||||
| @ -206,7 +203,7 @@ export class NodesPerISPChartComponent implements OnInit { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     this.chartOptions = { |     this.chartOptions = { | ||||||
|       color: chartColors.slice(3), |       color: chartColors.filter((color) => color != '#5E35B1'), // Remove color that looks like Tor
 | ||||||
|       tooltip: { |       tooltip: { | ||||||
|         trigger: 'item', |         trigger: 'item', | ||||||
|         textStyle: { |         textStyle: { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user