QBrush QChart:: plotAreaBackgroundBrush() const
Returns the value in the series specified by series at the position specified by position in a chart. QPointF QChart:: mapToValue(const QPointF & position, QAbstractSeries * series = nullptr) Returns the position on the chart that corresponds to the value value in the series specified by series. QPointF QChart:: mapToPosition(const QPointF & value, QAbstractSeries * series = nullptr) Returns true if any series has a zoomed domain. See also axes() and QAbstractSeries::attachAxis(). The axes specific to the series can be later obtained from the chart by providing the series as the parameter for the axes() function call. If there are several series of different types added to the chart, then each series gets its own axes pair. If there are several QXYSeries derived series added to the chart and no series of other types have been added, then only one pair of axes is created. Any axes previously added to the chart will be deleted. void QChart:: createDefaultAxes()Ĭreates axes for the chart based on the series that have already been added to the chart. Gets the pen that is used for painting the background of the chart area. Gets the brush that is used for painting the background of the chart area. See also addAxis() and createDefaultAxes(). If no series is specified, all axes added to the chart with the specified orientation are returned. Returns the axes attached to the series series with the orientation specified by orientation. QList QChart:: axes( Qt::Orientations orientation = Qt::Horizontal|Qt::Vertical, QAbstractSeries * series = nullptr) const See also removeSeries(), removeAllSeries(), createDefaultAxes(), and QAbstractSeries::attachAxis(). This can be confusing if the same chart also displays other series that have properly attached axes, so always make sure you either call createDefaultAxes() after a series has been added or explicitly attach axes for the series. If no axes are attached to the newly added series before the chart is shown, the series will get drawn as if it had axes with ranges that exactly fit the series to the plot area of the chart. Note: A newly added series is not attached to any axes by default, not even those that might have been created for the chart using createDefaultAxes() before the series was added to the chart. SetPlotAreaBackgroundVisible(bool visible = true) SetPlotAreaBackgroundPen(const QPen & pen) SetPlotAreaBackgroundBrush(const QBrush & brush)
SetDropShadowEnabled(bool enabled = true) SetBackgroundVisible(bool visible = true) SetAnimationOptions(QChart::AnimationOptions options) SetAnimationEasingCurve(const QEasingCurve & curve) MapToValue(const QPointF & position, QAbstractSeries * series = nullptr)
MapToPosition(const QPointF & value, QAbstractSeries * series = nullptr) QChart(QGraphicsItem * parent = nullptr, Qt::WindowFlags wFlags = Qt::WindowFlags())ĪddAxis(QAbstractAxis * axis, Qt::Alignment alignment)Īxes(Qt::Orientations orientation = Qt::Horizontal|Qt::Vertical, QAbstractSeries * series = nullptr) const