树形图可用来展示数据树,以父子层次结构来组织对象。例如,显示产品类别中每件产品的平均年销售额。
如何设置数据格式
- 第一列:输入层次结构中对象的名称。
- 第二列:输入对象父级的名称。父级名称还必须出现在第一列中。
- 第三列:为每个对象输入一个正数。该值决定了每个边框的大小。父级名称的汇总总数还必须出现在第三列中。
- 第四列(可选):输入一个正数,用于控制边框的颜色。
- 行:每一行代表类别中不同的项。
示例
大学专业
| Majors | 55 | |
|---|---|---|
| Bachelor of Arts | Majors | 5 |
| English | Bachelor of Arts | 5 |
| History | Bachelor of Arts | 5 |
| Music | Bachelor of Arts | 5 |
| Philosophy | Bachelor of Arts | 5 |
| Bachelor of Sciences | Majors | 6 |
| Math | Bachelor of Sciences | 6 |
| Physics | Bachelor of Sciences | 6 |
| Biology | Bachelor of Sciences | 6 |
| Engineering | Bachelor of Sciences | 6 |
午餐菜单
| Meals | 71 | |
|---|---|---|
| Appetizers | Meals | 20 |
| Soup ($6) | Appetizers | 4 |
| Cheese ($4) | Appetizers | 4 |
| Entrees | Meals | 30 |
| Burger ($8) | Entrees | 9 |
| Pasta ($8) | Entrees | 9 |
| Pizza ($8) | Entrees | 9 |
| Deserts | Meals | 20 |
| Cake ($6) | Deserts | 7 |
| Pie ($6) | Deserts | 7 |
| Drinks | Meals | 6 |
| Water ($2) | Drinks | 2 |
| Tea ($3) | Drinks | 2 |
| Coffee ($3) | Drinks | 2 |
自定义树形图
相关文章
本页面可能包含使用 AI 技术翻译的内容。AI 翻译未必准确无误。