我需要Google表中的多层嵌套饼图。
显示类别和子类别中的数字总和。可以使用代码或仅公式。
或者,如果类似于Google表的系统已经具有简单的可配置的嵌套派图,则可以考虑使用它。
这是我想结合的2个图表的示例表:

它可以类似于这里的相似之处,但是总和而不是计数:
三个Google Sheets的数据图(饼图)
或D3 Sunburst分区。
I need a multi-level nested pie chart in google sheets.
To show number sums in categories and sub-categories. Can use code or just formulas.
Or if a system similar to google sheets already has a easy configurable nested pie-chart I can consider using it.
Here is a sample sheet with 2 charts I want to combine:
https://docs.google.com/spreadsheets/d/1TvOf_tRNFS4zqbYR8EMGfTH1krI_iX9resrQ_AwmGZ8/edit?usp=sharing



It can be similar to the one here, but with sums instead of counts:
Three Google Sheets' data graphs (pie charts) in one graph
Or a D3 Sunburst Partition.
发布评论
评论(2)
动态FX:
该公式在A:C范围内获取数据,并创建所有必要的步骤,列和行,以馈送饼图。
标记的行
♀♂
用作饼图比率校正器列E可以用作子类别标签系统(如果需要)
第3行可以用作基本派的标签
首先,我们创建了一个基本饼图(来自黑色行),该标签将用作背景:
♀的情况下,需要选择每个切片的颜色和子色。 ♂
slicessrc =“ https://i.sstatic.net/72mif.png” alt =“在此处输入图像说明”>
“ https://i.sstatic.net/o2z16.png” rel =“ nofollow noreferrer”>
“ nofollow noreferrer”>
dynamic fx:
the formula takes data in A:C range and creates all necessary steps, columns and rows that will feed pie charts.
rows labeled
♀♂
serve as pie chart ratio correctorscolumn E can be used as a subcategory labeling system if needed
in the same manner row 3 can be used as labels for base pie
first, we create a base pie chart (from the black row) which will serve as background:
♀♂
slicesand repeat for the next column...
demo spreadsheet
e2:
g2:
i2:
k2:
E2:
G2:
I2:
K2:
demo sheet