QBoxPlotSeries Class

The QBoxPlotSeries class presents data in box-and-whiskers charts. More...

Header: #include <QBoxPlotSeries>
Instantiated By: BoxPlotSeries
Inherits: QAbstractSeries

Properties

Public Functions

bool boxOutlineVisible()
qreal boxWidth()
QBrush brush() const
int count() const
QPen pen() const
void setBoxOutlineVisible(bool visible)
void setBoxWidth(qreal width)
void setBrush(const QBrush &brush)
void setPen(const QPen &pen)

Signals

Detailed Description

A box plot series acts as a container for box-and-whiskers items. Items from multiple series are grouped into categories according to their index value.

The QBarCategoryAxis class is used to add the categories to the chart's axis. Category labels have to be unique. If the same category label is defined for several box-and-whiskers items, only the first one is drawn.

See the box-and-whiskers chart example to learn how to create a box-and-whiskers chart.

See also QBoxSet and QBarCategoryAxis.

Property Documentation

boxOutlineVisible : bool

This property holds the visibility of the box outline.

Access functions:

bool boxOutlineVisible()
void setBoxOutlineVisible(bool visible)

Notifier signal:

void boxOutlineVisibilityChanged()

boxWidth : qreal

This property holds the width of the box-and-whiskers item. The value indicates the relative width of the item within its category. The value can be between 0.0 and 1.0. Negative values are replaced with 0.0 and values greater than 1.0 are replaced with 1.0.

Access functions:

qreal boxWidth()
void setBoxWidth(qreal width)

Notifier signal:

void boxWidthChanged()

brush : QBrush

This property holds the brush used to fill the boxes of the box-and-whiskers items.

Access functions:

QBrush brush() const
void setBrush(const QBrush &brush)

Notifier signal:

void brushChanged()

count : const int

This property holds the number of box-and-whiskers items in a box plot series.

Access functions:

int count() const

Notifier signal:

void countChanged()

pen : QPen

This property holds the pen used to draw the lines of the box-and-whiskers items.

Access functions:

QPen pen() const
void setPen(const QPen &pen)

Notifier signal:

void penChanged()