Tableau 简明教程
Tableau - Pie Chart
饼状图将数据表示为不同大小和颜色的圆形切片。这些切片都有标签,并且图表中还显示了与每个切片相对应的数字。您可以从“标记”卡中选择饼状图选项来创建饼状图。
A pie chart represents data as slices of a circle with different sizes and colors. The slices are labeled and the numbers corresponding to each slice is also represented in the chart. You can select the pie chart option from the Marks card to create a pie chart.
Simple Pie Chart
选择一个维度和一个度量来创建简单的饼状图。例如,将名为区域的维度与名为利润的度量结合使用。将“区域”维度放到颜色和标签标记中。将“利润”度量拖到大小标记中。选择“饼状”作为图表类型。将显示以下图表,其中显示了 4 个不同颜色的区域。
Choose one dimension and one measure to create a simple pie chart. For example, take the dimension named region with the measure named profit. Drop the Region dimension in the colors and label marks. Drop the Profit measure into the size mark. Choose the chart type as Pie. The following chart appears which shows the 4 regions in different colors.
Drill-Down Pie Chart
您可以选择具有层次结构的维度,并且随着您深入层次结构,图表的变化将反映所选维度的级别。在以下示例中,我们选取具有另外两个级别(制造商和产品名称)的维度子类别。选取度量利润并将其拖到标签标记。将显示以下饼状图,其中显示了每个切片的价值。
You can choose a dimension with hierarchy and as you go deeper into the hierarchy, the chart changes reflect the level of the dimension chosen. In the following example, we take the dimension Sub-Category which has two more levels - Manufacturer and Product Name. Take the measure profit and drop it to the Labels mark. The following pie chart appears which shows the values for each slice.
在层次结构中再深入一层,我们将制造商作为标签,并且上述饼状图会变成以下饼状图。
Going one more level into the hierarchy, we get the manufacturer as the label and the above pie chart changes to the following one.