Debian Codegraph @

examples/charts/qmlchartsgallery/doc/src/examples-qmlcustomizations.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-qmlcustomizations-example.html
6 \title Customizing Chart Views with QML
7 \image examples_qmlcustomizations.png {Screenshot showing a chart with two data
8 series, one is a pie chart with a blue gradient, and the other is a line
9 chart with an orange dot}
10 \brief Shows you how to customize different visual properties of a ChartView
11 and a series.
12 \include qmlchartsgallery.qdocinc
13
14 Here we show you how to create a wheel of fortune by customizing a pie series.
15
16 First we create the ChartView and a couple of series.
17
18 \snippet qmlchartsgallery/qml/WheelOfFortune.qml 1
19
20 The application data is generated in Component.onCompleted of the main rectangle:
21
22 \snippet qmlchartsgallery/qml/WheelOfFortune.qml 2
23
24 The following customizations are done repeatedly with a timer. To highlight
25 one of the pie slices at time we modify its exploded property:
26
27 \snippet qmlchartsgallery/qml/WheelOfFortune.qml 3
28
29 Then an animation using a scatter series with one data point:
30
31 \snippet qmlchartsgallery/qml/WheelOfFortune.qml 4
32
33 When the wheel of fortune has stopped, we make the active slice blink by
34 modifying its colors.
35
36 \snippet qmlchartsgallery/qml/WheelOfFortune.qml 5
37 */