跳至主要内容

在Excel中创建棒棒糖图

Author: Siluvia Last Modified: 2025-07-31

虽然棒棒糖图与柱状图或条形图的作用相同,但它的外观更加美观且独特,能够更吸引读者的注意力。本教程将提供一个分步指南,向您展示如何在Excel中创建棒棒糖图。下图是棒棒糖图和柱状图之间的对比截图。

Lollipop Chart

在Excel中创建具有相同椭圆颜色的棒棒糖图
在Excel中创建具有不同椭圆颜色的垂直棒棒糖图
在Excel中创建具有相同或不同椭圆颜色的水平棒棒糖图
使用一款神奇的工具轻松创建垂直或水平棒棒糖图
下载示例文件
视频:在Excel中创建棒棒糖图


在Excel中创建具有相同椭圆颜色的棒棒糖图

假设您想根据以下截图中的数据创建一个棒棒糖图,请按照以下步骤操作以完成它。

steps of creating a lollipop chart with same oval color in Excel

1. 选择整个数据区域,点击 插入 > 插入柱形图或条形图 > 簇状柱形图,如果您想创建一个垂直棒棒糖图的话。

如果您想创建一个水平棒棒糖图,请点击 插入 > 插入柱形图或条形图 > 簇状条形图。请参见截图:

steps of creating a lollipop chart with same oval color in Excel

2. 然后,工作表中会插入一个簇状柱形图或簇状条形图。保持图表选中状态,然后点击 设计 > 添加图表元素 > 误差线 > 标准误差

steps of creating a lollipop chart with same oval color in Excel

3. 在图表中选择并右键单击误差线,然后从右键菜单中选择 设置误差线格式

steps of creating a lollipop chart with same oval color in Excel

4. 在打开的 设置误差线格式 面板中,并在 误差线选项 标签下,您需要进行如下配置。

4.1) 在 方向 部分选择 减号
4.2) 在 结束样式 部分选择 无端帽
4.3) 在 误差量 部分选择 百分比 选项,然后将百分比更改为 100%

steps of creating a lollipop chart with same oval color in Excel

现在图表显示如下。

steps of creating a lollipop chart with same oval color in Excel

5. 在 设置误差线格式 面板中,您需要继续进行如下配置。

5.1) 点击 填充与线条 标签;
5.2) 为误差线指定一种颜色;
5.3) 根据需要更改误差线的宽度;
5.4) 从 开始箭头类型 下拉列表中选择 椭圆箭头 选项。

steps of creating a lollipop chart with same oval color in Excel

图表显示如下截图所示。

steps of creating a lollipop chart with same oval color in Excel

6. 现在您需要隐藏图表中的柱形条。点击选择柱形条,进入 设置数据系列格式 面板,然后进行如下配置。

6.1) 点击 填充与线条 标签;
6.2) 在 填充 部分,选择 无填充 选项;
6.3) 在 边框 部分,选择 无线条 选项。

steps of creating a lollipop chart with same oval color in Excel

现在棒棒糖图已经完成了。

steps of creating a lollipop chart with same oval color in Excel

注意:如果您想用不同的颜色标记椭圆,请尝试以下方法。


在Excel中创建具有不同椭圆颜色的垂直棒棒糖图

如果您想在Excel中创建具有不同椭圆颜色的棒棒糖图,请按照以下步骤操作。

steps of creating a vertical lollipop chart with different oval colors in Excel

1. 选择所有数据,点击 插入 > 插入折线图或面积图 > 带数据标记的折线图

steps of creating a vertical lollipop chart with different oval colors in Excel

2. 在创建的图表中,右键单击折线并从上下文菜单中选择 设置数据系列格式

steps of creating a vertical lollipop chart with different oval colors in Excel

3. 在打开的 设置数据系列格式 面板中,点击 填充与线条 标签,在 线条 部分选择 无线条

steps of creating a vertical lollipop chart with different oval colors in Excel

然后,图表中的折线被隐藏,如下截图所示。

steps of creating a vertical lollipop chart with different oval colors in Excel

4. 保持标记选中状态,然后点击 设计 > 添加图表元素 > 误差线 > 标准误差

steps of creating a vertical lollipop chart with different oval colors in Excel

5. 在图表中选择误差线,进入 设置误差线格式 面板,然后进行如下配置。

5.1) 在 方向 部分选择 减号
5.2) 在 结束样式 部分选择 无端帽
5.3) 在 误差量 部分选择 百分比 选项,然后将百分比更改为 100%

steps of creating a vertical lollipop chart with different oval colors in Excel

现在图表显示如下截图所示。

steps of creating a vertical lollipop chart with different oval colors in Excel

6. 点击任意一个标记以选择它们全部,进入 设置数据系列格式 面板,然后进行如下配置。

6.1) 进入 填充与线条 标签;
6.2) 通过点击 标记 标签切换到标记选项视图;
6.3) 在 填充 部分勾选 按点变化颜色 复选框。

steps of creating a vertical lollipop chart with different oval colors in Excel

现在具有不同椭圆颜色的棒棒糖图已完成,如下截图所示。

steps of creating a vertical lollipop chart with different oval colors in Excel


在Excel中创建具有相同或不同椭圆颜色的水平棒棒糖图

在本节中,您将学习如何在Excel中创建具有相同或不同椭圆颜色的水平棒棒糖图。

steps of creating a horizontal lollipop chart with same or different oval colors in Excel

1. 在原始数据表旁边创建一个辅助列,如下所示。

1.1) 选择一个空白单元格(这里我选择C2),将以下公式输入其中并按下 回车 键。
=1/11/2
1.2) 选择C2下方的单元格(这里是C3),将以下公式输入其中,然后按下 回车 键。
=C2+1/11
1.3) 选择C3,然后拖动填充柄将公式应用到其他单元格。

注意:对于公式中的数字11,它代表基于原始轴标签将在图表中创建的柱形条数量。在我的情况下,A列中有11个轴标签,因此我在公式中指定数字11。您可以根据自己的轴数据进行更改。

steps of creating a horizontal lollipop chart with same or different oval colors in Excel

2. 选择轴标签的范围和数据范围(这里我选择范围A1:B12),然后点击 插入 > 插入柱形图或条形图 > 簇状条形图

steps of creating a horizontal lollipop chart with same or different oval colors in Excel

3. 然后在当前工作表中创建了一个簇状条形图。请右键单击垂直轴标签,然后从上下文菜单中选择 设置坐标轴格式

steps of creating a horizontal lollipop chart with same or different oval colors in Excel

4. 在打开的 设置坐标轴格式 面板中,勾选 坐标轴选项 标签下的 类别逆序排列 复选框。

steps of creating a horizontal lollipop chart with same or different oval colors in Excel

5. 右键单击图表中的任何数据系列,然后从右键菜单中点击 选择数据

steps of creating a horizontal lollipop chart with same or different oval colors in Excel

6. 在 选择数据源 对话框中,点击 添加 按钮。然后弹出一个 编辑系列 对话框,直接点击 确定 按钮而无需任何配置。

steps of creating a horizontal lollipop chart with same or different oval colors in Excel

7. 当返回到 选择数据源 对话框时,您可以看到一个新的系列(Series2)已添加到 图例项(系列) 框中,点击 确定 保存更改并关闭对话框。

steps of creating a horizontal lollipop chart with same or different oval colors in Excel

8. 右键单击图表中的任何数据系列,然后从右键菜单中选择 更改系列图表类型

steps of creating a horizontal lollipop chart with same or different oval colors in Excel

9. 在弹出的 更改图表类型 对话框中,将 Series2 的图表类型更改为 散点图,然后点击 确定 按钮。

steps of creating a horizontal lollipop chart with same or different oval colors in Excel

10. 右键单击图表中的任何数据系列,然后从右键菜单中点击 选择数据

steps of creating a horizontal lollipop chart with same or different oval colors in Excel

11. 在 选择数据源 对话框中,选择 图例项(系列) 框中的 Series2,然后点击 编辑 按钮。

steps of creating a horizontal lollipop chart with same or different oval colors in Excel

12. 在 编辑系列 对话框中,请进行如下配置。

12.1) 在 系列名称 框中,根据需要输入系列名称;
12.2) 在 系列 X 值 框中,选择不包含标题的数据值范围;
12.3) 在 系列 Y 值 框中,选择不包含标题的辅助数据范围;
12.4) 点击 确定 按钮。请参见截图:

steps of creating a horizontal lollipop chart with same or different oval colors in Excel

13. 当返回到 选择数据源 对话框时,点击 确定 按钮保存更改。

现在图表显示如下。

steps of creating a horizontal lollipop chart with same or different oval colors in Excel

14. 点击图表中的次坐标轴,然后进入 设置坐标轴格式 面板进行如下配置。

14.1) 在 坐标轴选项 标签下将 最大值 更改为 1
14.2) 勾选 值逆序排列 复选框。

steps of creating a horizontal lollipop chart with same or different oval colors in Excel

15. 从图表中移除次坐标轴。

16. 现在对柱形条进行如下配置。

16.1) 点击任意一个柱形条以选择它们全部;
16.2) 点击 设计 图表工具选项卡) > 添加图表元素 > 误差线 > 标准误差 以添加误差线。

steps of creating a horizontal lollipop chart with same or different oval colors in Excel

16.3) 保持柱形条选中状态,进入 设置数据系列格式 面板,在 填充与线条 标签下的 填充 边框 部分依次选择 无填充 无线条

steps of creating a horizontal lollipop chart with same or different oval colors in Excel

现在柱形条在图表中被隐藏了。

17. 选择误差线,进入 设置误差线格式 面板并进行如下配置。

17.1) 在 方向 部分选择 减号 选项;
17.2) 在 误差量 部分,选择 百分比 选项,然后将百分比更改为 100%

steps of creating a horizontal lollipop chart with same or different oval colors in Excel

现在,如下截图所示,创建了一个具有相同椭圆颜色的水平棒棒糖图。

steps of creating a horizontal lollipop chart with same or different oval colors in Excel

提示:如果您想为椭圆指定不同的颜色,请手动逐一更改它们的颜色。

请双击一个椭圆以单独选择它,进入 设置数据点格式 面板,启用 填充与线条 标签,点击 标记 标签,然后为其指定实心填充颜色和实心线条颜色。

steps of creating a horizontal lollipop chart with same or different oval colors in Excel

最后,如下所示,显示了具有不同椭圆颜色的水平棒棒糖图。

steps of creating a horizontal lollipop chart with same or different oval colors in Excel


在Excel中轻松创建棒棒糖图

Kutools for Excel 棒棒糖图 功能可以帮助您仅需几次点击即可快速在Excel中创建垂直或水平棒棒糖图,如下演示所示。立即下载并试用! 30-天免费试用


下载示例文件

sample of creating a lollipop chart in Excel


视频:在Excel中创建棒棒糖图


最佳的办公生产力工具

Kutools for Excel - 助您脱颖而出

🤖 Kutools AI 助手:基于智能执行革新数据分析:智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数
热门功能查找、高亮或标记重复项  |  删除空行  |  合并列或单元格而不丢失数据  |  无需公式四舍五入 ...
超级 VLookup多条件  |  多值  |  跨多表  |  模糊查找...
高级下拉列表简易下拉列表  |  级联下拉列表  |  多选下拉列表...
列管理器添加指定数量的列  |  移动列  |  切换隐藏列的可见状态  比较列以 选择相同和不同单元格 ...
特色功能网格聚焦  |  设计视图  |  增强编辑栏  |  工作簿与工作表管理器 | 资源库(自动文本)  |  日期提取  |  合并工作表  |  加密/解密单元格  |  按列表发送电子邮件  |  超级筛选  |  特殊筛选(筛选粗体/斜体/删除线...) ...
排名前 15 的工具集12 个文本工具添加文本删除特定字符 ...)  |  50+ 种图表 类型甘特图 ...)  |  40+ 实用 公式基于生日计算年龄 ...)  |  19 个插入工具插入二维码从路径插入图片 ...)  |  12 个转换工具小写金额转大写汇率转换 ...)  |  7 个合并和拆分工具高级合并行拆分 Excel 单元格 ...)  |  ... 更多功能
使用您偏好的语言来操作 Kutools - 支持英语、西班牙语、德语、法语、中文等 40 多种语言!

Kutools for Excel 拥有超过 300 项功能,确保您所需的一切都仅需一键之遥...


Office Tab - 在 Microsoft Office(包括 Excel)中启用标签式阅读和编辑

  • 一秒内在数十个打开的文档之间切换!
  • 每天为您减少数百次鼠标点击,告别鼠标手。
  • 在查看和编辑多个文档时,您的生产力可提升 50%。
  • 为 Office(包括 Excel)带来高效标签页,就像 Chrome、Edge 和 Firefox 一样。