Drawing a Callout on Top of a Chart

注意: This is part of the Charts with Widgets Gallery 範例。

The QChart 類提供在場景坐標和係列域 (由軸範圍定義) 之間映射的 2 方法。

QPointF QChart::mapToPosition (const QPointF &value, QAbstractSeries *series)

QPointF QChart::mapToValue (const QPointF &position, QAbstractSeries *series)