Debian Codegraph @

examples/charts/qmlchartsgallery/doc/src/examples-qmlaxes.qdoc

raw
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-qmlaxes-example.html
6 \title Using Axes with QML
7 \brief Demonstrates how to use axes in your QML application.
8 \include qmlchartsgallery.qdocinc
9
10 We begin with a chart that has a line series and a scatter series with random
11 data. We then have a graph with two series that share a common axis.
12
13 \image examples_qmlaxes1.png {Screenshot showing a chart that has two data
14 series, one being a blue line chart and the other being a scatter chart
15 with green dots}
16
17 \snippet qmlchartsgallery/qml/TwoSeries.qml 1
18
19 This chart shows some accurate historical data. It is created by the following
20 snippet that makes use of a DateTimeAxis.
21
22 \image examples_qmlaxes2.png {Screenshot showing the accurate historical data
23 course as a line chart using DateTimeAxis}
24
25 \snippet qmlchartsgallery/qml/DateTimeAxis.qml 1
26
27 This following chart is created using a CategoryAxis to make the data
28 easier to understand.
29
30 \image examples_qmlaxes3.png {Screenshot showing a line chart example with the
31 y-axis being categorised by critical, low, medium, high, and extremely
32 high}
33
34 \snippet qmlchartsgallery/qml/CategoryAxis.qml 1
35 */