zoukankan      html  css  js  c++  java
  • 环形图表记录

    tooltip: {
    						trigger: 'item',
    						formatter: ''
    					},
    					legend: {
    						show:false,
    						orient: 'vertical',
    						left: 10,
    						data: ['文本1', '文本2', '文本3', '文本4', '文本5']
    					},
    					series: [
    						{
    							//name: '访问来源',
    							type: 'pie',
    							//radius: ['35%', '55%'],
    							radius: ['25%', '35%'],
    							//avoidLabelOverlap: false,
    							label: {
    								show: true,
    							  //  position: 'center'
    							},
    							emphasis: {
    								label: {
    									//show: true,
    									//fontSize: '30',
    									//fontWeight: 'bold'
    								}
    							},
    							labelLine: {
    							  //  show: false
    							},							
    							itemStyle: {
    								  normal: {
    									  color: {
    												  type: 'linear',
    												 /* x: pointStart[0],
    												  y: pointStart[1],
    												  x2: pointEnd[0],
    												  y2: pointEnd[1], */
    												  colorStops: [
    													  // !! 在此添加渐变过程色 !!
    													  { offset: 0, color: '#24BCF9' },
    													  { offset: 1, color: '#ff0000' }
    												  ]
    											  },
    											  shadowColor: 'rgba(255,255,255,0.3)',
    											  shadowBlur: 10,
    									  label: {
    										  textStyle: {
    											color:'#ffffff',
    											  fontSize: this.$formatter.nowSize(15),
    											  //fontWeight:'bolder'
    										  }
    									  },
    									  
    									labelLine : {
    										normal:{
    										    length:1 
    										}  ,
    										  lineStyle:{
    											color:'#ffffff'
    										  }
    									  }
    								  }
    							  },
    							data: [
    								{value: 1, name: '夜间作业',itemStyle:{normal:{color:'#51d1eb'}}},
    								{value: 1, name: '动火',itemStyle:{normal:{color:'#36a9e4'}}},
    								{value: 1, name: '占道/断路施工',itemStyle:{normal:{color:'#48e937'}}},
    								{value: 1, name: '危化品临时贮存',itemStyle:{normal:{color:'#ffa53b'}}},
    								{value: 1, name: '放射源入场',itemStyle:{normal:{color:'#9f3bff'}}},
    								{value: 1, name: '放射源出场',itemStyle:{normal:{color:'#76a9e4'}}},
    							]
    						}
    					]
    

      

  • 相关阅读:
    audio_音频
    调试C++NPv2_TP_Reactor_Log_Server程序
    2019 SDN大作业(咕咕咕队)
    第09组 Beta版本演示
    第09组 Beta冲刺(4/4)
    第09组 Beta冲刺(3/4)
    2019 SDN上机第7次作业
    第09组 Beta冲刺(2/4)
    第09组 Beta冲刺(1/4)
    2019 SDN上机第6次作业
  • 原文地址:https://www.cnblogs.com/wqing/p/13273964.html
Copyright © 2011-2022 走看看