| animation |
|
|
- |
| areachart |
|
|
- |
| axis |
|
|
- |
| barchart |
|
|
- |
| charthelpers_p.h |
|
895 |
- |
| CMakeLists.txt |
|
7944 |
- |
| customchart |
|
|
- |
| data |
|
|
- |
| doc |
|
|
- |
| linechart |
|
|
- |
| piechart |
|
|
- |
| qabstractseries.cpp |
!
\class QAbstractSeries
\inmodule QtGraphs
\ingroup graphs_2D
\brief The QAbstractSeries class is a base class for all Qt Graphs for 2D series.
Usually, the series type specific inherited classes are used instead of the base class.
\sa QLineSeries, QSplineSeries, QScatterSeries, QBarSeries, QXYSeries
|
22658 |
- |
| qabstractseries.h |
|
4731 |
- |
| qabstractseries_p.h |
|
1934 |
- |
| qgraphsview.cpp |
!
\class QGraphsView
\inmodule QtGraphs
\internal
|
61514 |
- |
| qgraphsview_p.h |
|
13816 |
- |
| qml |
|
|
- |
| qpolarview.cpp |
!
\qmltype PolarView
\nativetype QPolarView
\inqmlmodule QtGraphs
\ingroup graphs_qml_2D
\inherits GraphsView
\since 6.13
\brief Draws series on a polar coordinate system.
PolarView plots series on a polar coordinate system instead of the Cartesian
one that \l GraphsView uses. It reinterprets \l{GraphsView::axisX}{axisX} as
the angular axis and \l{GraphsView::axisY}{axisY} as the radial axis.
The angular axis maps its full range to one complete revolution, starting at
the top of the graph and advancing clockwise. The radial axis maps its
minimum to the center of the graph and its maximum to the outer edge. Values
below the radial minimum collapse onto the center.
PolarView supports \l LineSeries, \l ScatterSeries, \l SplineSeries, and
\l AreaSeries. Adding any other series type prints a warning and leaves the
graph unchanged. A polar view also rejects \l BarCategoryAxis and
\l ColorAxis.
The following example code illustrates how to use the PolarView type:
\qml
PolarView {
anchors.fill: parent
labelPadding: 12
axisX: ValueAxis { min: 0; max: 360 } // angular
axisY: ValueAxis { min: 0; max: 10 } // radial
LineSeries {
color: "#46f477"
width: 2
XYPoint { x: 0; y: 10 }
XYPoint { x: 120; y: 3 }
XYPoint { x: 240; y: 4 }
XYPoint { x: 360; y: 10 }
}
}
\endqml
The image below illustrates the result:
\image graphs2d-polarview.webp {A polar view with a single line series.}
\sa GraphsView, LineSeries, ScatterSeries, SplineSeries, AreaSeries,
ValueAxis
|
7162 |
- |
| qpolarview_p.h |
|
1620 |
- |
| qsgrenderer |
|
|
- |
| scatterchart |
|
|
- |
| splinechart |
|
|
- |
| xychart |
|
|
- |