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) |
상세 설명
극좌표 차트는 데이터를 원형 그래프로 표시하며, 데이터의 위치는 그래프의 중심인 극( pole)으로부터의 각도와 거리를 기준으로 결정됩니다.

극좌표 차트는 선, 스플라인, 면적 및 산점도 시계열과 이들이 지원하는 모든 축 유형을 지원하는 극좌표형 차트( QChart )의 특수한 형태입니다. 각 축은 방사형 축 또는 각도 축으로 사용할 수 있습니다.
각도형 QValueAxis 의 첫 번째 및 마지막 눈금 표시는 0/360도 각도에 위치합니다.
시리즈 내 두 연속된 점 사이의 각도 거리가 180도를 초과하는 경우, 두 점을 연결하는 직선은 의미가 없어지므로 그려지지 않습니다. 대신 차트의 중심을 오가는 선이 그려집니다. 따라서 선, 스플라인 또는 면적 시리즈를 표시할 때는 축 범위를 이에 맞게 선택해야 합니다.
극좌표 차트는 동일한 방향의 모든 축을 같은 위치에 그립니다. 따라서 추가 축이 격자 사용자 지정에만 사용되는 경우가 아니라면, 동일한 방향의 축을 여러 개 사용하는 것은 혼란을 초래할 수 있습니다. 예를 들어, 보조 음영 축 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.