Tableau 简明教程

Tableau - Gantt Chart

甘特图显示了任务或资源的价值在一特定时间段内的进度。在项目管理和其他类型的一段时间内的变异研究中,它被广泛使用。因此,在甘特图中,时间维度是一个基本字段。

A Gantt chart shows the progress of the value of a task or resource over a period of time. It is extensively used in project management and other types of variation study over a period of time. Thus, in Gantt chart, time dimension is an essential field.

甘特图除了时间维度之外,至少需要一个维度和一个度量。

The Gantt chart takes at least a dimension and a measure in addition to the time dimension.

Creating a Gantt Chart

使用 Sample-superstore 计划根据一段时间内不同的产品子类别的运输方式来找出数量的变化。要实现这一目标,请按照以下步骤操作。

Using the Sample-superstore, plan to find the variation of quantities of different SubCategory of products according to their ship mode over a range of time. To achieve this objective, following are the steps.

Step 1 − 将维度 order date 拖动到 Columns 货架,将 Sub-Category 拖动到 Rows 货架。然后,将 order date 添加到 Filters 货架。右键单击 order date 将其转换为精确的日期值,如下面的屏幕截图所示。

Step 1 − Drag the dimension order date to the Columns shelf and Sub-Category to the Rows shelf. Next, add the order date to the Filters shelf. Right-click on order date to convert it to the exact date values as shown in the following screenshot.

gannt chart 1

Step 2 − 编辑筛选条件以选择一个日期范围。这是因为您希望获取各个日期值,而数据中有很多日期。该范围的创建方式如下面的屏幕截图所示。

Step 2 − Edit the filter condition to select a range of dates. It is because you want individual date values and there is a very large number of dates in the data. The range is created as shown in the following screenshot.

gannt chart 21

Step 3 − 将维度 ship mode 拖动到 Color 货架,将度量 quantity 拖动到 Marks 卡片下的 Size 货架。这样就能生成甘特图,如下面的屏幕截图所示。

Step 3 − Drag the dimension ship mode to the Color shelf and the measure quantity to the Size shelf under the Marks card. This produces the Gantt chart as shown in the following screenshot.

gannt chart final