diff options
Diffstat (limited to 'src/charts/doc/src/examples-stackedbarchart.qdoc')
-rw-r--r-- | src/charts/doc/src/examples-stackedbarchart.qdoc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/charts/doc/src/examples-stackedbarchart.qdoc b/src/charts/doc/src/examples-stackedbarchart.qdoc index 1744a68a..367a11ab 100644 --- a/src/charts/doc/src/examples-stackedbarchart.qdoc +++ b/src/charts/doc/src/examples-stackedbarchart.qdoc @@ -62,10 +62,11 @@ \snippet stackedbarchart/main.cpp 3 - To have categories displayed on the axis, we need to create a QBarCategoryAxis. Here we create a category axis with list of categories and - set it to be the x-axis of the chart. The chart takes ownership of the axis. For the y-axis we use default axis, which is created and scaled to series data - by calling createDefaultAxes of the chart. Note that the call for createDefaultAxes must be before we set the category axis. Otherwise the default axis will - override the category axis. + To have the categories displayed on an axis, we need to create a + QBarCategoryAxis first. Here we create a category axis with a list of + categories and add it to the chart aligned to bottom, acting as the + x-axis. The chart takes ownership of the axis. For the y-axis we use a + value axis, aligned to the left-hand side. \snippet stackedbarchart/main.cpp 4 |