基本區域圖 (教學課程)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. 從 [欄位] 窗格中選取 [銷售額] > [This Year Sales] (去年度銷售額),以及 [This Year Sales > Value] (本年度銷售額 > 值)。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. 若要依照月份顯示圖表,請選取省略符號 (視覺效果的右上角),並選擇 [Sort by month] (按月份排序)。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