From 203508d4aff39cfb7d8a7f3192884a190f203020 Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Thu, 28 Feb 2019 14:42:03 +0100 Subject: 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 --- src/charts/doc/src/examples-temperaturerecords.qdoc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/charts/doc/src/examples-temperaturerecords.qdoc') 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 -- cgit v1.2.3