Histogram QML Type

Displays a histogram. More...

Import Statement: import QuickGraphLib.GraphItems
Inherits:

ShapePath

Properties

Detailed Description

Warning: Rendering of histograms in Qt 6.8 under the curve renderer may include artefacts (see QTBUG-133247). If this happens, switch the renderer of the GraphArea back to the geometry renderer. This issue should be fixed in a future Qt version.

See also Basic histogram.

Property Documentation

bins : alias

List of doubles, representing the edges of each histogram bin. Should have a length equal to the length of heights plus one.


dataTransform : alias

Must be assigned the data transform of the graph area this axis is paired to.

See also GraphArea::dataTransform.


heights : alias

List of doubles, representing the height of each histogram bin. Should have a length equal to the length of bins minus one.


vertical : alias

Whether to draw the histogram horizontally (i.e. bins are X positions) or vertically (i.e. bins are Y positions).