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.
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.propertylabelsLabels configuration for Pie Chart.propertycolorsColors configuration for Pie Chart.propertywidthWidth configuration for Pie Chart.propertyheightHeight configuration for Pie Chart.propertyinner_radiusInner radius configuration for Pie Chart.propertystart_angleStart angle configuration for Pie Chart.propertyclockwiseClockwise configuration for Pie Chart.propertypad_anglePad angle configuration for Pie Chart.propertyshow_labelsShow labels configuration for Pie Chart.propertylabel_colorLabel color configuration for Pie Chart.propertyfont_familyFont family configuration for Pie Chart.propertyfont_sizeFont size configuration for Pie Chart.propertyvisibleVisible configuration for Pie Chart.propertyShow 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