From b1d028be5bea64a915de13ffcd782e7f5228e47a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20Korpip=C3=A4=C3=A4?= Date: Fri, 25 Apr 2014 08:55:38 +0300 Subject: Added explanation / example of axis label selection Task-number: QTRD-2982 Change-Id: Ia164c2462d6e43ddf79e3e13f356435018c383a9 Reviewed-by: Titta Heikkala --- examples/datavisualization/bars/doc/src/bars.qdoc | 15 +++++++++++++++ src/datavisualization/doc/src/qtdatavisualization.qdoc | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/examples/datavisualization/bars/doc/src/bars.qdoc b/examples/datavisualization/bars/doc/src/bars.qdoc index 361078bb..8f8d6210 100644 --- a/examples/datavisualization/bars/doc/src/bars.qdoc +++ b/examples/datavisualization/bars/doc/src/bars.qdoc @@ -29,6 +29,7 @@ \li Create an application with Q3DBars and some widgets \li Use QBar3DSeries and QBarDataProxy to set data to the graph \li Adjust some graph and series properties using widget controls + \li Select a row or a column by clicking an axis label \endlist It also demonstrates how having negative bar values affects the graph. @@ -167,6 +168,20 @@ \li Font size \endlist + \section1 Selecting a row/column by clicking an axis label + + Selection by axis label is default functionality for bar graphs. As an example, you can select + rows by clicking an axis label in the following way:" + + \list + \li Change selection mode to \c SelectionRow + \li Click a year label + \li The row with the clicked year is selected + \endlist + + You can use the same method with \c SelectionSlice and \c SelectionItem flags, as long as + you have either \c SelectionRow or \c SelectionColumn set as well. + \section1 Example contents */ diff --git a/src/datavisualization/doc/src/qtdatavisualization.qdoc b/src/datavisualization/doc/src/qtdatavisualization.qdoc index 0fbe36cb..cdbd4e4b 100644 --- a/src/datavisualization/doc/src/qtdatavisualization.qdoc +++ b/src/datavisualization/doc/src/qtdatavisualization.qdoc @@ -303,7 +303,8 @@ a single row or column. Bar graph additionally supports simply highlighting the whole row and/or column of the selected bar - without opening the slice view. + without opening the slice view. Bar graph also supports selecting/slicing a whole row and/or + column by clicking the axis label, based on selection mode. When multiple series are added to a graph, selecting an item in one of them will clear the selection on other series. -- cgit v1.2.3