summaryrefslogtreecommitdiffstats
path: root/src/charts/doc/src/examples-temperaturerecords.qdoc
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@qt.io>2019-02-28 14:42:03 +0100
committerTopi Reiniƶ <topi.reinio@qt.io>2019-03-05 10:56:41 +0000
commit203508d4aff39cfb7d8a7f3192884a190f203020 (patch)
tree07f2700bcd3656da87c71d1474f21acfa8e82166 /src/charts/doc/src/examples-temperaturerecords.qdoc
parentde84efac79724970bcdeac7fcdfe72a5fa846761 (diff)
Doc: Set QChart functions as deprecated
axisX,Y and setAxisX,Y functions are now deprecated - mark them as such in the documentation. Example code was also fixed to not use deprecated functions, but example documentation was not updated to reflect that change. Task-number: QTBUG-74097 Change-Id: I2d4f283f1d0c62a02b33c373885e75bce34a1114 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/charts/doc/src/examples-temperaturerecords.qdoc')
-rw-r--r--src/charts/doc/src/examples-temperaturerecords.qdoc11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/charts/doc/src/examples-temperaturerecords.qdoc b/src/charts/doc/src/examples-temperaturerecords.qdoc
index bf8a0b8c..8ac9d9a1 100644
--- a/src/charts/doc/src/examples-temperaturerecords.qdoc
+++ b/src/charts/doc/src/examples-temperaturerecords.qdoc
@@ -53,11 +53,12 @@
\snippet temperaturerecords/main.cpp 3
- To have categories displayed on an axis, we need to create a QBarCategoryAxis. Here we create a category axis with a list of categories and
- set it to be the x-axis of the chart. The chart takes ownership of the axis. For y-axis we use the default axis, which is created and scaled to the series data
- by calling createDefaultAxes of the chart. We change the range for the y-axis, since this gives nicer result than with autoscaling.
-
- 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. 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 y-axis we use a value
+ axis, aligned to the left-hand side. We change the range for the y-axis,
+ as this gives nicer results than with autoscaling.
\snippet temperaturerecords/main.cpp 4