基本分区图(教程)Basic Area chart (Tutorial)

基本面积图(又称为分层分区图)基于折线图。The basic area chart (aka layered area chart.) is based on the line chart. 轴和行之间的区域使用颜色进行填充以指示量。The area between axis and line is filled with colors to indicate volume.

分区图强调变化随时间推移的度量值,可以用于吸引人们关注某个趋势间的总值。Area charts emphasize the magnitude of change over time, and can be used to draw attention to the total value across a trend. 例如,可以在分区图中绘制表示随时间推移的利润的数据以强调总利润。For example, data that represents profit over time can be plotted in an area chart to emphasize the total profit.

何时使用基本面积图When to use a basic area chart

基本分区图适用情况:Basic area charts are a great choice:

  • 查看并比较各个时序间的量趋势to see and compare the volume trend across time series
  • 对于表示可以物理方式计数的集合的各个序列for individual series representing a physically countable set

创建基本面积图Create a basic area chart

要遵循示例执行操作,请登录到 Power BI,然后选择获取数据 > 示例 > 零售分析示例To follow along, sign in to Power BI and select Get Data > Samples > Retail Analysis Sample.

  1. 从“零售分析示例”仪表板中,选择总商店数磁贴以打开“零售分析示例”报表。From the "Retail Analysis Sample" dashboard, select the Total Stores tile to open the "Retail Analysis Sample" report.
  2. 选择编辑报表在编辑视图中打开报表。Select Edit Report to open the report in Editing View.
  3. 添加新报表页。Add a new report page.
  4. 创建按月显示本年度销售额和去年销售额的面积图。Create an area chart that displays this year's sales and last year's sales by month.

    a.a. 从“字段”窗格,选择“销售额 > 去年销售额”,以及“本年度销售额 > 值”。From the Fields pane, select Sales > Last Year Sales, and This Year Sales > Value.

    b.b. 将图表转换为基本面积图。Convert the chart to a basic area chart.

    c.c. 选择“时间”>“月份”以将其添加到“轴”框。Select Time > Month to add it to the Axis well.

    d.d. 若要按月显示图表,请选择“省略号”(视觉对象的右上角)并选择“按月排序”。To display the chart by month, select the ellipses (top right corner of the visual) and choose Sort by month.

突出显示和交叉筛选Highlighting and cross-filtering

有关使用筛选器窗格的信息,请参阅向报表添加筛选器For information about using the Filters pane, see Add a filter to a report.

若要选择某个区域,请在该区域内或沿顶部行单击。To select an area, click inside that area or along the top line. 基本面积图不对报表页上的其他可视化效果进行交叉筛选。Basic area charts do not cross-filter the other visualizations on the report page. 但是,面积图是报表页上其他可视化效果触发的交叉筛选的目标。However, area charts are a target for cross-filtering triggered by other visualizations on the report page.

注意事项和疑难解答Considerations and troubleshooting

  • 基本面积图对于比较值无效,因为分层区域上是封闭的。Basic area charts are not effective for comparing the values due to the occlusion on the layered areas. Power BI 使用透明度指示区域的重叠。Power BI uses transparency to indicate the overlap of areas. 但是,它只适用于两个或三个不同区域。However, it only works well with two or three different areas. 需要将趋势与三个以上的度量值进行比较时,请尝试使用折线图。When you need to compare trend to more than three measures, try using line charts. 需要将量与三个以上的度量值进行比较时,请尝试使用树状图。When you need to compare volume to more than three measures, try using treemap.

后续步骤Next steps

Power BI 中的报表Reports in Power BI
Power BI 报表中的可视化效果Visualizations in Power BI reports
Power BI - 基本概念Power BI - Basic Concepts
更多问题?More questions? 尝试参与 Power BI 社区Try the Power BI Community