zui docs v0.0.5
GitHub ↗
Charts and visualization Native Qt

Pie Chart

Pie Chart is a native Zui component in the charts and visualization catalog, with 14 component-specific properties.

Usage

Ruby example

Paste this complete Builder example inside the app surface from the Quickstart. Replace illustrative asset paths with files from your project.

Ruby
pie_chart [46, 31, 23], labels: %w[Ruby QML Native], colors: %w[#b7ff5a #a88bff #66e3ff], show_labels: true
API

Component properties

14 component-specific values, plus shared item and layout properties.

valuesValues configuration for Pie Chart.property
labelsLabels configuration for Pie Chart.property
colorsColors configuration for Pie Chart.property
widthWidth configuration for Pie Chart.property
heightHeight configuration for Pie Chart.property
inner_radiusInner radius configuration for Pie Chart.property
start_angleStart angle configuration for Pie Chart.property
clockwiseClockwise configuration for Pie Chart.property
pad_anglePad angle configuration for Pie Chart.property
show_labelsShow labels configuration for Pie Chart.property
label_colorLabel color configuration for Pie Chart.property
font_familyFont family configuration for Pie Chart.property
font_sizeFont size configuration for Pie Chart.property
visibleVisible configuration for Pie Chart.property
Show 14 shared item properties
enabledopacityscalerotationzfill_widthfill_heightpreferred_widthpreferred_heightminimum_widthminimum_heightmaximum_widthmaximum_heightlayout_alignment
Interaction

Events

Subscribe with on widget, :event and keep behavior in Ruby.

selectNative event payload
hoverNative event payload