summaryrefslogtreecommitdiffstats
path: root/src/datavisualization/data
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2013-12-04 09:39:07 +0200
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2013-12-04 10:33:15 +0200
commit01407a145ceb172727a27254108f9728a9537a3c (patch)
tree6b16507e319d7479fa19056e8ae7db40df38a4d0 /src/datavisualization/data
parent5864e78bd10a4d3d1aa60ec7fd282186bb004ad6 (diff)
Swap row and column axis orientations in bars around
Now axis orientations are a logical match for surface axes. Change-Id: Ib04436c5e83a59bf47f152b60b51b6e8559d681a Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/datavisualization/data')
-rw-r--r--src/datavisualization/data/qsurfacedataproxy.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/datavisualization/data/qsurfacedataproxy.cpp b/src/datavisualization/data/qsurfacedataproxy.cpp
index 4c6c85f7..49553036 100644
--- a/src/datavisualization/data/qsurfacedataproxy.cpp
+++ b/src/datavisualization/data/qsurfacedataproxy.cpp
@@ -41,9 +41,14 @@ QT_DATAVISUALIZATION_BEGIN_NAMESPACE
* If you use QSurfaceDataRow pointers to directly modify data after adding the array to the proxy,
* you must also emit proper signal to make the graph update.
*
- * When determining what rows and columns are visible, the first item in each row and the first item in
- * each column determine if the whole row or column is visible, even if other items in the row or column
- * individually have different X- or Z-coordinates.
+ * To make a sensible surface, the X-value of each successive item in the same row must be greater than the
+ * previous item in that row, and the the Z-value of each successive item in a column must be greater than
+ * the previous item in that column.
+ *
+ * \note In the initial release, only surfaces with straight rows and columns are fully supported. Any row
+ * with items that do not have the exact same Z-value or any columns with items that do not have the exact
+ * same X-value may get clipped incorrectly if the whole surface doesn't fit to the visible X or Z axis
+ * ranges.
*
* \note Surfaces with less than two rows or columns are not considered valid surfaces and will
* not get rendered.