自訂視覺效果標題、圖例及背景 (教學課程)Customize visualization titles, legends, and backgrounds (Tutorial)

在本教學課程中,您將學到一些不同的方法,可以用來自訂視覺效果。In this tutorial you'll learn a few different ways to customize your visualizations. 有許多選項可以自訂視覺效果,了解它們的最佳方式是探索 [格式化] 窗格 (選取滾筒刷圖示)。There are so many options for customizing your visualizations, the best way to learn about them all is by exploring the Formatting pane (select the paintroller icon). 為了讓您快速入門,本文向您示範如何自訂視覺效果標題、圖例和背景。To get you started, this article shows you how to customize a visualization title, legend, and background.

並非所有視覺效果都可自訂,請參閱完整清單Not all visualizations can be customized, see the complete list.

看 Amanda 在報表中自訂視覺效果 (向前快轉到影片的 4:50 處)。Watch Amanda customize visualizations in her report (fast-forward to 4:50 in the video). 然後遵循以下影片的指示,用您自己的資料試試看。Then follow the instructions below the video to try it out yourself with your own data.

自訂報表中的視覺效果標題Customize visualization titles in reports

若要跟著做,請登入 app.powerbi,然後在編輯檢視開啟零售分析範例報表。To follow along, sign into app.powerbi and open the Retail Analysis Sample report in Editing View.

注意

當您將視覺效果釘選至儀表板時,它會變成儀表板圖格。When you pin a visualization to a dashboard, it becomes a dashboard tile. 圖格本身也可以使用新的標題和副標題、超連結來自訂,也能調整大小The tiles themselves can also be customized with new titles and subtitles, hyperlinks, and resized.

  1. 瀏覽至報表的 [新門市] 頁面,並選取 [依開張月份的開張門市計數] 直條圖。Navigate to the "New Stores" page of the report and select the "Open Store Count by Open Month..." column chart.
  2. 在 [視覺效果] 窗格中,選取滾筒刷圖示以顯示格式化選項。In the Visualizations pane, select the paintroller icon to reveal the formatting options. 選取 [標題] 以展開該區段。and select Title to expand that section.

  3. 選取 [開啟] (或 [關閉]) 滑桿,以開啟及關閉 標題Turn Title on and off by selecting the On (or Off) slider. 現在請將其保持 [開啟] 。For now, leave it On.

  4. 變更 標題文字 ,方法是在文字欄位中輸入 依開張月份的門市計數Change Title Text by typing Store count by month opened in the text field.
  5. 字型色彩 變更為橙色,並將 背景色彩 變更為黃色。Change Font color to orange and Background Color to yellow.

    • 選取下拉式清單,並從 [佈景主題色彩] 、[最近使用的色彩] ,或 [自訂色彩] 選擇色彩。Select the dropdown and choose a color from the Theme Colors, Recent Colors, or Custom color.
    • 選取此下拉式清單,以關閉 [色彩] 視窗。Select the dropdown to close the color window.

    您隨時可以回復預設色彩,方法是在 [色彩] 視窗中選取 [還原為預設值] 。You can always revert to the default colors by selecting Revert to default in the color window.

  6. 將文字大小放大到 12。Increase the text size to 12.
  7. 我們要對圖表標題所做的最後一項自訂,是要讓視覺效果對齊中央。The last customization we'll make to the chart title is to align it in the center of the visualization. 標題位置預設為靠左對齊。The title position defaults to left-aligned.

    此時教學課程中,直條圖標題看起來應該類似這樣:At this point in the tutorial, your column chart title should look like something like this:

    若要還原到目前為止我們所做過的所有標題自訂,請選取 [標題] 自訂窗格底部的 [還原為預設值] 。To revert all the title customization we've done so far, select Revert To Default, at the bottom of the Title customization pane.

自訂視覺效果的背景Customize visualization backgrounds

選取相同的直條圖之後,展開 [背景] 選項。With the same column chart selected, expand the Background options.

  1. 選取 [開啟] (或 [關閉]) 滑桿,以開啟或關閉背景。Turn the background on and off by selecting the On (or Off) slider. 現在請將其保持 [開啟] 。For now, leave it On.
  2. 將背景色彩變更為 74% 灰色。Change the background color to 74% grey.

    • 選取下拉式清單,並從 [佈景主題色彩]、[最近使用的色彩]或 [自訂色彩] 選擇灰色。Select the dropdown and choose a grey color from the Theme Colors, Recent Colors, or Custom color.
    • 將透明度變更為 74%。Change Transparency to 74%.

    若要還原目前為止我們所做過的所有標題背景自訂,請選取 [背景] 自訂窗格底部的 [還原為預設值] 。To revert all the title background customization we've done so far, select Revert To Default, at the bottom of the Background customization pane.

自訂視覺效果的圖例Customize visualization legends

  1. 開啟 [概觀] 報表頁面,然後選取「依會計月份與區域經理的總銷售額差異」圖表。Open the Overview report page and select the "Total Sales Variance by FiscalMonth and District Manager" chart.
  2. 在 [視覺效果] 索引標籤中,選取畫刷圖示以開啟 [格式化] 窗格。In the Visualization tab, select the paintbrush icon to open the formatting pane.
  3. 展開 [圖例] 選項。Expand Legend options.

  4. 選取 [開啟] (或 [關閉]) 滑桿,以開啟或關閉圖例。Turn the legend on and off by selecting the On (or Off) slider. 現在請將其保持 [開啟] 。For now, leave it On.
  5. 將圖例移到視覺效果的左側。Move the legend to the left side of the visualization.
  6. 加入圖例標題,方法是將 [標題] 切換為 [開啟] ,然後在 [圖例名稱] 欄位中輸入 經理Add a legend title by toggling Title to On and, in the Legend name field, typing Managers.

    若要還原到目前為止我們所做過的所有圖例自訂,請選取 [圖例] 自訂窗格底部的 [還原為預設值] 。To revert all the legend customization we've done so far, select Revert To Default, at the bottom of the Legend customization pane.

可以自訂的視覺效果類型Visualization types that can be customized

視覺效果Visualization 標題Title 背景Background 圖例Legend
區域area yes yes yes
bar yes yes yes
卡片card yes yes N/An/a
多列卡片multi row card yes yes N/An/a
直條圖column yes yes yes
組合圖combo yes yes yes
環圈圖donut yes yes yes
區域分布圖filled map yes yes yes
漏斗圖funnel yes yes N/An/a
量測計gauge yes yes N/An/a
KPIkpi yes yes N/An/a
折線圖line yes yes yes
地圖map yes yes yes
矩陣圖matrix yes yes N/An/a
圓形圖pie yes yes yes
散佈圖scatter yes yes yes
交叉分析篩選器slicer yes yes N/An/a
資料表table yes yes N/An/a
文字方塊textbox 不可以no yes N/An/a
矩形式樹狀結構圖treemap yes yes yes
瀑布圖waterfall yes yes 可以yes

後續步驟Next steps

深入了解 Power BI 報表中的視覺效果More about Visualizations in Power BI reports
自訂 X 軸和 Y 軸Customize X-axis and Y-axis
自訂色彩和軸屬性Customize colors and axis properties
Power BI - 基本概念Power BI - Basic Concepts
有其他問題嗎?More questions? 試試 Power BI 社群Try the Power BI Community