医院运营管理之分组比较(堆叠条形图) \* { margin: 0; padding: 0; outline: 0; } body { font-family: "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; line-height: 1.6; } .\_\_page\_content\_\_ { max-width: 667px; margin: 0 auto; padding: 20px; text-size-adjust: 100%; color: rgba(0, 0, 0, 0.9); padding-bottom: 64px; } .title { user-select: text; font-size: 22px; line-height: 1.4; margin-bottom: 14px; font-weight: 500; } .\_\_meta\_\_ { color: rgba(0, 0, 0, 0.3); font-size: 15px; line-height: 20px; hyphens: auto; word-break: break-word; margin-bottom: 50px; } .\_\_meta\_\_ .nick\_name { color: #576B95; } .\_\_meta\_\_ .copyright { color: rgba(0, 0, 0, 0.3); background-color: rgba(0, 0, 0, 0.05); padding: 0 4px; margin: 0 10px 10px 0; } blockquote.source { padding: 10px; margin: 30px 0; border-left: 5px solid #ccc; color: #333; font-style: italic; word-wrap: break-word; } blockquote.source a { cursor: pointer; text-decoration: underline; } .item\_show\_type\_0 > section { margin-top: 0; margin-bottom: 24px; } a { color: #576B95; text-decoration: none; cursor: default; } .text\_content { margin-bottom: 50px; user-select: text; font-size: 17px; white-space: pre-wrap; word-wrap: break-word; line-height: 28px; hyphens: auto; } .picture\_content .picture\_item { margin-bottom: 30px; } .picture\_content .picture\_item .picture\_item\_label { text-align: center; } img { max-width: 100%; } .pay\_subscribe\_notice { margin: 30px 0; padding: 20px; background: #fffbe6; border: 1px solid #ffe58f; border-radius: 8px; } .pay\_subscribe\_badge { display: inline-block; padding: 4px 12px; background: #faad14; color: #fff; border-radius: 4px; font-size: 14px; font-weight: 500; margin-bottom: 12px; } .pay\_subscribe\_desc { font-size: 15px; line-height: 1.8; color: rgba(0, 0, 0, 0.7); margin-bottom: 12px; } .pay\_subscribe\_hint { font-size: 13px; color: rgba(0, 0, 0, 0.4); } .\_\_bottom-bar\_\_ { display: flex; justify-content: space-between; align-items: center; position: fixed; bottom: 0; left: 0; right: 0; height: 64px; padding: 8px 20px; background: white; box-sizing: border-box; border-top: 1px solid rgba(0, 0, 0, 0.2); } .\_\_bottom-bar\_\_ .left { display: flex; align-items: center; font-size: 15px; white-space: nowrap; } .\_\_bottom-bar\_\_ .right { display: flex; } .\_\_bottom-bar\_\_ .sns\_opr\_btn { display: flex; align-items: center; user-select: none; background: transparent; border: 0; color: rgba(0, 0, 0, 0.9); font-size: 14px; } .\_\_bottom-bar\_\_ .sns\_opr\_btn:not(:last-child) { margin-right: 16px; } .\_\_bottom-bar\_\_ .sns\_opr\_btn > img { margin-right: 4px; }
医院运营管理之分组比较(堆叠条形图)
原创 Hi您好 恒健知行 2025-10-05 00:00 安徽
分析报告中有很多分组比较的场景,如集团医院的两院区比较、科室之间比较、时间维度上的比较等等,这种场景下需要使用比较性的图表。比较性的图表是运营分析不可或缺的工具,它简化了复杂的信息,可以直观给出比较对象的优劣,更容易地让我们做出决策。
接下来我们看看这些比较图在医院运营管理中的应用,复刻公众号文章中的堆叠图图例。
1.堆叠图
堆叠图可以形象地展示一个大分类包含的每个小分类的数据,以及各个小分类的占比,显示的是单个项目与整体之间的关系。由于其富含的比较信息比常规分组柱形图要多一层比较,因此在堆叠图中需要注意主次问题。通常堆叠图需要按照一定顺序进行排列,如下图样例数据,我们制作堆叠图会首先按照科室手术总例数排序,其次会按照四级手术比例去排序。由于三四级手术是医院运营中相对重要的指标,所以图形上也会凸显。
样例数据如下,可以点击链接下载样例数据比较图样例数据sheet2数据。
表1 各科室手术等级占比
科室
I类
II类
III类
IV类
脑外
0
3
3
6
心胸
0
0
1
19
泌尿
0
5
9
20
眼科
0
10
8
28
肛肠
0
6
42
0
耳鼻喉
1
2
21
25
肝胆
2
6
21
27
胃肠
1
6
16
45
妇科
17
25
30
56
骨科
1
21
44
64
乳腺
1
134
17
22
我们使用deepseek来绘制堆叠图:
请用附件数据,使用d3画一张【常规堆叠柱状图】,以html格式输出,并给出下载按钮可以下载png格式图片,要求:
Deepseek输出的图像效果如下:
上面的堆叠图按照科室的总的手术例数进行科室排序,由左到右依次增加;同时可以看出各个科室,I,II,III,IV四类手术的分布情况。图例可以直观的显示手术科室的手术工作量、手术难度,便于手术资源调配。
2.百分比堆叠图
请用附件数据,使用d3画一张【百分比堆叠柱状图】,要求:
1.X轴为月份,每个月份对应一个柱子。
Deepseek输出的图像效果如下:
我们可以通过查看表格数字或使用分组条形图在进行比较分析。但原始表格和分组条形图,没法展示数据的全貌,而堆叠柱形图则是展示各类别在整体中的占比、重要性、结构等指标,以及分组比较信息。这种情况,堆叠图是处理数据、展示数据得出比较分析结论的最佳方式。
系列文章:
运营分析方法之波士顿矩阵图—Deepseek帮忙还需要其他工具吗?
恒健知行
 阅读 赞  分享 ’%3E %3Cg transform=‘translate(0 -2.349)’%3E %3Cpath d=‘M0 2.349h24v24H0z’/%3E %3Cpath fill=’%23576B95’ d=‘M16.45 7.68c-.954 0-1.94.362-2.77 1.113l-1.676 1.676-1.853-1.838a3.787 3.787 0 0 0-2.63-.971 3.785 3.785 0 0 0-2.596 1.112 3.786 3.786 0 0 0-1.113 2.687c0 .97.368 1.938 1.105 2.679l7.082 6.527 7.226-6.678a3.787 3.787 0 0 0 .962-2.618 3.785 3.785 0 0 0-1.112-2.597A3.687 3.687 0 0 0 16.45 7.68zm3.473.243a4.985 4.985 0 0 1 1.464 3.418 4.98 4.98 0 0 1-1.29 3.47l-.017.02-7.47 6.903a.9.9 0 0 1-1.22 0l-7.305-6.73-.008-.01a4.986 4.986 0 0 1-1.465-3.535c0-1.279.488-2.56 1.465-3.536A4.985 4.985 0 0 1 7.494 6.46c1.24-.029 2.49.4 3.472 1.29l.01.01L12 8.774l.851-.85.01-.01c1.046-.951 2.322-1.434 3.59-1.434 1.273 0 2.52.49 3.472 1.442z’/%3E %3C/g%3E %3C/g%3E %3C/g%3E%3C/svg%3E) 推荐 ’ fill=’%23000’ fill-opacity=’.9’/%3E%3C/svg%3E) 留言