void QXYSeries::replace(qreal oldX, qreal oldY, qreal newX, qreal newY)
Replaces the point with the coordinates oldX and oldY with the point with the coordinates newX and newY. Does nothing if the old point does not exist.
See also pointReplaced().void QXYSeries::replace(const QPointF &oldPoint,const QPointF &newPoint)
Replaces the point specified by oldPoint with the one specified by newPoint.
See also pointReplaced().void QXYSeries::replace(int index, qreal newX, qreal newY)
Replaces the point at the position specified by index with the point that has the coordinates newX and newY.
See also pointReplaced().void QXYSeries::replace(int index,const QPointF &newPoint)
Replaces the point at the position specified by index with the point specified by newPoint.
See also pointReplaced().void QXYSeries::replace(QList<QPointF> points)
Replaces the current points with the points specified by points.
Note: This is much faster than replacing data points one by one,or first clearing all data,and then appending the new data. Emits QXYSeries::pointsReplaced() when the points have been replaced. However, note that using the overload that takes QVector<QPointF> as parameter is faster than usingthis overload.
See also pointsReplaced().void QXYSeries::replace(QVector<QPointF> points)
Replaces the current points with the points specified by points.
Note: This is much faster than replacing data points one by one,or first clearing all data,and then appending the new data. Emits QXYSeries::pointsReplaced() when the points have been replaced.
See also pointsReplaced().