当前位置: 首页 > 工具软件 > G2Plot-QRCode > 使用案例 >

g2plot饼状图label显示不全

符懿轩
2023-12-01
	            new Pie(el.value, {
	            	appendPadding: 10,
	                data,
	                width:600,
	                height:400,
	                angleField: "value",
	                colorField: "type",
	                color: ['#FF7420','#FCD4C7'],
	                radius: 0.6, //设置饼状图大小
	                innerRadius: 0.4,
	                label: {
	                    type: "outer",
	                    content: "{name} {value}吨"+'\n'+'占比{percentage}',
	                },
	                interactions: [{ type: "pie-legend-active" }, { type: "element-active" }],
	                statistic: {
					    title: false,
					    content: '',
					},
	            }).render();

 类似资料: