QPolarChart Class
QPolarChart は、データを極座標チャートで表示します。詳細...
| Header: | #include <QPolarChart> |
| Inherits: | QChart |
| Status: | Deprecated |
このクラスは非推奨です。新しいコードでの使用は強く推奨しません。
パブリック型
| enum | PolarOrientation { PolarOrientationRadial, PolarOrientationAngular } |
| flags | PolarOrientations |
パブリック関数
| QPolarChart(QGraphicsItem *parent = nullptr, Qt::WindowFlags wFlags = Qt::WindowFlags()) | |
| virtual | ~QPolarChart() |
| void | addAxis(QAbstractAxis *axis, QPolarChart::PolarOrientation polarOrientation) |
| QList<QAbstractAxis *> | axes(QPolarChart::PolarOrientations polarOrientation = PolarOrientations(PolarOrientationRadial | PolarOrientationAngular), QAbstractSeries *series = nullptr) const |
静的パブリックメンバー
| QPolarChart::PolarOrientation | axisPolarOrientation(QAbstractAxis *axis) |
詳細な説明
極座標グラフは、データを円形のグラフで表示するもので、データの配置は、グラフの中心である極からの角度と距離に基づいて行われます。

極座標グラフは、QChart の特殊な形態であり、線、スプライン、面、散布図の各系列、およびそれらがサポートするすべての軸タイプをサポートしています。各軸は、半径軸または角度軸として使用できます。
角度軸を持つQValueAxis では、最初の目盛りと最後の目盛りが 0/360 度の角度に配置されます。
系列内の2つの連続する点間の角度が180度を超える場合、その2点を結ぶ直線は意味をなさなくなるため、描画されません。その代わりに、チャートの中心を起点および終点とする線が描画されます。したがって、線、スプライン、または面系列を表示する際は、軸の範囲をそれに応じて選択する必要があります。
極座標グラフでは、同じ向きのすべての軸が同じ位置に描画されるため、追加の軸がグリッドのカスタマイズにのみ使用される場合を除き、同じ向きの軸を複数使用すると混乱を招く可能性があります。たとえば、セカンダリの陰影付きQCategoryAxis を使用して強調表示された範囲を表示したり、ラベルを非表示にしたセカンダリのQValueAxis を使用してラベルのないサブ目盛りを提供したりすることができます。
「QChart」も参照してください 。
メンバ型のドキュメント
enum QPolarChart::PolarOrientation
flags QPolarChart::PolarOrientations
この列挙型は、軸の極座標方向を指定します。
| 定数 | 値 | 説明 |
|---|---|---|
QPolarChart::PolarOrientationRadial | 0x1 | 半径軸。値は極を起点として、チャートの半径に沿って配置されます。 |
QPolarChart::PolarOrientationAngular | 0x2 | 角度軸。値はチャートの周囲に配置されます。 |
PolarOrientations 型は、QFlags<PolarOrientation> の typedef です。これは、PolarOrientation 値の論理和(OR)の組み合わせを格納します。
メンバ関数のドキュメント
[explicit] QPolarChart::QPolarChart(QGraphicsItem *parent = nullptr, Qt::WindowFlags wFlags = Qt::WindowFlags())
parent の子として極座標チャートを生成します。wFlags で指定されたプロパティは、QChartのコンストラクタに渡されます。
[virtual noexcept] QPolarChart::~QPolarChart()
極座標グラフオブジェクトと、それに追加された系列や軸などの子オブジェクトを削除します。
void QPolarChart::addAxis(QAbstractAxis *axis, QPolarChart::PolarOrientation polarOrientation)
この便利メソッドは、極座標の向き `polarOrientation` を持つ極座標グラフに、軸 `axis ` を追加します。グラフがこの軸の所有権を取得します。
注: 極座標グラフには、QChart::addAxis() を使用しても軸 を追加できます。指定された配置によって極座標の向きが決まります。水平配置は角度軸を示し、垂直配置は半径軸を示します。
QChart::removeAxis()、QChart::createDefaultAxes()、QAbstractSeries::attachAxis()、およびQChart::addAxis()も参照してください 。
QList<QAbstractAxis *> QPolarChart::axes(QPolarChart::PolarOrientations polarOrientation = PolarOrientations(PolarOrientationRadial | PolarOrientationAngular), QAbstractSeries *series = nullptr) const
極座標方向polarOrientation を持つ系列series に対して追加された軸を返します。系列が指定されていない場合は、指定された極座標方向を持つ任意の軸が返されます。
addAxis()も参照してください 。
[static] QPolarChart::PolarOrientation QPolarChart::axisPolarOrientation(QAbstractAxis *axis)
極座標グラフの角軸は水平方向を示し、半径軸は垂直方向を示します。この関数は、軸axis の方向を、対応する極座標方向に変換するための便利な関数です。axis がnullである場合、または極座標グラフに追加されていない場合、戻り値は意味を持ちません。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.