@@ -1,27 +1,31 | |||||
1 | /*! |
|
1 | /*! | |
2 | \example demos/qmlchart |
|
2 | \example demos/qmlchart | |
3 | \title Qml charts demo |
|
3 | \title Qml charts demo | |
4 | \subtitle |
|
4 | \subtitle | |
5 |
|
5 | |||
6 | This is a basic demonstration how to use the different chart types by using qml. Creating each chart type begins |
|
6 | This is a basic demonstration how to use the different chart types by using qml. Creating each chart type begins | |
7 | with creation of a ChartView. For example to create a pie, we use the PieSeries API together with a few PieSlices: |
|
7 | with creation of a ChartView. For example to create a pie, we use the PieSeries API together with a few PieSlices: | |
8 | \snippet ../demos/qmlchart/qml/qmlchart/View1.qml 1 |
|
8 | \snippet ../demos/qmlchart/qml/qmlchart/View1.qml 1 | |
9 | \image demos_qmlchart1.png |
|
9 | \image demos_qmlchart1.png | |
10 |
|
10 | |||
11 |
To create a chart with line |
|
11 | To create a chart with line series: | |
12 | \snippet ../demos/qmlchart/qml/qmlchart/View2.qml 1 |
|
12 | \snippet ../demos/qmlchart/qml/qmlchart/View2.qml 1 | |
13 | \image demos_qmlchart2.png |
|
13 | \image demos_qmlchart2.png | |
14 |
|
14 | |||
15 | Then we create a chart that illustrates the success of Russian, Swedish and Finnish ice-hockey players in the |
|
15 | And spline series: | |
16 | NHL All-Star player selections by using three area series: |
|
|||
17 | \snippet ../demos/qmlchart/qml/qmlchart/View3.qml 1 |
|
16 | \snippet ../demos/qmlchart/qml/qmlchart/View3.qml 1 | |
18 | \image demos_qmlchart3.png |
|
17 | \image demos_qmlchart3.png | |
19 |
|
18 | |||
20 | Then couple of scatter series: |
|
19 | Then we create a chart that illustrates the success of Russian, Swedish and Finnish ice-hockey players in the | |
|
20 | NHL All-Star player selections by using three area series: | |||
21 | \snippet ../demos/qmlchart/qml/qmlchart/View4.qml 1 |
|
21 | \snippet ../demos/qmlchart/qml/qmlchart/View4.qml 1 | |
22 | \image demos_qmlchart4.png |
|
22 | \image demos_qmlchart4.png | |
23 |
|
23 | |||
24 | And finally a bar series: |
|
24 | Then couple of scatter series: | |
25 | \snippet ../demos/qmlchart/qml/qmlchart/View5.qml 1 |
|
25 | \snippet ../demos/qmlchart/qml/qmlchart/View5.qml 1 | |
26 | \image demos_qmlchart5.png |
|
26 | \image demos_qmlchart5.png | |
|
27 | ||||
|
28 | And finally a bar series: | |||
|
29 | \snippet ../demos/qmlchart/qml/qmlchart/View6.qml 1 | |||
|
30 | \image demos_qmlchart6.png | |||
27 | */ |
|
31 | */ |
General Comments 0
You need to be logged in to leave comments.
Login now