PowerApps 中的圓形圖控制項Pie chart control in PowerApps

控制項,顯示相較於彼此的相對值。A control that shows relative values in comparison to each other.


新增圓形圖控制項,如果您想要顯示資料表的相對資料,其中包含最左邊資料行中的標籤和左邊算起第二個資料行中的值。Add a Pie chart control if you want to show relative data from a table that contains labels in the leftmost column and values in the second column from the left.

主要屬性Key properties

Items – 出現在資源庫、清單或圖表等控制項中的資料來源。Items – The source of data that appears in a control such as a gallery, a list, or a chart.

ShowLabels – 圓形圖是否顯示與其每個扇形相關聯的值。ShowLabels – Whether a pie chart shows the value that's associated with each of its wedges.

其他屬性Additional properties

BorderColor – 控制項框線的色彩。BorderColor – The color of a control's border.

BorderStyle – 決定控制項的框線為實線虛線點線BorderStyle – Whether a control's border is Solid, Dashed, Dotted, or None.

BorderThickness – 控制項框線的粗細。BorderThickness – The thickness of a control's border.

Color – 控制項文字的色彩。Color – The color of text in a control.

DisplayMode – 控制項允許使用者輸入 (編輯)、只顯示資料 (檢視) 或者已停用 (停用)。DisplayMode – Whether the control allows user input (Edit), only displays data (View), or is disabled (Disabled).

DisabledBorderColor – 控制項的 DisplayMode 屬性設為 Disabled 時,該控制項所呈現的框線色彩。DisabledBorderColor – The color of a control's border if the control's DisplayMode property is set to Disabled.

Explode – 圓形圖中扇形之間的距離。Explode – The distance between wedges in a pie chart.

Font – 文字可使用的字型家族名稱。Font – The name of the family of fonts in which text appears.

Height – 控制項的頂端和底部邊緣之間的距離。Height – The distance between a control's top and bottom edges.

HoverBorderColor – 使用者將滑鼠指標停留在控制項上時,該控制項所呈現的框線色彩。HoverBorderColor – The color of a control's border when the user keeps the mouse pointer on that control.

ItemBorderColor – 圓形圖中每個扇形周圍的框線色彩。ItemBorderColor – The color of the border around each wedge in a pie chart.

ItemBorderThickness – 圓形圖中每個扇形周圍的框線粗細。ItemBorderThickness – The thickness of the border around each wedge in a pie chart.

ItemColorSet – 圖表中每個資料點的色彩。ItemColorSet – The color of each data point in a chart.

LabelPosition – 圓形圖中相對於其扇形的標籤位置。LabelPosition – The location of labels in a pie chart relative to its wedges.

OnSelect – 在使用者點選或按一下控制項時,應用程式的回應方式。OnSelect – How the app responds when the user taps or clicks a control.

PressedBorderColor – 使用者點選或按一下控制項時,該控制項所呈現的框線色彩。PressedBorderColor – The color of a control's border when the user taps or clicks that control.

Size – 控制項上文字的字型大小。Size – The font size of the text that appears on a control.

Visible – 控制項顯示或隱藏。Visible – Whether a control appears or is hidden.

Width – 控制項左邊緣與右邊緣之間的距離。Width – The distance between a control's left and right edges.

X – 控制項左邊緣與其父容器 (沒有父容器時則為螢幕) 左邊緣之間的距離。X – The distance between the left edge of a control and the left edge of its parent container (screen if no parent container).

Y – 控制項上邊緣與其父容器 (沒有父容器時則為螢幕) 上邊緣之間的距離。Y – The distance between the top edge of a control and the top edge of the parent container (screen if no parent container).

Max( DataSource, ColumnName )Max( DataSource, ColumnName )


  1. 新增按鈕控制項,並將其 OnSelect 屬性設為以下公式:Add a Button control, and set its OnSelect property to this formula:
    Collect(Revenue2015, {Product:"Europa", Revenue:27000}, {Product:"Ganymede", Revenue:26300}, {Product:"Callisto", Revenue:29200})Collect(Revenue2015, {Product:"Europa", Revenue:27000}, {Product:"Ganymede", Revenue:26300}, {Product:"Callisto", Revenue:29200})

    不知道如何新增和設定控制項嗎?Don't know how to add and configure a control?

    想要了解 Collect 函式或其他函式的詳細資訊嗎?Want more information about the Collect function or other functions?

  2. 按下 F5 鍵,按一下或點選按鈕控制項,然後按下 Esc 鍵以返回預設工作區。Press F5, click or tap the Button control, and then press Esc to return to the default workspace.
  3. 新增圓形圖控制項,並將其 Items 屬性設定為 Revenue2015Add a Pie chart control, and set its Items property to Revenue2015.

    圓形圖控制項會顯示相對於其他產品之每個產品的收入資料。The Pie chart control shows revenue data for each product in relation to the other products.