@@ -0,0 +1,41 | |||
|
1 | /**************************************************************************** | |
|
2 | ** | |
|
3 | ** Copyright (C) 2012 Digia Plc | |
|
4 | ** All rights reserved. | |
|
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com | |
|
6 | ** | |
|
7 | ** This file is part of the Qt Commercial Charts Add-on. | |
|
8 | ** | |
|
9 | ** $QT_BEGIN_LICENSE$ | |
|
10 | ** Licensees holding valid Qt Commercial licenses may use this file in | |
|
11 | ** accordance with the Qt Commercial License Agreement provided with the | |
|
12 | ** Software or, alternatively, in accordance with the terms contained in | |
|
13 | ** a written agreement between you and Digia. | |
|
14 | ** | |
|
15 | ** If you have questions regarding the use of this file, please use | |
|
16 | ** contact form at http://qt.digia.com | |
|
17 | ** $QT_END_LICENSE$ | |
|
18 | ** | |
|
19 | ****************************************************************************/ | |
|
20 | ||
|
21 | import QtQuick 1.0 | |
|
22 | import QtCommercial.Chart 1.0 | |
|
23 | ||
|
24 | Rectangle { | |
|
25 | anchors.fill: parent | |
|
26 | ||
|
27 | //![1] | |
|
28 | ChartView { | |
|
29 | title: "Bar series" | |
|
30 | anchors.fill: parent | |
|
31 | legend.alignment: Qt.AlignBottom | |
|
32 | axisXLabels: ["0", "2007", "1", "2008", "2", "2009", "3", "2010", "4", "2011", "5", "2012"] | |
|
33 | ||
|
34 | BarSeries { | |
|
35 | BarSet { label: "Bob"; values: [2, 2, 3, 4, 5, 6] } | |
|
36 | BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] } | |
|
37 | BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] } | |
|
38 | } | |
|
39 | } | |
|
40 | //![1] | |
|
41 | } |
@@ -0,0 +1,41 | |||
|
1 | /**************************************************************************** | |
|
2 | ** | |
|
3 | ** Copyright (C) 2012 Digia Plc | |
|
4 | ** All rights reserved. | |
|
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com | |
|
6 | ** | |
|
7 | ** This file is part of the Qt Commercial Charts Add-on. | |
|
8 | ** | |
|
9 | ** $QT_BEGIN_LICENSE$ | |
|
10 | ** Licensees holding valid Qt Commercial licenses may use this file in | |
|
11 | ** accordance with the Qt Commercial License Agreement provided with the | |
|
12 | ** Software or, alternatively, in accordance with the terms contained in | |
|
13 | ** a written agreement between you and Digia. | |
|
14 | ** | |
|
15 | ** If you have questions regarding the use of this file, please use | |
|
16 | ** contact form at http://qt.digia.com | |
|
17 | ** $QT_END_LICENSE$ | |
|
18 | ** | |
|
19 | ****************************************************************************/ | |
|
20 | ||
|
21 | import QtQuick 1.0 | |
|
22 | import QtCommercial.Chart 1.0 | |
|
23 | ||
|
24 | Rectangle { | |
|
25 | anchors.fill: parent | |
|
26 | ||
|
27 | //![1] | |
|
28 | ChartView { | |
|
29 | title: "Grouped Bar series" | |
|
30 | anchors.fill: parent | |
|
31 | legend.alignment: Qt.AlignBottom | |
|
32 | axisXLabels: ["0", "2007", "1", "2008", "2", "2009", "3", "2010", "4", "2011", "5", "2012"] | |
|
33 | ||
|
34 | GroupedBarSeries { | |
|
35 | BarSet { label: "Bob"; values: [2, 2, 3, 4, 5, 6] } | |
|
36 | BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] } | |
|
37 | BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] } | |
|
38 | } | |
|
39 | } | |
|
40 | //![1] | |
|
41 | } |
@@ -0,0 +1,41 | |||
|
1 | /**************************************************************************** | |
|
2 | ** | |
|
3 | ** Copyright (C) 2012 Digia Plc | |
|
4 | ** All rights reserved. | |
|
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com | |
|
6 | ** | |
|
7 | ** This file is part of the Qt Commercial Charts Add-on. | |
|
8 | ** | |
|
9 | ** $QT_BEGIN_LICENSE$ | |
|
10 | ** Licensees holding valid Qt Commercial licenses may use this file in | |
|
11 | ** accordance with the Qt Commercial License Agreement provided with the | |
|
12 | ** Software or, alternatively, in accordance with the terms contained in | |
|
13 | ** a written agreement between you and Digia. | |
|
14 | ** | |
|
15 | ** If you have questions regarding the use of this file, please use | |
|
16 | ** contact form at http://qt.digia.com | |
|
17 | ** $QT_END_LICENSE$ | |
|
18 | ** | |
|
19 | ****************************************************************************/ | |
|
20 | ||
|
21 | import QtQuick 1.0 | |
|
22 | import QtCommercial.Chart 1.0 | |
|
23 | ||
|
24 | Rectangle { | |
|
25 | anchors.fill: parent | |
|
26 | ||
|
27 | //![1] | |
|
28 | ChartView { | |
|
29 | title: "Stacked Bar series" | |
|
30 | anchors.fill: parent | |
|
31 | legend.alignment: Qt.AlignBottom | |
|
32 | axisXLabels: ["0", "2007", "1", "2008", "2", "2009", "3", "2010", "4", "2011", "5", "2012"] | |
|
33 | ||
|
34 | StackedBarSeries { | |
|
35 | BarSet { label: "Bob"; values: [2, 2, 3, 4, 5, 6] } | |
|
36 | BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] } | |
|
37 | BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] } | |
|
38 | } | |
|
39 | } | |
|
40 | //![1] | |
|
41 | } |
@@ -0,0 +1,41 | |||
|
1 | /**************************************************************************** | |
|
2 | ** | |
|
3 | ** Copyright (C) 2012 Digia Plc | |
|
4 | ** All rights reserved. | |
|
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com | |
|
6 | ** | |
|
7 | ** This file is part of the Qt Commercial Charts Add-on. | |
|
8 | ** | |
|
9 | ** $QT_BEGIN_LICENSE$ | |
|
10 | ** Licensees holding valid Qt Commercial licenses may use this file in | |
|
11 | ** accordance with the Qt Commercial License Agreement provided with the | |
|
12 | ** Software or, alternatively, in accordance with the terms contained in | |
|
13 | ** a written agreement between you and Digia. | |
|
14 | ** | |
|
15 | ** If you have questions regarding the use of this file, please use | |
|
16 | ** contact form at http://qt.digia.com | |
|
17 | ** $QT_END_LICENSE$ | |
|
18 | ** | |
|
19 | ****************************************************************************/ | |
|
20 | ||
|
21 | import QtQuick 1.0 | |
|
22 | import QtCommercial.Chart 1.0 | |
|
23 | ||
|
24 | Rectangle { | |
|
25 | anchors.fill: parent | |
|
26 | ||
|
27 | //![1] | |
|
28 | ChartView { | |
|
29 | title: "Percent Bar series" | |
|
30 | anchors.fill: parent | |
|
31 | legend.alignment: Qt.AlignBottom | |
|
32 | axisXLabels: ["0", "2007", "1", "2008", "2", "2009", "3", "2010", "4", "2011", "5", "2012"] | |
|
33 | ||
|
34 | PercentBarSeries { | |
|
35 | BarSet { label: "Bob"; values: [2, 2, 3, 4, 5, 6] } | |
|
36 | BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] } | |
|
37 | BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] } | |
|
38 | } | |
|
39 | } | |
|
40 | //![1] | |
|
41 | } |
|
1 | NO CONTENT: new file 100644, binary diff hidden |
|
1 | NO CONTENT: new file 100644, binary diff hidden |
|
1 | NO CONTENT: new file 100644, binary diff hidden |
|
1 | NO CONTENT: new file 100644, binary diff hidden |
@@ -26,11 +26,11 Rectangle { | |||
|
26 | 26 | |
|
27 | 27 | //![1] |
|
28 | 28 | ChartView { |
|
29 |
title: "Line |
|
|
29 | title: "Line" | |
|
30 | 30 | anchors.fill: parent |
|
31 | 31 | |
|
32 | 32 | LineSeries { |
|
33 | name: "Line" | |
|
33 | name: "LineSeries" | |
|
34 | 34 | XyPoint { x: 0; y: 0 } |
|
35 | 35 | XyPoint { x: 1.1; y: 2.1 } |
|
36 | 36 | XyPoint { x: 1.9; y: 3.3 } |
@@ -39,17 +39,6 Rectangle { | |||
|
39 | 39 | XyPoint { x: 3.4; y: 3.0 } |
|
40 | 40 | XyPoint { x: 4.1; y: 3.3 } |
|
41 | 41 | } |
|
42 | ||
|
43 | SplineSeries { | |
|
44 | name: "Spline" | |
|
45 | XyPoint { x: 0; y: 0.3 } | |
|
46 | XyPoint { x: 1.1; y: 3.2 } | |
|
47 | XyPoint { x: 1.9; y: 2.4 } | |
|
48 | XyPoint { x: 2.1; y: 2.1 } | |
|
49 | XyPoint { x: 2.9; y: 2.6 } | |
|
50 | XyPoint { x: 3.4; y: 2.3 } | |
|
51 | XyPoint { x: 4.1; y: 3.1 } | |
|
52 | } | |
|
53 | 42 | } |
|
54 | 43 | //![1] |
|
55 | 44 | } |
@@ -26,116 +26,19 Rectangle { | |||
|
26 | 26 | |
|
27 | 27 | //![1] |
|
28 | 28 | ChartView { |
|
29 | title: "NHL All-Star Team Players" | |
|
29 | title: "Spline" | |
|
30 | 30 | anchors.fill: parent |
|
31 | axisXLabels: ["0", "2000", "1", "2001", "2", "2002", "3", "2003", "4", "2004", "5", "2005", | |
|
32 | "6", "2006", "7", "2007", "8", "2008", "9", "2009", "10", "2010", "11", "2011"] | |
|
33 | 31 | |
|
34 |
|
|
|
35 |
name: " |
|
|
36 | upperSeries: LineSeries { | |
|
37 |
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
|
|
|
42 |
|
|
|
43 | XyPoint { x: 6; y: 1 } | |
|
44 | XyPoint { x: 7; y: 1 } | |
|
45 | XyPoint { x: 8; y: 4 } | |
|
46 | XyPoint { x: 9; y: 3 } | |
|
47 | XyPoint { x: 10; y: 2 } | |
|
48 | XyPoint { x: 11; y: 1 } | |
|
32 | SplineSeries { | |
|
33 | name: "SplineSeries" | |
|
34 | XyPoint { x: 0; y: 0.3 } | |
|
35 | XyPoint { x: 1.1; y: 3.2 } | |
|
36 | XyPoint { x: 1.9; y: 2.4 } | |
|
37 | XyPoint { x: 2.1; y: 2.1 } | |
|
38 | XyPoint { x: 2.9; y: 2.6 } | |
|
39 | XyPoint { x: 3.4; y: 2.3 } | |
|
40 | XyPoint { x: 4.1; y: 3.1 } | |
|
49 | 41 |
|
|
50 | lowerSeries: LineSeries { | |
|
51 | XyPoint { x: 0; y: 0 } | |
|
52 | XyPoint { x: 1; y: 0 } | |
|
53 | XyPoint { x: 2; y: 0 } | |
|
54 | XyPoint { x: 3; y: 0 } | |
|
55 | XyPoint { x: 4; y: 0 } | |
|
56 | XyPoint { x: 5; y: 0 } | |
|
57 | XyPoint { x: 6; y: 0 } | |
|
58 | XyPoint { x: 7; y: 0 } | |
|
59 | XyPoint { x: 8; y: 0 } | |
|
60 | XyPoint { x: 9; y: 0 } | |
|
61 | XyPoint { x: 10; y: 0 } | |
|
62 | XyPoint { x: 11; y: 0 } | |
|
63 | 42 | } |
|
64 | } | |
|
65 | // ... | |
|
66 | 43 |
|
|
67 | ||
|
68 | AreaSeries { | |
|
69 | id: swedish | |
|
70 | name: "Swedish" | |
|
71 | upperSeries: LineSeries { | |
|
72 | XyPoint { x: 0; y: 1 } | |
|
73 | XyPoint { x: 1; y: 1 } | |
|
74 | XyPoint { x: 2; y: 3 } | |
|
75 | XyPoint { x: 3; y: 3 } | |
|
76 | XyPoint { x: 4; y: 2 } | |
|
77 | XyPoint { x: 5; y: 0 } | |
|
78 | XyPoint { x: 6; y: 2 } | |
|
79 | XyPoint { x: 7; y: 1 } | |
|
80 | XyPoint { x: 8; y: 2 } | |
|
81 | XyPoint { x: 9; y: 1 } | |
|
82 | XyPoint { x: 10; y: 3 } | |
|
83 | XyPoint { x: 11; y: 3 } | |
|
84 | } | |
|
85 | lowerSeries: LineSeries { | |
|
86 | XyPoint { x: 0; y: 0 } | |
|
87 | XyPoint { x: 1; y: 0 } | |
|
88 | XyPoint { x: 2; y: 0 } | |
|
89 | XyPoint { x: 3; y: 0 } | |
|
90 | XyPoint { x: 4; y: 0 } | |
|
91 | XyPoint { x: 5; y: 0 } | |
|
92 | XyPoint { x: 6; y: 0 } | |
|
93 | XyPoint { x: 7; y: 0 } | |
|
94 | XyPoint { x: 8; y: 0 } | |
|
95 | XyPoint { x: 9; y: 0 } | |
|
96 | XyPoint { x: 10; y: 0 } | |
|
97 | XyPoint { x: 11; y: 0 } | |
|
98 | } | |
|
99 | onClicked: { | |
|
100 | color = "yellow"; | |
|
101 | borderColor = "blue"; | |
|
102 | } | |
|
103 | } | |
|
104 | ||
|
105 | AreaSeries { | |
|
106 | name: "Finnish" | |
|
107 | upperSeries: LineSeries { | |
|
108 | XyPoint { x: 0; y: 0 } | |
|
109 | XyPoint { x: 1; y: 0 } | |
|
110 | XyPoint { x: 2; y: 0 } | |
|
111 | XyPoint { x: 3; y: 0 } | |
|
112 | XyPoint { x: 4; y: 0 } | |
|
113 | XyPoint { x: 5; y: 0 } | |
|
114 | XyPoint { x: 6; y: 1 } | |
|
115 | XyPoint { x: 7; y: 0 } | |
|
116 | XyPoint { x: 8; y: 0 } | |
|
117 | XyPoint { x: 9; y: 0 } | |
|
118 | XyPoint { x: 10; y: 0 } | |
|
119 | XyPoint { x: 11; y: 1 } | |
|
120 | } | |
|
121 | lowerSeries: LineSeries { | |
|
122 | XyPoint { x: 0; y: 0 } | |
|
123 | XyPoint { x: 1; y: 0 } | |
|
124 | XyPoint { x: 2; y: 0 } | |
|
125 | XyPoint { x: 3; y: 0 } | |
|
126 | XyPoint { x: 4; y: 0 } | |
|
127 | XyPoint { x: 5; y: 0 } | |
|
128 | XyPoint { x: 6; y: 0 } | |
|
129 | XyPoint { x: 7; y: 0 } | |
|
130 | XyPoint { x: 8; y: 0 } | |
|
131 | XyPoint { x: 9; y: 0 } | |
|
132 | XyPoint { x: 10; y: 0 } | |
|
133 | XyPoint { x: 11; y: 0 } | |
|
134 | } | |
|
135 | onClicked: { | |
|
136 | color = "white"; | |
|
137 | borderColor = "blue"; | |
|
138 | } | |
|
139 | } | |
|
140 | } | |
|
141 | 44 | } |
@@ -26,31 +26,116 Rectangle { | |||
|
26 | 26 | |
|
27 | 27 | //![1] |
|
28 | 28 | ChartView { |
|
29 |
title: " |
|
|
29 | title: "NHL All-Star Team Players" | |
|
30 | 30 | anchors.fill: parent |
|
31 | axisXLabels: ["0", "2000", "1", "2001", "2", "2002", "3", "2003", "4", "2004", "5", "2005", | |
|
32 | "6", "2006", "7", "2007", "8", "2008", "9", "2009", "10", "2010", "11", "2011"] | |
|
31 | 33 | |
|
32 |
|
|
|
33 |
|
|
|
34 | name: "Scatter1" | |
|
35 |
XyPoint { x: |
|
|
36 |
XyPoint { x: 1 |
|
|
37 |
XyPoint { x: |
|
|
38 |
XyPoint { x: |
|
|
39 |
XyPoint { x: |
|
|
40 |
XyPoint { x: |
|
|
41 |
XyPoint { x: |
|
|
34 | AreaSeries { | |
|
35 | name: "Russian" | |
|
36 | upperSeries: LineSeries { | |
|
37 | XyPoint { x: 0; y: 1 } | |
|
38 | XyPoint { x: 1; y: 1 } | |
|
39 | XyPoint { x: 2; y: 1 } | |
|
40 | XyPoint { x: 3; y: 1 } | |
|
41 | XyPoint { x: 4; y: 1 } | |
|
42 | XyPoint { x: 5; y: 0 } | |
|
43 | XyPoint { x: 6; y: 1 } | |
|
44 | XyPoint { x: 7; y: 1 } | |
|
45 | XyPoint { x: 8; y: 4 } | |
|
46 | XyPoint { x: 9; y: 3 } | |
|
47 | XyPoint { x: 10; y: 2 } | |
|
48 | XyPoint { x: 11; y: 1 } | |
|
49 | } | |
|
50 | lowerSeries: LineSeries { | |
|
51 | XyPoint { x: 0; y: 0 } | |
|
52 | XyPoint { x: 1; y: 0 } | |
|
53 | XyPoint { x: 2; y: 0 } | |
|
54 | XyPoint { x: 3; y: 0 } | |
|
55 | XyPoint { x: 4; y: 0 } | |
|
56 | XyPoint { x: 5; y: 0 } | |
|
57 | XyPoint { x: 6; y: 0 } | |
|
58 | XyPoint { x: 7; y: 0 } | |
|
59 | XyPoint { x: 8; y: 0 } | |
|
60 | XyPoint { x: 9; y: 0 } | |
|
61 | XyPoint { x: 10; y: 0 } | |
|
62 | XyPoint { x: 11; y: 0 } | |
|
63 | } | |
|
42 | 64 | } |
|
43 | ||
|
44 | ScatterSeries { | |
|
45 | name: "Scatter2" | |
|
46 | 65 |
|
|
47 | 66 |
|
|
48 | XyPoint { x: 2.0; y: 2.0 } | |
|
49 | XyPoint { x: 2.0; y: 2.1 } | |
|
50 | XyPoint { x: 2.07; y: 2.05 } | |
|
51 | XyPoint { x: 2.2; y: 2.9 } | |
|
52 | XyPoint { x: 2.4; y: 2.7 } | |
|
53 |
XyPoint { x: |
|
|
67 | ||
|
68 | AreaSeries { | |
|
69 | id: swedish | |
|
70 | name: "Swedish" | |
|
71 | upperSeries: LineSeries { | |
|
72 | XyPoint { x: 0; y: 1 } | |
|
73 | XyPoint { x: 1; y: 1 } | |
|
74 | XyPoint { x: 2; y: 3 } | |
|
75 | XyPoint { x: 3; y: 3 } | |
|
76 | XyPoint { x: 4; y: 2 } | |
|
77 | XyPoint { x: 5; y: 0 } | |
|
78 | XyPoint { x: 6; y: 2 } | |
|
79 | XyPoint { x: 7; y: 1 } | |
|
80 | XyPoint { x: 8; y: 2 } | |
|
81 | XyPoint { x: 9; y: 1 } | |
|
82 | XyPoint { x: 10; y: 3 } | |
|
83 | XyPoint { x: 11; y: 3 } | |
|
84 | } | |
|
85 | lowerSeries: LineSeries { | |
|
86 | XyPoint { x: 0; y: 0 } | |
|
87 | XyPoint { x: 1; y: 0 } | |
|
88 | XyPoint { x: 2; y: 0 } | |
|
89 | XyPoint { x: 3; y: 0 } | |
|
90 | XyPoint { x: 4; y: 0 } | |
|
91 | XyPoint { x: 5; y: 0 } | |
|
92 | XyPoint { x: 6; y: 0 } | |
|
93 | XyPoint { x: 7; y: 0 } | |
|
94 | XyPoint { x: 8; y: 0 } | |
|
95 | XyPoint { x: 9; y: 0 } | |
|
96 | XyPoint { x: 10; y: 0 } | |
|
97 | XyPoint { x: 11; y: 0 } | |
|
98 | } | |
|
99 | onClicked: { | |
|
100 | color = "yellow"; | |
|
101 | borderColor = "blue"; | |
|
102 | } | |
|
103 | } | |
|
104 | ||
|
105 | AreaSeries { | |
|
106 | name: "Finnish" | |
|
107 | upperSeries: LineSeries { | |
|
108 | XyPoint { x: 0; y: 0 } | |
|
109 | XyPoint { x: 1; y: 0 } | |
|
110 | XyPoint { x: 2; y: 0 } | |
|
111 | XyPoint { x: 3; y: 0 } | |
|
112 | XyPoint { x: 4; y: 0 } | |
|
113 | XyPoint { x: 5; y: 0 } | |
|
114 | XyPoint { x: 6; y: 1 } | |
|
115 | XyPoint { x: 7; y: 0 } | |
|
116 | XyPoint { x: 8; y: 0 } | |
|
117 | XyPoint { x: 9; y: 0 } | |
|
118 | XyPoint { x: 10; y: 0 } | |
|
119 | XyPoint { x: 11; y: 1 } | |
|
120 | } | |
|
121 | lowerSeries: LineSeries { | |
|
122 | XyPoint { x: 0; y: 0 } | |
|
123 | XyPoint { x: 1; y: 0 } | |
|
124 | XyPoint { x: 2; y: 0 } | |
|
125 | XyPoint { x: 3; y: 0 } | |
|
126 | XyPoint { x: 4; y: 0 } | |
|
127 | XyPoint { x: 5; y: 0 } | |
|
128 | XyPoint { x: 6; y: 0 } | |
|
129 | XyPoint { x: 7; y: 0 } | |
|
130 | XyPoint { x: 8; y: 0 } | |
|
131 | XyPoint { x: 9; y: 0 } | |
|
132 | XyPoint { x: 10; y: 0 } | |
|
133 | XyPoint { x: 11; y: 0 } | |
|
134 | } | |
|
135 | onClicked: { | |
|
136 | color = "white"; | |
|
137 | borderColor = "blue"; | |
|
138 | } | |
|
54 | 139 | } |
|
55 | 140 | } |
|
56 | 141 | } |
@@ -26,16 +26,31 Rectangle { | |||
|
26 | 26 | |
|
27 | 27 | //![1] |
|
28 | 28 | ChartView { |
|
29 |
title: " |
|
|
29 | title: "Scatters" | |
|
30 | 30 | anchors.fill: parent |
|
31 | legend.alignment: Qt.AlignBottom | |
|
32 | axisXLabels: ["0", "2007", "1", "2008", "2", "2009", "3", "2010", "4", "2011", "5", "2012"] | |
|
33 | 31 | |
|
34 |
|
|
|
35 | BarSet { label: "Bob"; values: [2, 2, 3, 4, 5, 6] } | |
|
36 | BarSet { label: "Susan"; values: [5, 1, 2, 4, 1, 7] } | |
|
37 | BarSet { label: "James"; values: [3, 5, 8, 13, 5, 8] } | |
|
38 | } | |
|
32 | ScatterSeries { | |
|
33 | id: scatter1 | |
|
34 | name: "Scatter1" | |
|
35 | XyPoint { x: 1.5; y: 1.5 } | |
|
36 | XyPoint { x: 1.5; y: 1.6 } | |
|
37 | XyPoint { x: 1.57; y: 1.55 } | |
|
38 | XyPoint { x: 1.8; y: 1.8 } | |
|
39 | XyPoint { x: 1.9; y: 1.6 } | |
|
40 | XyPoint { x: 2.1; y: 1.3 } | |
|
41 | XyPoint { x: 2.5; y: 2.1 } | |
|
39 | 42 | } |
|
43 | ||
|
44 | ScatterSeries { | |
|
45 | name: "Scatter2" | |
|
46 | // ... | |
|
40 | 47 | //![1] |
|
48 | XyPoint { x: 2.0; y: 2.0 } | |
|
49 | XyPoint { x: 2.0; y: 2.1 } | |
|
50 | XyPoint { x: 2.07; y: 2.05 } | |
|
51 | XyPoint { x: 2.2; y: 2.9 } | |
|
52 | XyPoint { x: 2.4; y: 2.7 } | |
|
53 | XyPoint { x: 2.67; y: 2.65 } | |
|
54 | } | |
|
55 | } | |
|
41 | 56 | } |
@@ -38,14 +38,15 Rectangle { | |||
|
38 | 38 | Row { |
|
39 | 39 | id: buttons |
|
40 | 40 | anchors.bottom: parent.bottom |
|
41 | anchors.bottomMargin: 5 | |
|
41 | anchors.bottomMargin: 15 | |
|
42 | 42 | anchors.horizontalCenter: parent.horizontalCenter |
|
43 |
spacing: |
|
|
43 | spacing: 5 | |
|
44 | 44 | |
|
45 | 45 | Rectangle { |
|
46 | 46 | height: 35 |
|
47 | 47 | width: 60 |
|
48 | color: "#c8955c" | |
|
48 | border.color: "#c8955c" | |
|
49 | border.width: 2 | |
|
49 | 50 | radius: 5 |
|
50 | 51 | Text { |
|
51 | 52 | anchors.centerIn: parent |
@@ -56,7 +57,7 Rectangle { | |||
|
56 | 57 | onClicked: { |
|
57 | 58 | var i = viewNumber - 1; |
|
58 | 59 | if (i <= 0) |
|
59 |
viewNumber = |
|
|
60 | viewNumber = 9; | |
|
60 | 61 | else |
|
61 | 62 | viewNumber = i; |
|
62 | 63 | } |
@@ -65,7 +66,8 Rectangle { | |||
|
65 | 66 | Rectangle { |
|
66 | 67 | height: 35 |
|
67 | 68 | width: 60 |
|
68 | color: "#c8955c" | |
|
69 | border.color: "#c8955c" | |
|
70 | border.width: 2 | |
|
69 | 71 | radius: 5 |
|
70 | 72 | Text { |
|
71 | 73 | anchors.centerIn: parent |
@@ -75,7 +77,7 Rectangle { | |||
|
75 | 77 | anchors.fill: parent |
|
76 | 78 | onClicked: { |
|
77 | 79 | var i = viewNumber + 1; |
|
78 |
if (i > |
|
|
80 | if (i > 9) | |
|
79 | 81 | viewNumber = 1; |
|
80 | 82 | else |
|
81 | 83 | viewNumber = i; |
@@ -7,5 +7,9 | |||
|
7 | 7 | <file>qml/qmlchart/View3.qml</file> |
|
8 | 8 | <file>qml/qmlchart/View4.qml</file> |
|
9 | 9 | <file>qml/qmlchart/View5.qml</file> |
|
10 | <file>qml/qmlchart/View6.qml</file> | |
|
11 | <file>qml/qmlchart/View7.qml</file> | |
|
12 | <file>qml/qmlchart/View8.qml</file> | |
|
13 | <file>qml/qmlchart/View9.qml</file> | |
|
10 | 14 | </qresource> |
|
11 | 15 | </RCC> |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
@@ -8,9 +8,20 | |||
|
8 | 8 | \raw HTML |
|
9 | 9 | <ul> |
|
10 | 10 | <li><a href="qml-chartview.html">ChartView</a></li> |
|
11 | <li><a href="qml-lineseries.html">LineSeries</a></li> | |
|
12 | <li><a href="qml-areaseries.html">AreaSeries</a></li> | |
|
13 | <li><a href="qml-scatterseries.html">ScatterSeries</a></li> | |
|
14 | <li><a href="qml-splineseries.html">SplineSeries</a></li> | |
|
11 | 15 | <li><a href="qml-pieseries.html">PieSeries</a></li> |
|
16 | <li><a href="qml-pieslice.html">PieSlice</a></li> | |
|
17 | <li><a href="qml-barseries.html">BarSeries</a></li> | |
|
18 | <li><a href="qml-groupedbarseries.html">GroupedBarSeries</a></li> | |
|
19 | <li><a href="qml-stackedbarseries.html">StackedBarSeries</a></li> | |
|
20 | <li><a href="qml-percentbarseries.html">PercentBarSeries</a></li> | |
|
21 | <li><a href="qml-barset.html">BarSet</a></li> | |
|
12 | 22 | <li><a href="qml-axis.html">Axis</a></li> |
|
13 | 23 | <li><a href="qml-legend.html">Legend</a></li> |
|
24 | <li><a href="qml-xypoint.html">XyPoint</a></li> | |
|
14 | 25 | </ul> |
|
15 | 26 | \endraw |
|
16 | 27 | */ |
@@ -25,6 +25,20 | |||
|
25 | 25 | |
|
26 | 26 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
|
27 | 27 | |
|
28 | /*! | |
|
29 | \qmlclass AreaSeries QAreaSeries | |
|
30 | ||
|
31 | \section1 Example Usage | |
|
32 | ||
|
33 | \beginfloatleft | |
|
34 | \image demos_qmlchart4.png | |
|
35 | \endfloat | |
|
36 | \clearfloat | |
|
37 | ||
|
38 | The following QML shows how to create a simple area chart: | |
|
39 | \snippet ../demos/qmlchart/qml/qmlchart/View4.qml 1 | |
|
40 | */ | |
|
41 | ||
|
28 | 42 | DeclarativeAreaSeries::DeclarativeAreaSeries(QObject *parent) : |
|
29 | 43 | QAreaSeries(parent) |
|
30 | 44 | { |
@@ -26,6 +26,62 | |||
|
26 | 26 | |
|
27 | 27 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
|
28 | 28 | |
|
29 | /*! | |
|
30 | \qmlclass BarSeries QBarSeries | |
|
31 | ||
|
32 | \section1 Example Usage | |
|
33 | ||
|
34 | \beginfloatleft | |
|
35 | \image demos_qmlchart6.png | |
|
36 | \endfloat | |
|
37 | \clearfloat | |
|
38 | ||
|
39 | The following QML shows how to create a simple bar chart: | |
|
40 | \snippet ../demos/qmlchart/qml/qmlchart/View6.qml 1 | |
|
41 | */ | |
|
42 | ||
|
43 | /*! | |
|
44 | \qmlclass GroupedBarSeries QGroupedBarSeries | |
|
45 | ||
|
46 | \section1 Example Usage | |
|
47 | ||
|
48 | \beginfloatleft | |
|
49 | \image demos_qmlchart7.png | |
|
50 | \endfloat | |
|
51 | \clearfloat | |
|
52 | ||
|
53 | The following QML shows how to create a simple grouped bar chart: | |
|
54 | \snippet ../demos/qmlchart/qml/qmlchart/View7.qml 1 | |
|
55 | */ | |
|
56 | ||
|
57 | /*! | |
|
58 | \qmlclass StackedBarSeries QStackedBarSeries | |
|
59 | ||
|
60 | \section1 Example Usage | |
|
61 | ||
|
62 | \beginfloatleft | |
|
63 | \image demos_qmlchart8.png | |
|
64 | \endfloat | |
|
65 | \clearfloat | |
|
66 | ||
|
67 | The following QML shows how to create a simple stacked bar chart: | |
|
68 | \snippet ../demos/qmlchart/qml/qmlchart/View8.qml 1 | |
|
69 | */ | |
|
70 | ||
|
71 | /*! | |
|
72 | \qmlclass PercentBarSeries QPercentBarSeries | |
|
73 | ||
|
74 | \section1 Example Usage | |
|
75 | ||
|
76 | \beginfloatleft | |
|
77 | \image demos_qmlchart9.png | |
|
78 | \endfloat | |
|
79 | \clearfloat | |
|
80 | ||
|
81 | The following QML shows how to create a simple percent bar chart: | |
|
82 | \snippet ../demos/qmlchart/qml/qmlchart/View9.qml 1 | |
|
83 | */ | |
|
84 | ||
|
29 | 85 | DeclarativeBarSet::DeclarativeBarSet(QObject *parent) : |
|
30 | 86 | QBarSet("", parent) |
|
31 | 87 | { |
@@ -25,6 +25,20 | |||
|
25 | 25 | |
|
26 | 26 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
|
27 | 27 | |
|
28 | /*! | |
|
29 | \qmlclass LineSeries QLineSeries | |
|
30 | ||
|
31 | \section1 Example Usage | |
|
32 | ||
|
33 | \beginfloatleft | |
|
34 | \image demos_qmlchart2.png | |
|
35 | \endfloat | |
|
36 | \clearfloat | |
|
37 | ||
|
38 | The following QML shows how to create a simple line chart: | |
|
39 | \snippet ../demos/qmlchart/qml/qmlchart/View2.qml 1 | |
|
40 | */ | |
|
41 | ||
|
28 | 42 | DeclarativeLineSeries::DeclarativeLineSeries(QObject *parent) : |
|
29 | 43 | QLineSeries(parent) |
|
30 | 44 | { |
@@ -28,7 +28,7 | |||
|
28 | 28 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
|
29 | 29 | |
|
30 | 30 | /*! |
|
31 |
\qmlclass PieSeries |
|
|
31 | \qmlclass PieSeries QPieSeries | |
|
32 | 32 | |
|
33 | 33 | \section1 Example Usage |
|
34 | 34 |
@@ -25,6 +25,20 | |||
|
25 | 25 | |
|
26 | 26 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
|
27 | 27 | |
|
28 | /*! | |
|
29 | \qmlclass ScatterSeries QScatterSeries | |
|
30 | ||
|
31 | \section1 Example Usage | |
|
32 | ||
|
33 | \beginfloatleft | |
|
34 | \image demos_qmlchart5.png | |
|
35 | \endfloat | |
|
36 | \clearfloat | |
|
37 | ||
|
38 | The following QML shows how to create a simple scatter chart: | |
|
39 | \snippet ../demos/qmlchart/qml/qmlchart/View5.qml 1 | |
|
40 | */ | |
|
41 | ||
|
28 | 42 | DeclarativeScatterSeries::DeclarativeScatterSeries(QObject *parent) : |
|
29 | 43 | QScatterSeries(parent) |
|
30 | 44 | { |
@@ -25,6 +25,20 | |||
|
25 | 25 | |
|
26 | 26 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
|
27 | 27 | |
|
28 | /*! | |
|
29 | \qmlclass SplineSeries QSplineSeries | |
|
30 | ||
|
31 | \section1 Example Usage | |
|
32 | ||
|
33 | \beginfloatleft | |
|
34 | \image demos_qmlchart3.png | |
|
35 | \endfloat | |
|
36 | \clearfloat | |
|
37 | ||
|
38 | The following QML shows how to create a simple spline chart: | |
|
39 | \snippet ../demos/qmlchart/qml/qmlchart/View3.qml 1 | |
|
40 | */ | |
|
41 | ||
|
28 | 42 | DeclarativeSplineSeries::DeclarativeSplineSeries(QObject *parent) : |
|
29 | 43 | QSplineSeries(parent) |
|
30 | 44 | { |
General Comments 0
You need to be logged in to leave comments.
Login now