Charts and visualization
Native Qt
Line Chart
A responsive native line chart with labels, points, grids, bounds, and selection events.
Usage
Ruby example
Paste this complete Builder example inside the app surface from the Quickstart. Replace illustrative asset paths with files from your project.
line_chart [18, 42, 31, 76, 58, 91], labels: %w[Mon Tue Wed Thu Fri Sat], color: "#b7ff5a", show_points: true
API
Component properties
14 component-specific values, plus shared item and layout properties.
valuesValues configuration for Line Chart.propertylabelsLabels configuration for Line Chart.propertywidthWidth configuration for Line Chart.propertyheightHeight configuration for Line Chart.propertycolorColor configuration for Line Chart.propertyfill_colorFill color configuration for Line Chart.propertygrid_colorGrid color configuration for Line Chart.propertyline_widthLine width configuration for Line Chart.propertyminimumMinimum configuration for Line Chart.propertymaximumMaximum configuration for Line Chart.propertyshow_gridShow grid configuration for Line Chart.propertyshow_pointsShow points configuration for Line Chart.propertypoint_sizePoint size configuration for Line Chart.propertyvisibleVisible configuration for Line 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