@@ -0,0 +1,157 | |||
|
1 | /**************************************************************************** | |
|
2 | ** | |
|
3 | ** Copyright (C) 2014 Digia Plc | |
|
4 | ** All rights reserved. | |
|
5 | ** For any questions to Digia, please use contact form at http://qt.io | |
|
6 | ** | |
|
7 | ** This file is part of the Qt Charts module. | |
|
8 | ** | |
|
9 | ** Licensees holding valid commercial license for Qt may use this file in | |
|
10 | ** accordance with the Qt License Agreement provided with the Software | |
|
11 | ** or, alternatively, in accordance with the terms contained in a written | |
|
12 | ** agreement between you and Digia. | |
|
13 | ** | |
|
14 | ** If you have questions regarding the use of this file, please use | |
|
15 | ** contact form at http://qt.io | |
|
16 | ** | |
|
17 | ****************************************************************************/ | |
|
18 | ||
|
19 | import QtQuick 2.0 | |
|
20 | import HelperWidgets 2.0 | |
|
21 | import QtQuick.Layouts 1.0 | |
|
22 | ||
|
23 | Column { | |
|
24 | anchors.left: parent.left | |
|
25 | anchors.right: parent.right | |
|
26 | ||
|
27 | Section { | |
|
28 | anchors.left: parent.left | |
|
29 | anchors.right: parent.right | |
|
30 | caption: qsTr("Title") | |
|
31 | ||
|
32 | SectionLayout { | |
|
33 | rows: 1 | |
|
34 | Label { | |
|
35 | text: qsTr("title") | |
|
36 | } | |
|
37 | ||
|
38 | SecondColumnLayout { | |
|
39 | LineEdit { | |
|
40 | backendValue: backendValues.title | |
|
41 | Layout.fillWidth: true | |
|
42 | } | |
|
43 | ExpandingSpacer { | |
|
44 | } | |
|
45 | } | |
|
46 | } | |
|
47 | } | |
|
48 | ||
|
49 | Section { | |
|
50 | anchors.left: parent.left | |
|
51 | anchors.right: parent.right | |
|
52 | caption: qsTr("Title Color") | |
|
53 | ||
|
54 | ColorEditor { | |
|
55 | caption: qsTr("titleColor") | |
|
56 | backendValue: backendValues.titleColor | |
|
57 | supportGradient: false | |
|
58 | } | |
|
59 | } | |
|
60 | ||
|
61 | Section { | |
|
62 | anchors.left: parent.left | |
|
63 | anchors.right: parent.right | |
|
64 | caption: qsTr("Background Color") | |
|
65 | ||
|
66 | ColorEditor { | |
|
67 | caption: qsTr("backgroundColor") | |
|
68 | backendValue: backendValues.backgroundColor | |
|
69 | supportGradient: false | |
|
70 | } | |
|
71 | } | |
|
72 | ||
|
73 | Section { | |
|
74 | anchors.left: parent.left | |
|
75 | anchors.right: parent.right | |
|
76 | caption: qsTr("Background") | |
|
77 | ||
|
78 | SectionLayout { | |
|
79 | rows: 2 | |
|
80 | Label { | |
|
81 | text: qsTr("backgroundRoundness") | |
|
82 | toolTip: qsTr("Diameter of the rounding circle at the corners") | |
|
83 | Layout.fillWidth: true | |
|
84 | } | |
|
85 | ||
|
86 | SecondColumnLayout { | |
|
87 | SpinBox { | |
|
88 | backendValue: backendValues.backgroundRoundness | |
|
89 | minimumValue: 0.1 | |
|
90 | maximumValue: 100.0 | |
|
91 | stepSize: 0.1 | |
|
92 | decimals: 1 | |
|
93 | Layout.fillWidth: true | |
|
94 | } | |
|
95 | } | |
|
96 | ||
|
97 | Label { | |
|
98 | text: qsTr("dropShadowEnabled") | |
|
99 | toolTip: qsTr("Enable border drop shadow") | |
|
100 | Layout.fillWidth: true | |
|
101 | } | |
|
102 | ||
|
103 | SecondColumnLayout { | |
|
104 | CheckBox { | |
|
105 | backendValue: backendValues.dropShadowEnabled | |
|
106 | Layout.fillWidth: true | |
|
107 | } | |
|
108 | } | |
|
109 | } | |
|
110 | } | |
|
111 | ||
|
112 | Section { | |
|
113 | anchors.left: parent.left | |
|
114 | anchors.right: parent.right | |
|
115 | caption: qsTr("Fill Color") | |
|
116 | ||
|
117 | ColorEditor { | |
|
118 | caption: qsTr("fillColor") | |
|
119 | backendValue: backendValues.fillColor | |
|
120 | supportGradient: false | |
|
121 | } | |
|
122 | } | |
|
123 | ||
|
124 | Section { | |
|
125 | anchors.left: parent.left | |
|
126 | anchors.right: parent.right | |
|
127 | caption: qsTr("Plot Area Color") | |
|
128 | ||
|
129 | ColorEditor { | |
|
130 | caption: qsTr("plotAreaColor") | |
|
131 | backendValue: backendValues.plotAreaColor | |
|
132 | supportGradient: false | |
|
133 | } | |
|
134 | } | |
|
135 | ||
|
136 | Section { | |
|
137 | anchors.left: parent.left | |
|
138 | anchors.right: parent.right | |
|
139 | caption: qsTr("Localization") | |
|
140 | ||
|
141 | SectionLayout { | |
|
142 | rows: 1 | |
|
143 | Label { | |
|
144 | text: qsTr("localizeNumbers") | |
|
145 | toolTip: qsTr("Localize numbers") | |
|
146 | Layout.fillWidth: true | |
|
147 | } | |
|
148 | ||
|
149 | SecondColumnLayout { | |
|
150 | CheckBox { | |
|
151 | backendValue: backendValues.localizeNumbers | |
|
152 | Layout.fillWidth: true | |
|
153 | } | |
|
154 | } | |
|
155 | } | |
|
156 | } | |
|
157 | } |
@@ -0,0 +1,35 | |||
|
1 | /**************************************************************************** | |
|
2 | ** | |
|
3 | ** Copyright (C) 2014 Digia Plc | |
|
4 | ** All rights reserved. | |
|
5 | ** For any questions to Digia, please use contact form at http://qt.io | |
|
6 | ** | |
|
7 | ** This file is part of the Qt Charts module. | |
|
8 | ** | |
|
9 | ** Licensees holding valid commercial license for Qt may use this file in | |
|
10 | ** accordance with the Qt License Agreement provided with the Software | |
|
11 | ** or, alternatively, in accordance with the terms contained in a written | |
|
12 | ** agreement between you and Digia. | |
|
13 | ** | |
|
14 | ** If you have questions regarding the use of this file, please use | |
|
15 | ** contact form at http://qt.io | |
|
16 | ** | |
|
17 | ****************************************************************************/ | |
|
18 | ||
|
19 | import QtQuick 2.0 | |
|
20 | import QtCharts 2.0 | |
|
21 | ||
|
22 | ChartView { | |
|
23 | width: 300 | |
|
24 | height: 300 | |
|
25 | ||
|
26 | AreaSeries { | |
|
27 | name: "AreaSeries" | |
|
28 | upperSeries: LineSeries { | |
|
29 | XYPoint { x: 0; y: 1.5 } | |
|
30 | XYPoint { x: 1; y: 3 } | |
|
31 | XYPoint { x: 3; y: 4.3 } | |
|
32 | XYPoint { x: 6; y: 1.1 } | |
|
33 | } | |
|
34 | } | |
|
35 | } |
@@ -0,0 +1,33 | |||
|
1 | /**************************************************************************** | |
|
2 | ** | |
|
3 | ** Copyright (C) 2014 Digia Plc | |
|
4 | ** All rights reserved. | |
|
5 | ** For any questions to Digia, please use contact form at http://qt.io | |
|
6 | ** | |
|
7 | ** This file is part of the Qt Charts module. | |
|
8 | ** | |
|
9 | ** Licensees holding valid commercial license for Qt may use this file in | |
|
10 | ** accordance with the Qt License Agreement provided with the Software | |
|
11 | ** or, alternatively, in accordance with the terms contained in a written | |
|
12 | ** agreement between you and Digia. | |
|
13 | ** | |
|
14 | ** If you have questions regarding the use of this file, please use | |
|
15 | ** contact form at http://qt.io | |
|
16 | ** | |
|
17 | ****************************************************************************/ | |
|
18 | ||
|
19 | import QtQuick 2.0 | |
|
20 | import QtCharts 2.0 | |
|
21 | ||
|
22 | ||
|
23 | ChartView { | |
|
24 | width: 300 | |
|
25 | height: 300 | |
|
26 | ||
|
27 | BarSeries { | |
|
28 | name: "BarSeries" | |
|
29 | BarSet { label: "Set1"; values: [2, 2, 3] } | |
|
30 | BarSet { label: "Set2"; values: [5, 1, 2] } | |
|
31 | BarSet { label: "Set3"; values: [3, 5, 8] } | |
|
32 | } | |
|
33 | } |
@@ -0,0 +1,32 | |||
|
1 | /**************************************************************************** | |
|
2 | ** | |
|
3 | ** Copyright (C) 2014 Digia Plc | |
|
4 | ** All rights reserved. | |
|
5 | ** For any questions to Digia, please use contact form at http://qt.io | |
|
6 | ** | |
|
7 | ** This file is part of the Qt Charts module. | |
|
8 | ** | |
|
9 | ** Licensees holding valid commercial license for Qt may use this file in | |
|
10 | ** accordance with the Qt License Agreement provided with the Software | |
|
11 | ** or, alternatively, in accordance with the terms contained in a written | |
|
12 | ** agreement between you and Digia. | |
|
13 | ** | |
|
14 | ** If you have questions regarding the use of this file, please use | |
|
15 | ** contact form at http://qt.io | |
|
16 | ** | |
|
17 | ****************************************************************************/ | |
|
18 | ||
|
19 | import QtQuick 2.0 | |
|
20 | import QtCharts 2.0 | |
|
21 | ||
|
22 | ChartView { | |
|
23 | width: 300 | |
|
24 | height: 300 | |
|
25 | ||
|
26 | BoxPlotSeries { | |
|
27 | name: "BoxPlotSeries" | |
|
28 | BoxSet { label: "Set1"; values: [3, 4, 5.1, 6.2, 8.5] } | |
|
29 | BoxSet { label: "Set2"; values: [5, 6, 7.5, 8.6, 11.8] } | |
|
30 | BoxSet { label: "Set3"; values: [3.2, 5, 5.7, 8, 9.2] } | |
|
31 | } | |
|
32 | } |
@@ -0,0 +1,33 | |||
|
1 | /**************************************************************************** | |
|
2 | ** | |
|
3 | ** Copyright (C) 2014 Digia Plc | |
|
4 | ** All rights reserved. | |
|
5 | ** For any questions to Digia, please use contact form at http://qt.io | |
|
6 | ** | |
|
7 | ** This file is part of the Qt Charts module. | |
|
8 | ** | |
|
9 | ** Licensees holding valid commercial license for Qt may use this file in | |
|
10 | ** accordance with the Qt License Agreement provided with the Software | |
|
11 | ** or, alternatively, in accordance with the terms contained in a written | |
|
12 | ** agreement between you and Digia. | |
|
13 | ** | |
|
14 | ** If you have questions regarding the use of this file, please use | |
|
15 | ** contact form at http://qt.io | |
|
16 | ** | |
|
17 | ****************************************************************************/ | |
|
18 | ||
|
19 | import QtQuick 2.0 | |
|
20 | import QtCharts 2.0 | |
|
21 | ||
|
22 | ||
|
23 | ChartView { | |
|
24 | width: 300 | |
|
25 | height: 300 | |
|
26 | ||
|
27 | HorizontalBarSeries { | |
|
28 | name: "HorizontalBarSeries" | |
|
29 | BarSet { label: "Set1"; values: [2, 2, 3] } | |
|
30 | BarSet { label: "Set2"; values: [5, 1, 2] } | |
|
31 | BarSet { label: "Set3"; values: [3, 5, 8] } | |
|
32 | } | |
|
33 | } |
@@ -0,0 +1,33 | |||
|
1 | /**************************************************************************** | |
|
2 | ** | |
|
3 | ** Copyright (C) 2014 Digia Plc | |
|
4 | ** All rights reserved. | |
|
5 | ** For any questions to Digia, please use contact form at http://qt.io | |
|
6 | ** | |
|
7 | ** This file is part of the Qt Charts module. | |
|
8 | ** | |
|
9 | ** Licensees holding valid commercial license for Qt may use this file in | |
|
10 | ** accordance with the Qt License Agreement provided with the Software | |
|
11 | ** or, alternatively, in accordance with the terms contained in a written | |
|
12 | ** agreement between you and Digia. | |
|
13 | ** | |
|
14 | ** If you have questions regarding the use of this file, please use | |
|
15 | ** contact form at http://qt.io | |
|
16 | ** | |
|
17 | ****************************************************************************/ | |
|
18 | ||
|
19 | import QtQuick 2.0 | |
|
20 | import QtCharts 2.0 | |
|
21 | ||
|
22 | ||
|
23 | ChartView { | |
|
24 | width: 300 | |
|
25 | height: 300 | |
|
26 | ||
|
27 | HorizontalPercentBarSeries { | |
|
28 | name: "HorizontalPercentBarSeries" | |
|
29 | BarSet { label: "Set1"; values: [2, 2, 3] } | |
|
30 | BarSet { label: "Set2"; values: [5, 1, 2] } | |
|
31 | BarSet { label: "Set3"; values: [3, 5, 8] } | |
|
32 | } | |
|
33 | } |
@@ -0,0 +1,33 | |||
|
1 | /**************************************************************************** | |
|
2 | ** | |
|
3 | ** Copyright (C) 2014 Digia Plc | |
|
4 | ** All rights reserved. | |
|
5 | ** For any questions to Digia, please use contact form at http://qt.io | |
|
6 | ** | |
|
7 | ** This file is part of the Qt Charts module. | |
|
8 | ** | |
|
9 | ** Licensees holding valid commercial license for Qt may use this file in | |
|
10 | ** accordance with the Qt License Agreement provided with the Software | |
|
11 | ** or, alternatively, in accordance with the terms contained in a written | |
|
12 | ** agreement between you and Digia. | |
|
13 | ** | |
|
14 | ** If you have questions regarding the use of this file, please use | |
|
15 | ** contact form at http://qt.io | |
|
16 | ** | |
|
17 | ****************************************************************************/ | |
|
18 | ||
|
19 | import QtQuick 2.0 | |
|
20 | import QtCharts 2.0 | |
|
21 | ||
|
22 | ||
|
23 | ChartView { | |
|
24 | width: 300 | |
|
25 | height: 300 | |
|
26 | ||
|
27 | HorizontalStackedBarSeries { | |
|
28 | name: "HorizontalStackedBarSeries" | |
|
29 | BarSet { label: "Set1"; values: [2, 2, 3] } | |
|
30 | BarSet { label: "Set2"; values: [5, 1, 2] } | |
|
31 | BarSet { label: "Set3"; values: [3, 5, 8] } | |
|
32 | } | |
|
33 | } |
@@ -0,0 +1,34 | |||
|
1 | /**************************************************************************** | |
|
2 | ** | |
|
3 | ** Copyright (C) 2014 Digia Plc | |
|
4 | ** All rights reserved. | |
|
5 | ** For any questions to Digia, please use contact form at http://qt.io | |
|
6 | ** | |
|
7 | ** This file is part of the Qt Charts module. | |
|
8 | ** | |
|
9 | ** Licensees holding valid commercial license for Qt may use this file in | |
|
10 | ** accordance with the Qt License Agreement provided with the Software | |
|
11 | ** or, alternatively, in accordance with the terms contained in a written | |
|
12 | ** agreement between you and Digia. | |
|
13 | ** | |
|
14 | ** If you have questions regarding the use of this file, please use | |
|
15 | ** contact form at http://qt.io | |
|
16 | ** | |
|
17 | ****************************************************************************/ | |
|
18 | ||
|
19 | import QtQuick 2.0 | |
|
20 | import QtCharts 2.0 | |
|
21 | ||
|
22 | ||
|
23 | ChartView { | |
|
24 | width: 300 | |
|
25 | height: 300 | |
|
26 | ||
|
27 | LineSeries { | |
|
28 | name: "LineSeries" | |
|
29 | XYPoint { x: 0; y: 2 } | |
|
30 | XYPoint { x: 1; y: 1.2 } | |
|
31 | XYPoint { x: 2; y: 3.3 } | |
|
32 | XYPoint { x: 5; y: 2.1 } | |
|
33 | } | |
|
34 | } |
@@ -0,0 +1,33 | |||
|
1 | /**************************************************************************** | |
|
2 | ** | |
|
3 | ** Copyright (C) 2014 Digia Plc | |
|
4 | ** All rights reserved. | |
|
5 | ** For any questions to Digia, please use contact form at http://qt.io | |
|
6 | ** | |
|
7 | ** This file is part of the Qt Charts module. | |
|
8 | ** | |
|
9 | ** Licensees holding valid commercial license for Qt may use this file in | |
|
10 | ** accordance with the Qt License Agreement provided with the Software | |
|
11 | ** or, alternatively, in accordance with the terms contained in a written | |
|
12 | ** agreement between you and Digia. | |
|
13 | ** | |
|
14 | ** If you have questions regarding the use of this file, please use | |
|
15 | ** contact form at http://qt.io | |
|
16 | ** | |
|
17 | ****************************************************************************/ | |
|
18 | ||
|
19 | import QtQuick 2.0 | |
|
20 | import QtCharts 2.0 | |
|
21 | ||
|
22 | ||
|
23 | ChartView { | |
|
24 | width: 300 | |
|
25 | height: 300 | |
|
26 | ||
|
27 | PercentBarSeries { | |
|
28 | name: "PercentBarSeries" | |
|
29 | BarSet { label: "Set1"; values: [2, 2, 3] } | |
|
30 | BarSet { label: "Set2"; values: [5, 1, 2] } | |
|
31 | BarSet { label: "Set3"; values: [3, 5, 8] } | |
|
32 | } | |
|
33 | } |
@@ -0,0 +1,32 | |||
|
1 | /**************************************************************************** | |
|
2 | ** | |
|
3 | ** Copyright (C) 2014 Digia Plc | |
|
4 | ** All rights reserved. | |
|
5 | ** For any questions to Digia, please use contact form at http://qt.io | |
|
6 | ** | |
|
7 | ** This file is part of the Qt Charts module. | |
|
8 | ** | |
|
9 | ** Licensees holding valid commercial license for Qt may use this file in | |
|
10 | ** accordance with the Qt License Agreement provided with the Software | |
|
11 | ** or, alternatively, in accordance with the terms contained in a written | |
|
12 | ** agreement between you and Digia. | |
|
13 | ** | |
|
14 | ** If you have questions regarding the use of this file, please use | |
|
15 | ** contact form at http://qt.io | |
|
16 | ** | |
|
17 | ****************************************************************************/ | |
|
18 | ||
|
19 | import QtQuick 2.0 | |
|
20 | import QtCharts 2.0 | |
|
21 | ||
|
22 | ChartView { | |
|
23 | width: 300 | |
|
24 | height: 300 | |
|
25 | ||
|
26 | PieSeries { | |
|
27 | name: "PieSeries" | |
|
28 | PieSlice { label: "Slice1"; value: 13.5 } | |
|
29 | PieSlice { label: "Slice2"; value: 10.9 } | |
|
30 | PieSlice { label: "Slice3"; value: 8.6 } | |
|
31 | } | |
|
32 | } |
@@ -0,0 +1,64 | |||
|
1 | /**************************************************************************** | |
|
2 | ** | |
|
3 | ** Copyright (C) 2014 Digia Plc | |
|
4 | ** All rights reserved. | |
|
5 | ** For any questions to Digia, please use contact form at http://qt.io | |
|
6 | ** | |
|
7 | ** This file is part of the Qt Charts module. | |
|
8 | ** | |
|
9 | ** Licensees holding valid commercial license for Qt may use this file in | |
|
10 | ** accordance with the Qt License Agreement provided with the Software | |
|
11 | ** or, alternatively, in accordance with the terms contained in a written | |
|
12 | ** agreement between you and Digia. | |
|
13 | ** | |
|
14 | ** If you have questions regarding the use of this file, please use | |
|
15 | ** contact form at http://qt.io | |
|
16 | ** | |
|
17 | ****************************************************************************/ | |
|
18 | ||
|
19 | import QtQuick 2.0 | |
|
20 | import QtCharts 2.0 | |
|
21 | ||
|
22 | ||
|
23 | PolarChartView { | |
|
24 | width: 300 | |
|
25 | height: 300 | |
|
26 | legend.visible: false | |
|
27 | ||
|
28 | ValueAxis { | |
|
29 | id: axis1 | |
|
30 | tickCount: 9 | |
|
31 | } | |
|
32 | ValueAxis { | |
|
33 | id: axis2 | |
|
34 | } | |
|
35 | LineSeries { | |
|
36 | id: lowerLine | |
|
37 | axisAngular: axis1 | |
|
38 | axisRadial: axis2 | |
|
39 | ||
|
40 | XYPoint { x: 1; y: 5 } | |
|
41 | XYPoint { x: 2; y: 10 } | |
|
42 | XYPoint { x: 3; y: 12 } | |
|
43 | XYPoint { x: 4; y: 17 } | |
|
44 | XYPoint { x: 5; y: 20 } | |
|
45 | } | |
|
46 | LineSeries { | |
|
47 | id: upperLine | |
|
48 | axisAngular: axis1 | |
|
49 | axisRadial: axis2 | |
|
50 | ||
|
51 | XYPoint { x: 1; y: 5 } | |
|
52 | XYPoint { x: 2; y: 14 } | |
|
53 | XYPoint { x: 3; y: 20 } | |
|
54 | XYPoint { x: 4; y: 32 } | |
|
55 | XYPoint { x: 5; y: 35 } | |
|
56 | } | |
|
57 | AreaSeries { | |
|
58 | name: "AreaSeries" | |
|
59 | axisAngular: axis1 | |
|
60 | axisRadial: axis2 | |
|
61 | lowerSeries: lowerLine | |
|
62 | upperSeries: upperLine | |
|
63 | } | |
|
64 | } |
@@ -0,0 +1,43 | |||
|
1 | /**************************************************************************** | |
|
2 | ** | |
|
3 | ** Copyright (C) 2014 Digia Plc | |
|
4 | ** All rights reserved. | |
|
5 | ** For any questions to Digia, please use contact form at http://qt.io | |
|
6 | ** | |
|
7 | ** This file is part of the Qt Charts module. | |
|
8 | ** | |
|
9 | ** Licensees holding valid commercial license for Qt may use this file in | |
|
10 | ** accordance with the Qt License Agreement provided with the Software | |
|
11 | ** or, alternatively, in accordance with the terms contained in a written | |
|
12 | ** agreement between you and Digia. | |
|
13 | ** | |
|
14 | ** If you have questions regarding the use of this file, please use | |
|
15 | ** contact form at http://qt.io | |
|
16 | ** | |
|
17 | ****************************************************************************/ | |
|
18 | ||
|
19 | import QtQuick 2.0 | |
|
20 | import QtCharts 2.0 | |
|
21 | ||
|
22 | ||
|
23 | PolarChartView { | |
|
24 | width: 300 | |
|
25 | height: 300 | |
|
26 | ||
|
27 | LineSeries { | |
|
28 | name: "LineSeries" | |
|
29 | axisRadial: CategoryAxis { | |
|
30 | min: 0 | |
|
31 | max: 20 | |
|
32 | } | |
|
33 | axisAngular: ValueAxis { | |
|
34 | tickCount: 9 | |
|
35 | } | |
|
36 | XYPoint { x: 0; y: 4.3 } | |
|
37 | XYPoint { x: 2; y: 4.7 } | |
|
38 | XYPoint { x: 4; y: 5.2 } | |
|
39 | XYPoint { x: 6; y: 6.1 } | |
|
40 | XYPoint { x: 8; y: 12.9 } | |
|
41 | XYPoint { x: 9; y: 19.2 } | |
|
42 | } | |
|
43 | } |
@@ -0,0 +1,41 | |||
|
1 | /**************************************************************************** | |
|
2 | ** | |
|
3 | ** Copyright (C) 2014 Digia Plc | |
|
4 | ** All rights reserved. | |
|
5 | ** For any questions to Digia, please use contact form at http://qt.io | |
|
6 | ** | |
|
7 | ** This file is part of the Qt Charts module. | |
|
8 | ** | |
|
9 | ** Licensees holding valid commercial license for Qt may use this file in | |
|
10 | ** accordance with the Qt License Agreement provided with the Software | |
|
11 | ** or, alternatively, in accordance with the terms contained in a written | |
|
12 | ** agreement between you and Digia. | |
|
13 | ** | |
|
14 | ** If you have questions regarding the use of this file, please use | |
|
15 | ** contact form at http://qt.io | |
|
16 | ** | |
|
17 | ****************************************************************************/ | |
|
18 | ||
|
19 | import QtQuick 2.0 | |
|
20 | import QtCharts 2.0 | |
|
21 | ||
|
22 | PolarChartView { | |
|
23 | width: 300 | |
|
24 | height: 300 | |
|
25 | ||
|
26 | ScatterSeries { | |
|
27 | name: "ScatterSeries" | |
|
28 | axisRadial: CategoryAxis { | |
|
29 | min: 0 | |
|
30 | max: 20 | |
|
31 | } | |
|
32 | axisAngular: ValueAxis { | |
|
33 | tickCount: 9 | |
|
34 | } | |
|
35 | XYPoint { x: 0; y: 4.3 } | |
|
36 | XYPoint { x: 2; y: 4.7 } | |
|
37 | XYPoint { x: 4; y: 5.2 } | |
|
38 | XYPoint { x: 8; y: 12.9 } | |
|
39 | XYPoint { x: 9; y: 19.2 } | |
|
40 | } | |
|
41 | } |
@@ -0,0 +1,43 | |||
|
1 | /**************************************************************************** | |
|
2 | ** | |
|
3 | ** Copyright (C) 2014 Digia Plc | |
|
4 | ** All rights reserved. | |
|
5 | ** For any questions to Digia, please use contact form at http://qt.io | |
|
6 | ** | |
|
7 | ** This file is part of the Qt Charts module. | |
|
8 | ** | |
|
9 | ** Licensees holding valid commercial license for Qt may use this file in | |
|
10 | ** accordance with the Qt License Agreement provided with the Software | |
|
11 | ** or, alternatively, in accordance with the terms contained in a written | |
|
12 | ** agreement between you and Digia. | |
|
13 | ** | |
|
14 | ** If you have questions regarding the use of this file, please use | |
|
15 | ** contact form at http://qt.io | |
|
16 | ** | |
|
17 | ****************************************************************************/ | |
|
18 | ||
|
19 | import QtQuick 2.0 | |
|
20 | import QtCharts 2.0 | |
|
21 | ||
|
22 | ||
|
23 | PolarChartView { | |
|
24 | width: 300 | |
|
25 | height: 300 | |
|
26 | ||
|
27 | SplineSeries { | |
|
28 | name: "SplineSeries" | |
|
29 | axisRadial: CategoryAxis { | |
|
30 | min: 0 | |
|
31 | max: 20 | |
|
32 | } | |
|
33 | axisAngular: ValueAxis { | |
|
34 | tickCount: 9 | |
|
35 | } | |
|
36 | XYPoint { x: 0; y: 4.3 } | |
|
37 | XYPoint { x: 2; y: 4.7 } | |
|
38 | XYPoint { x: 4; y: 5.2 } | |
|
39 | XYPoint { x: 6; y: 6.1 } | |
|
40 | XYPoint { x: 8; y: 12.9 } | |
|
41 | XYPoint { x: 9; y: 19.2 } | |
|
42 | } | |
|
43 | } |
@@ -0,0 +1,33 | |||
|
1 | /**************************************************************************** | |
|
2 | ** | |
|
3 | ** Copyright (C) 2014 Digia Plc | |
|
4 | ** All rights reserved. | |
|
5 | ** For any questions to Digia, please use contact form at http://qt.io | |
|
6 | ** | |
|
7 | ** This file is part of the Qt Charts module. | |
|
8 | ** | |
|
9 | ** Licensees holding valid commercial license for Qt may use this file in | |
|
10 | ** accordance with the Qt License Agreement provided with the Software | |
|
11 | ** or, alternatively, in accordance with the terms contained in a written | |
|
12 | ** agreement between you and Digia. | |
|
13 | ** | |
|
14 | ** If you have questions regarding the use of this file, please use | |
|
15 | ** contact form at http://qt.io | |
|
16 | ** | |
|
17 | ****************************************************************************/ | |
|
18 | ||
|
19 | import QtQuick 2.0 | |
|
20 | import QtCharts 2.0 | |
|
21 | ||
|
22 | ChartView { | |
|
23 | width: 300 | |
|
24 | height: 300 | |
|
25 | ||
|
26 | ScatterSeries { | |
|
27 | name: "ScatterSeries" | |
|
28 | XYPoint { x: 1; y: 1 } | |
|
29 | XYPoint { x: 2; y: 4 } | |
|
30 | XYPoint { x: 4; y: 2 } | |
|
31 | XYPoint { x: 5; y: 5 } | |
|
32 | } | |
|
33 | } |
@@ -0,0 +1,33 | |||
|
1 | /**************************************************************************** | |
|
2 | ** | |
|
3 | ** Copyright (C) 2014 Digia Plc | |
|
4 | ** All rights reserved. | |
|
5 | ** For any questions to Digia, please use contact form at http://qt.io | |
|
6 | ** | |
|
7 | ** This file is part of the Qt Charts module. | |
|
8 | ** | |
|
9 | ** Licensees holding valid commercial license for Qt may use this file in | |
|
10 | ** accordance with the Qt License Agreement provided with the Software | |
|
11 | ** or, alternatively, in accordance with the terms contained in a written | |
|
12 | ** agreement between you and Digia. | |
|
13 | ** | |
|
14 | ** If you have questions regarding the use of this file, please use | |
|
15 | ** contact form at http://qt.io | |
|
16 | ** | |
|
17 | ****************************************************************************/ | |
|
18 | ||
|
19 | import QtQuick 2.0 | |
|
20 | import QtCharts 2.0 | |
|
21 | ||
|
22 | ChartView { | |
|
23 | width: 300 | |
|
24 | height: 300 | |
|
25 | ||
|
26 | SplineSeries { | |
|
27 | name: "SplineSeries" | |
|
28 | XYPoint { x: 0; y: 1 } | |
|
29 | XYPoint { x: 3; y: 4.3 } | |
|
30 | XYPoint { x: 5; y: 3.1 } | |
|
31 | XYPoint { x: 8; y: 5.8 } | |
|
32 | } | |
|
33 | } |
@@ -0,0 +1,33 | |||
|
1 | /**************************************************************************** | |
|
2 | ** | |
|
3 | ** Copyright (C) 2014 Digia Plc | |
|
4 | ** All rights reserved. | |
|
5 | ** For any questions to Digia, please use contact form at http://qt.io | |
|
6 | ** | |
|
7 | ** This file is part of the Qt Charts module. | |
|
8 | ** | |
|
9 | ** Licensees holding valid commercial license for Qt may use this file in | |
|
10 | ** accordance with the Qt License Agreement provided with the Software | |
|
11 | ** or, alternatively, in accordance with the terms contained in a written | |
|
12 | ** agreement between you and Digia. | |
|
13 | ** | |
|
14 | ** If you have questions regarding the use of this file, please use | |
|
15 | ** contact form at http://qt.io | |
|
16 | ** | |
|
17 | ****************************************************************************/ | |
|
18 | ||
|
19 | import QtQuick 2.0 | |
|
20 | import QtCharts 2.0 | |
|
21 | ||
|
22 | ||
|
23 | ChartView { | |
|
24 | width: 300 | |
|
25 | height: 300 | |
|
26 | ||
|
27 | StackedBarSeries { | |
|
28 | name: "StackedBarSeries" | |
|
29 | BarSet { label: "Set1"; values: [2, 2, 3] } | |
|
30 | BarSet { label: "Set2"; values: [5, 1, 2] } | |
|
31 | BarSet { label: "Set3"; values: [3, 5, 8] } | |
|
32 | } | |
|
33 | } |
@@ -0,0 +1,55 | |||
|
1 | QML_FILES += \ | |
|
2 | $$PWD/ChartViewSpecifics.qml \ | |
|
3 | $$PWD/default/AreaSeries.qml \ | |
|
4 | $$PWD/default/BarSeries.qml \ | |
|
5 | $$PWD/default/BoxPlotSeries.qml \ | |
|
6 | $$PWD/default/HorizontalBarSeries.qml \ | |
|
7 | $$PWD/default/HorizontalPercentBarSeries.qml \ | |
|
8 | $$PWD/default/HorizontalStackedBarSeries.qml \ | |
|
9 | $$PWD/default/LineSeries.qml \ | |
|
10 | $$PWD/default/PercentBarSeries.qml \ | |
|
11 | $$PWD/default/PieSeries.qml \ | |
|
12 | $$PWD/default/ScatterSeries.qml \ | |
|
13 | $$PWD/default/SplineSeries.qml \ | |
|
14 | $$PWD/default/StackedBarSeries.qml \ | |
|
15 | $$PWD/default/PolarAreaSeries.qml \ | |
|
16 | $$PWD/default/PolarLineSeries.qml \ | |
|
17 | $$PWD/default/PolarScatterSeries.qml \ | |
|
18 | $$PWD/default/PolarSplineSeries.qml | |
|
19 | ||
|
20 | QML_FILES += $$PWD/qtcharts.metainfo | |
|
21 | ||
|
22 | # Images | |
|
23 | QML_FILES += \ | |
|
24 | $$PWD/images/areaseries-chart-icon.png \ | |
|
25 | $$PWD/images/areaseries-chart-icon16.png \ | |
|
26 | $$PWD/images/barseries-icon.png \ | |
|
27 | $$PWD/images/barseries-icon16.png \ | |
|
28 | $$PWD/images/boxplotseries-chart-icon.png \ | |
|
29 | $$PWD/images/boxplotseries-chart-icon16.png \ | |
|
30 | $$PWD/images/horizontalbarseries-icon.png \ | |
|
31 | $$PWD/images/horizontalbarseries-icon16.png \ | |
|
32 | $$PWD/images/horizontalpercentbarseries-icon.png \ | |
|
33 | $$PWD/images/horizontalpercentbarseries-icon16.png \ | |
|
34 | $$PWD/images/horizontalstackedbarseries-icon.png \ | |
|
35 | $$PWD/images/horizontalstackedbarseries-icon16.png \ | |
|
36 | $$PWD/images/lineseries-chart-icon.png \ | |
|
37 | $$PWD/images/lineseries-chart-icon16.png \ | |
|
38 | $$PWD/images/percentbarseries-icon.png \ | |
|
39 | $$PWD/images/percentbarseries-icon16.png \ | |
|
40 | $$PWD/images/pieseries-chart-icon.png \ | |
|
41 | $$PWD/images/pieseries-chart-icon16.png\ | |
|
42 | $$PWD/images/scatterseries-chart-icon.png \ | |
|
43 | $$PWD/images/scatterseries-chart-icon16.png\ | |
|
44 | $$PWD/images/splineseries-chart-icon.png \ | |
|
45 | $$PWD/images/splineseries-chart-icon16.png\ | |
|
46 | $$PWD/images/stackedbarseries-icon.png \ | |
|
47 | $$PWD/images/stackedbarseries-icon16.png \ | |
|
48 | $$PWD/images/areaseries-polar-icon.png \ | |
|
49 | $$PWD/images/areaseries-polar-icon16.png \ | |
|
50 | $$PWD/images/lineseries-polar-icon.png \ | |
|
51 | $$PWD/images/lineseries-polar-icon16.png \ | |
|
52 | $$PWD/images/scatterseries-polar-icon.png \ | |
|
53 | $$PWD/images/scatterseries-polar-icon16.png\ | |
|
54 | $$PWD/images/splineseries-polar-icon.png \ | |
|
55 | $$PWD/images/splineseries-polar-icon16.png |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
@@ -0,0 +1,227 | |||
|
1 | MetaInfo { | |
|
2 | Type { | |
|
3 | name: "QtCharts.AreaSeries" | |
|
4 | icon: "images/areaseries-chart-icon16.png" | |
|
5 | ||
|
6 | ItemLibraryEntry { | |
|
7 | name: "Area" | |
|
8 | category: "Qt Charts - ChartView" | |
|
9 | libraryIcon: "images/areaseries-chart-icon.png" | |
|
10 | version: "2.0" | |
|
11 | requiredImport: "QtCharts" | |
|
12 | ||
|
13 | QmlSource { source: "default/AreaSeries.qml" } | |
|
14 | } | |
|
15 | } | |
|
16 | Type { | |
|
17 | name: "QtCharts.BarSeries" | |
|
18 | icon: "images/barseries-icon16.png" | |
|
19 | ||
|
20 | ItemLibraryEntry { | |
|
21 | name: "Bar" | |
|
22 | category: "Qt Charts - ChartView" | |
|
23 | libraryIcon: "images/barseries-icon.png" | |
|
24 | version: "2.0" | |
|
25 | requiredImport: "QtCharts" | |
|
26 | ||
|
27 | QmlSource { source: "default/BarSeries.qml" } | |
|
28 | } | |
|
29 | } | |
|
30 | Type { | |
|
31 | name: "QtCharts.BoxPlotSeries" | |
|
32 | icon: "images/boxplotseries-chart-icon16.png" | |
|
33 | ||
|
34 | ItemLibraryEntry { | |
|
35 | name: "BoxPlot" | |
|
36 | category: "Qt Charts - ChartView" | |
|
37 | libraryIcon: "images/boxplotseries-chart-icon.png" | |
|
38 | version: "2.0" | |
|
39 | requiredImport: "QtCharts" | |
|
40 | ||
|
41 | QmlSource { source: "default/BoxPlotSeries.qml" } | |
|
42 | } | |
|
43 | } | |
|
44 | Type { | |
|
45 | name: "QtCharts.HorizontalBarSeries" | |
|
46 | icon: "images/horizontalbarseries-icon16.png" | |
|
47 | ||
|
48 | ItemLibraryEntry { | |
|
49 | name: "H.Bar" | |
|
50 | category: "Qt Charts - ChartView" | |
|
51 | libraryIcon: "images/horizontalbarseries-icon.png" | |
|
52 | version: "2.0" | |
|
53 | requiredImport: "QtCharts" | |
|
54 | ||
|
55 | QmlSource { source: "default/HorizontalBarSeries.qml" } | |
|
56 | } | |
|
57 | } | |
|
58 | Type { | |
|
59 | name: "QtCharts.HorizontalPercentBarSeries" | |
|
60 | icon: "images/horizontalpercentbarseries-icon16.png" | |
|
61 | ||
|
62 | ItemLibraryEntry { | |
|
63 | name: "H.PercentBar" | |
|
64 | category: "Qt Charts - ChartView" | |
|
65 | libraryIcon: "images/horizontalpercentbarseries-icon.png" | |
|
66 | version: "2.0" | |
|
67 | requiredImport: "QtCharts" | |
|
68 | ||
|
69 | QmlSource { source: "default/HorizontalPercentBarSeries.qml" } | |
|
70 | } | |
|
71 | } | |
|
72 | Type { | |
|
73 | name: "QtCharts.HorizontalStackedBarSeries" | |
|
74 | icon: "images/horizontalstackedbarseries-icon16.png" | |
|
75 | ||
|
76 | ItemLibraryEntry { | |
|
77 | name: "H.StackedBar" | |
|
78 | category: "Qt Charts - ChartView" | |
|
79 | libraryIcon: "images/horizontalstackedbarseries-icon.png" | |
|
80 | version: "2.0" | |
|
81 | requiredImport: "QtCharts" | |
|
82 | ||
|
83 | QmlSource { source: "default/HorizontalStackedBarSeries.qml" } | |
|
84 | } | |
|
85 | } | |
|
86 | Type { | |
|
87 | name: "QtCharts.LineSeries" | |
|
88 | icon: "images/lineseries-chart-icon16.png" | |
|
89 | ||
|
90 | ItemLibraryEntry { | |
|
91 | name: "Line" | |
|
92 | category: "Qt Charts - ChartView" | |
|
93 | libraryIcon: "images/lineseries-chart-icon.png" | |
|
94 | version: "2.0" | |
|
95 | requiredImport: "QtCharts" | |
|
96 | ||
|
97 | QmlSource { source: "default/LineSeries.qml" } | |
|
98 | } | |
|
99 | } | |
|
100 | Type { | |
|
101 | name: "QtCharts.PercentBarSeries" | |
|
102 | icon: "images/percentbarseries-icon16.png" | |
|
103 | ||
|
104 | ItemLibraryEntry { | |
|
105 | name: "Percent" | |
|
106 | category: "Qt Charts - ChartView" | |
|
107 | libraryIcon: "images/percentbarseries-icon.png" | |
|
108 | version: "2.0" | |
|
109 | requiredImport: "QtCharts" | |
|
110 | ||
|
111 | QmlSource { source: "default/PercentBarSeries.qml" } | |
|
112 | } | |
|
113 | } | |
|
114 | Type { | |
|
115 | name: "QtCharts.PieSeries" | |
|
116 | icon: "images/pieseries-chart-icon16.png" | |
|
117 | ||
|
118 | ItemLibraryEntry { | |
|
119 | name: "Pie" | |
|
120 | category: "Qt Charts - ChartView" | |
|
121 | libraryIcon: "images/pieseries-chart-icon.png" | |
|
122 | version: "2.0" | |
|
123 | requiredImport: "QtCharts" | |
|
124 | ||
|
125 | QmlSource { source: "default/PieSeries.qml" } | |
|
126 | } | |
|
127 | } | |
|
128 | Type { | |
|
129 | name: "QtCharts.ScatterSeries" | |
|
130 | icon: "images/scatterseries-chart-icon16.png" | |
|
131 | ||
|
132 | ItemLibraryEntry { | |
|
133 | name: "Scatter" | |
|
134 | category: "Qt Charts - ChartView" | |
|
135 | libraryIcon: "images/scatterseries-chart-icon.png" | |
|
136 | version: "2.0" | |
|
137 | requiredImport: "QtCharts" | |
|
138 | ||
|
139 | QmlSource { source: "default/ScatterSeries.qml" } | |
|
140 | } | |
|
141 | } | |
|
142 | Type { | |
|
143 | name: "QtCharts.SplineSeries" | |
|
144 | icon: "images/splineseries-chart-icon16.png" | |
|
145 | ||
|
146 | ItemLibraryEntry { | |
|
147 | name: "Spline" | |
|
148 | category: "Qt Charts - ChartView" | |
|
149 | libraryIcon: "images/splineseries-chart-icon.png" | |
|
150 | version: "2.0" | |
|
151 | requiredImport: "QtCharts" | |
|
152 | ||
|
153 | QmlSource { source: "default/SplineSeries.qml" } | |
|
154 | } | |
|
155 | } | |
|
156 | Type { | |
|
157 | name: "QtCharts.StackedBarSeries" | |
|
158 | icon: "images/stackedbarseries-icon16.png" | |
|
159 | ||
|
160 | ItemLibraryEntry { | |
|
161 | name: "StackedBar" | |
|
162 | category: "Qt Charts - ChartView" | |
|
163 | libraryIcon: "images/stackedbarseries-icon.png" | |
|
164 | version: "2.0" | |
|
165 | requiredImport: "QtCharts" | |
|
166 | ||
|
167 | QmlSource { source: "default/StackedBarSeries.qml" } | |
|
168 | } | |
|
169 | } | |
|
170 | ||
|
171 | Type { | |
|
172 | name: "QtCharts.AreaSeries" | |
|
173 | icon: "images/areaseries-polar-icon16.png" | |
|
174 | ||
|
175 | ItemLibraryEntry { | |
|
176 | name: "Area" | |
|
177 | category: "Qt Charts - PolarChartView" | |
|
178 | libraryIcon: "images/areaseries-polar-icon.png" | |
|
179 | version: "2.0" | |
|
180 | requiredImport: "QtCharts" | |
|
181 | ||
|
182 | QmlSource { source: "default/PolarAreaSeries.qml" } | |
|
183 | } | |
|
184 | } | |
|
185 | Type { | |
|
186 | name: "QtCharts.LineSeries" | |
|
187 | icon: "images/lineseries-polar-icon16.png" | |
|
188 | ||
|
189 | ItemLibraryEntry { | |
|
190 | name: "Line" | |
|
191 | category: "Qt Charts - PolarChartView" | |
|
192 | libraryIcon: "images/lineseries-polar-icon.png" | |
|
193 | version: "2.0" | |
|
194 | requiredImport: "QtCharts" | |
|
195 | ||
|
196 | QmlSource { source: "default/PolarLineSeries.qml" } | |
|
197 | } | |
|
198 | } | |
|
199 | Type { | |
|
200 | name: "QtCharts.ScatterSeries" | |
|
201 | icon: "images/scatterseries-polar-icon16.png" | |
|
202 | ||
|
203 | ItemLibraryEntry { | |
|
204 | name: "Scatter" | |
|
205 | category: "Qt Charts - PolarChartView" | |
|
206 | libraryIcon: "images/scatterseries-polar-icon.png" | |
|
207 | version: "2.0" | |
|
208 | requiredImport: "QtCharts" | |
|
209 | ||
|
210 | QmlSource { source: "default/PolarScatterSeries.qml" } | |
|
211 | } | |
|
212 | } | |
|
213 | Type { | |
|
214 | name: "QtCharts.SplineSeries" | |
|
215 | icon: "images/splineseries-polar-icon16.png" | |
|
216 | ||
|
217 | ItemLibraryEntry { | |
|
218 | name: "Spline" | |
|
219 | category: "Qt Charts - PolarChartView" | |
|
220 | libraryIcon: "images/splineseries-polar-icon.png" | |
|
221 | version: "2.0" | |
|
222 | requiredImport: "QtCharts" | |
|
223 | ||
|
224 | QmlSource { source: "default/PolarSplineSeries.qml" } | |
|
225 | } | |
|
226 | } | |
|
227 | } |
@@ -9,6 +9,8 IMPORT_VERSION = $$MODULE_VERSION | |||
|
9 | 9 | # Only build qml plugin static if Qt itself is also built static |
|
10 | 10 | !contains(QT_CONFIG, static): CONFIG -= static staticlib |
|
11 | 11 | |
|
12 | include($$PWD/designer/designer.pri) | |
|
13 | ||
|
12 | 14 | INCLUDEPATH += ../../include \ |
|
13 | 15 | ../../include/QtCharts \ |
|
14 | 16 | ../charts \ |
General Comments 0
You need to be logged in to leave comments.
Login now