| 1 |
// Copyright (C) 2016 The Qt Company Ltd. |
| 2 |
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only |
| 3 |
|
| 4 |
/*! |
| 5 |
\page qtcharts-qmlpolarchart-example.html |
| 6 |
\title Using Polar Charts with QML |
| 7 |
\brief Shows how to make a few different polar chart in your QML application. |
| 8 |
\include qmlchartsgallery.qdocinc |
| 9 |
|
| 10 |
We begin with a chart that has a spline series and a scatter series with random |
| 11 |
data. Both series use the same axes. |
| 12 |
|
| 13 |
\image examples_qmlpolarchart1.png {Screenshot showing a polar chart with two |
| 14 |
data series, one being a blue spline chart and the other being a scatter |
| 15 |
chart with green dots} |
| 16 |
|
| 17 |
\snippet qmlchartsgallery/qml/TwoSeriesPolar.qml 1 |
| 18 |
|
| 19 |
The next chart shows some accurate historical data for which we need |
| 20 |
to use a DateTimeAxis and a AreaSeries. |
| 21 |
|
| 22 |
\image examples_qmlpolarchart2.png {Screenshot showing a polar chart displaying |
| 23 |
accurate historical data as an area chart with a DateTimeAxis} |
| 24 |
|
| 25 |
\snippet qmlchartsgallery/qml/DateTimeAxisPolar.qml 1 |
| 26 |
|
| 27 |
The next chart uses a CategoryAxis to make the data easier to understand. |
| 28 |
|
| 29 |
\image examples_qmlpolarchart3.png {Screenshot showing a polar chart with the |
| 30 |
axis being categorised by critical, low, normal, high, and extremely high} |
| 31 |
|
| 32 |
\snippet qmlchartsgallery/qml/CategoryAxisPolar.qml 1 |
| 33 |
*/ |