ucharts使用 echarts 配置的方法

主要是 eopts 配置


eopts: {
					color: ["#3287f7", "#ffb87c", "#7cdeb9", "#f26f84", "#6fccf0", "#a16af0"],
					legend: {
					show: false
				 	}
				 },
				 chartDataPie: {
				 	"series": [{
					'type': 'pie',
						radius: '55%',
						label: {
						normal: {
							formatter: "{b}:\n{c}\n{d}%", //百分比之后换行显示文字
								color: '#555'
							},
							color: '#555'
						},
						data: [{"name":"一班","value":50},{"name":"二班","value":30},{"name":"三班","value":20},{"name":"四班","value":18},{"name":"五班","value":8}]
				 	}]
				},

ucharts使用 echarts 配置的方法_第1张图片

你可能感兴趣的:(echarts,前端,javascript)