@@ -1,64 +1,64 | |||||
1 | /**************************************************************************** |
|
1 | /**************************************************************************** | |
2 | ** |
|
2 | ** | |
3 | ** Copyright (C) 2013 Digia Plc |
|
3 | ** Copyright (C) 2013 Digia Plc | |
4 | ** All rights reserved. |
|
4 | ** All rights reserved. | |
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com |
|
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com | |
6 | ** |
|
6 | ** | |
7 | ** This file is part of the Qt Enterprise Charts Add-on. |
|
7 | ** This file is part of the Qt Enterprise Charts Add-on. | |
8 | ** |
|
8 | ** | |
9 | ** $QT_BEGIN_LICENSE$ |
|
9 | ** $QT_BEGIN_LICENSE$ | |
10 | ** Licensees holding valid Qt Enterprise licenses may use this file in |
|
10 | ** Licensees holding valid Qt Enterprise licenses may use this file in | |
11 | ** accordance with the Qt Enterprise License Agreement provided with the |
|
11 | ** accordance with the Qt Enterprise License Agreement provided with the | |
12 | ** Software or, alternatively, in accordance with the terms contained in |
|
12 | ** Software or, alternatively, in accordance with the terms contained in | |
13 | ** a written agreement between you and Digia. |
|
13 | ** a written agreement between you and Digia. | |
14 | ** |
|
14 | ** | |
15 | ** If you have questions regarding the use of this file, please use |
|
15 | ** If you have questions regarding the use of this file, please use | |
16 | ** contact form at http://qt.digia.com |
|
16 | ** contact form at http://qt.digia.com | |
17 | ** $QT_END_LICENSE$ |
|
17 | ** $QT_END_LICENSE$ | |
18 | ** |
|
18 | ** | |
19 | ****************************************************************************/ |
|
19 | ****************************************************************************/ | |
20 |
|
20 | |||
21 | #include "declarativepolarchart.h" |
|
21 | #include "declarativepolarchart.h" | |
22 | #include "qchart.h" |
|
22 | #include "qchart.h" | |
23 |
|
23 | |||
24 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
|
24 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | |
25 |
|
25 | |||
26 | /*! |
|
26 | /*! | |
27 | \qmlclass PolarChartView DeclarativePolarChart |
|
27 | \qmlclass PolarChartView DeclarativePolarChart | |
28 |
|
28 | |||
29 | PolarChartView element is the parent that is responsible for showing different chart series types |
|
29 | PolarChartView element is the parent that is responsible for showing different chart series types | |
30 | in a polar chart. |
|
30 | in a polar chart. | |
31 |
|
31 | |||
32 | Polar charts support line, spline, area, and scatter series, and all axis types |
|
32 | Polar charts support line, spline, area, and scatter series, and all axis types | |
33 | supported by those series. |
|
33 | supported by those series. | |
34 |
|
34 | |||
35 | \note When setting ticks to an angular ValueAxis, keep in mind that the first and last tick |
|
35 | \note When setting ticks to an angular ValueAxis, keep in mind that the first and last tick | |
36 | are co-located at 0/360 degree angle. |
|
36 | are co-located at 0/360 degree angle. | |
37 |
|
37 | |||
38 | \note If the angular distance between two consecutive points in a series is more than 180 degrees, |
|
38 | \note If the angular distance between two consecutive points in a series is more than 180 degrees, | |
39 | any line connecting the two points becomes meaningless, so choose the axis ranges accordingly |
|
39 | any line connecting the two points becomes meaningless, so choose the axis ranges accordingly | |
40 | when displaying line, spline, or area series. |
|
40 | when displaying line, spline, or area series. | |
41 |
|
41 | |||
42 | \note Polar charts do not support multiple axes of same orientation. |
|
42 | \note Polar charts do not support multiple axes of same orientation. | |
43 |
|
43 | |||
44 | The following QML shows how to create a polar chart with two series: |
|
44 | The following QML shows how to create a polar chart with two series: | |
45 |
\snippet ../demos/qmlpolarchart/qml/qmlpolarchart/ |
|
45 | \snippet ../demos/qmlpolarchart/qml/qmlpolarchart/View1.qml 1 | |
46 |
|
46 | |||
47 | \beginfloatleft |
|
47 | \beginfloatleft | |
48 | \image demos_qmlpolarchart1.png |
|
48 | \image demos_qmlpolarchart1.png | |
49 | \endfloat |
|
49 | \endfloat | |
50 | \clearfloat |
|
50 | \clearfloat | |
51 | */ |
|
51 | */ | |
52 |
|
52 | |||
53 | DeclarativePolarChart::DeclarativePolarChart(QDECLARATIVE_ITEM *parent) |
|
53 | DeclarativePolarChart::DeclarativePolarChart(QDECLARATIVE_ITEM *parent) | |
54 | : DeclarativeChart(QChart::ChartTypePolar, parent) |
|
54 | : DeclarativeChart(QChart::ChartTypePolar, parent) | |
55 | { |
|
55 | { | |
56 | } |
|
56 | } | |
57 |
|
57 | |||
58 | DeclarativePolarChart::~DeclarativePolarChart() |
|
58 | DeclarativePolarChart::~DeclarativePolarChart() | |
59 | { |
|
59 | { | |
60 | } |
|
60 | } | |
61 |
|
61 | |||
62 | #include "moc_declarativepolarchart.cpp" |
|
62 | #include "moc_declarativepolarchart.cpp" | |
63 |
|
63 | |||
64 | QTCOMMERCIALCHART_END_NAMESPACE |
|
64 | QTCOMMERCIALCHART_END_NAMESPACE |
General Comments 0
You need to be logged in to leave comments.
Login now