32 lines
		
	
	
		
			842 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			842 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import tools from "../tools";
 | |
| 
 | |
| export default {
 | |
|   legend: {show: false},
 | |
|   grid: {
 | |
|     left: 50, right: 0
 | |
|   },
 | |
|   tooltip: {
 | |
|     trigger: 'axis', backgroundColor: 'rgba(14, 51, 111, 0.9)', borderColor: '#1A6ABC',
 | |
|     textStyle: {color: '#fff'},
 | |
|     axisPointer: {type: 'cross'}
 | |
|   },
 | |
|   yAxis: {
 | |
|     nameGap: 23, minInterval: 1,
 | |
|     splitLine: {lineStyle: {color: 'rgba(255,255,255,.2)', type: 'dashed'}},
 | |
|     axisLabel: {color: '#fff'},
 | |
|     axisPointer: {snap: true}
 | |
|   },
 | |
|   daemon: color=> ({
 | |
|     showSymbol: false, smooth: true,
 | |
|     lineStyle: {shadowBlur: 4, shadowOffsetY: 2},
 | |
|     areaStyle: {
 | |
|       color: {
 | |
|         type: 'linear', x: 0, x2: 0, y: 0, y2: 1, colorStops: [
 | |
|           {offset: 0, color: tools.$colorUtils.Hex2RGBA(color, .5)},
 | |
|           {offset: 1, color: tools.$colorUtils.Hex2RGBA(color, 0)},
 | |
|         ]
 | |
|       }
 | |
|     }
 | |
|   })
 | |
| }
 |