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