其他分享
首页 > 其他分享> > 环形图表记录

环形图表记录

作者:互联网

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'}}},
							]
						}
					]

  

标签:name,normal,color,itemStyle,记录,环形,value,图表,show
来源: https://www.cnblogs.com/wqing/p/13273964.html