32 lines
		
	
	
		
			673 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			673 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import tools from "./tools";
 | |
| 
 | |
| const color = ["#18FEFE", "#1890FF"]
 | |
| export const graphChart1 = {
 | |
|   grid: {
 | |
|     left: 50, right: 0
 | |
|   },
 | |
|   xAxis: {show: false},
 | |
|   yAxis: {show: false},
 | |
|   tooltip: {},
 | |
|   color,
 | |
|   daemon: {
 | |
|     type: 'graph',
 | |
|     layout: 'force',
 | |
|     label: {
 | |
|       show: true, position: 'inside',
 | |
|     }, symbol: 'circle', dataRender: (row, i) => ({
 | |
|       ...row,
 | |
|       symbolSize: Math.max(4, 256 * parseFloat(row.纠纷占比) / 100),
 | |
|       value: row.纠纷占比,
 | |
|       itemStyle: {
 | |
|         borderColor: color[i % 2],
 | |
|         borderWidth: 1,
 | |
|         color: tools.$colorUtils.Hex2RGBA(color[i % 2], .5),
 | |
|       }
 | |
|     }),
 | |
|   }
 | |
| }
 | |
| export default {
 | |
|   graphChart1
 | |
| }
 |