

操作步骤
(使用版本Excel 2016 )
示例数据不能直接应用,需利用透视表对分类1进行汇总
1、创建透视表:菜单栏-插入-数据透视图-表/区域选择数据位置-放置位置选择本工作簿任意位置。

2、对透视表进行处理:将“分类1”拖入“行”,“百分比”拖入“值”;修改透视表中“百分比”显示的方式,选择数据值-右键-值显示方式-列汇总的百分比


饼图需要的最终数据表

3、创建二维饼状图:插入-饼图-二维饼图-饼图

4、为饼图选择数据:选择画布-右键-选择数据,或者选择画布-菜单栏-图表工具-设计-选择数据。之后“选择数据源”弹框-“图例项(系列)”-添加。
两个表格数据需分两次添加

5、添加第一个表格内容:编辑数据系列-系列名称:标题“百分比”-系列值:“百分比”对应数据-确定。

6、为系列添加标签:“选择数据源”弹框-水平(分类)轴标签-编辑

轴标签-轴标签区域-分类2下数值

第一个数据表添加完成

7、添加第二个表格内容及标签



第二个数据表添加完成

8、调节系列位置,保证较小的饼对应的系列在上,可用三角形调整位置

9、选择饼图-右键-设置数据系列格式-系列选项-选择“次坐标轴”-饼图分离-选择百分比
这里选择50%,可自行选择。

10、将扇面向中心拖拽,扇面必须一个一个选中。

11、为图添加标签,选择要处理的饼-图表元素-数据标签-更多选项
两层数据需要单独处理

12、修改标签值和位置:标签选项-标签包括-选中“类别名称”和“值”-标签位置-选择“最佳匹配”


13、图表结果-优化饼图

网友评论