diff --git a/doc/src/examples-barchart.qdoc b/doc/src/examples-barchart.qdoc index e97c95f..91e6058 100644 --- a/doc/src/examples-barchart.qdoc +++ b/doc/src/examples-barchart.qdoc @@ -15,7 +15,7 @@ \snippet ../examples/barchart/main.cpp 1 We create the series and append the barsets to it. The series takes ownership of the barsets. The series groups the data from sets to categories. - First value of each set are gropuped together at first category second value to second category and so on. + First values of each set are grouped together at first category second value to second category and so on. \snippet ../examples/barchart/main.cpp 2 @@ -31,7 +31,7 @@ \snippet ../examples/barchart/main.cpp 4 - We also want to show the legend. To do that, we get the legend pointer from chart and set it to visible. We also place the legend to bottom of the chart by setting it's alignment + We also want to show the legend. To do that, we get the legend pointer from chart and set it to visible. We also place the legend to bottom of the chart by setting its alignment to Qt::AlignBottom. \snippet ../examples/barchart/main.cpp 5 diff --git a/doc/src/examples-barmodelmapper.qdoc b/doc/src/examples-barmodelmapper.qdoc index b8b887e..8817abb 100644 --- a/doc/src/examples-barmodelmapper.qdoc +++ b/doc/src/examples-barmodelmapper.qdoc @@ -32,8 +32,8 @@ \snippet ../examples/barmodelmapper/tablewidget.cpp 4 - To show in QTableView which data coresponds with which bar set this example uses table coloring. - When series is added to the chart it is assigned a color beased on the currently selected theme. + To show in QTableView which data corresponds with which bar set this example uses table coloring. + When series is added to the chart it is assigned a color based on the currently selected theme. Code below extracts that color from the series and uses it to create colored QTableView. Coloring of the view is not a part of the QChart functionality. diff --git a/doc/src/examples-datetimeaxis.qdoc b/doc/src/examples-datetimeaxis.qdoc index 283a5c7..c689965 100644 --- a/doc/src/examples-datetimeaxis.qdoc +++ b/doc/src/examples-datetimeaxis.qdoc @@ -16,13 +16,13 @@ \snippet ../examples/datetimeaxis/main.cpp 2 - To present the data on the char we need QChart instance. We add the series to it, hide the legend, create the default axes and set the title of the chart. + To present the data on the chart we need QChart instance. We add the series to it, hide the legend, create the default axes and set the title of the chart. \snippet ../examples/datetimeaxis/main.cpp 3 - Becasue we use QLineSeries calling createDefaultAxes will create QValueAxis both as X and Y axis. To use QDateTimeAxis we need to set it manually to the chart. - First the instance of QDateTimeAxis is created, then the number of ticks that are to be shown is set. The number of sun spots is provided as an average for the month therfore we don't need the axis labels to contain the information about the time and the day. This is achived by setting a custom label format. - Please refer to QDateTime::toString() method documntation to learn about the avaiable format options. + Because we use QLineSeries calling createDefaultAxes will create QValueAxis both as X and Y axis. To use QDateTimeAxis we need to set it manually to the chart. + First the instance of QDateTimeAxis is created, then the number of ticks that are to be shown is set. The number of sun spots is provided as an average for the month therefore we don't need the axis labels to contain the information about the time and the day. This is achieved by setting a custom label format. + Please refer to QDateTime::toString() method documentation to learn about the available format options. \snippet ../examples/datetimeaxis/main.cpp 4 diff --git a/doc/src/examples-horizontalbarchart.qdoc b/doc/src/examples-horizontalbarchart.qdoc index dff8cf0..f9b0221 100644 --- a/doc/src/examples-horizontalbarchart.qdoc +++ b/doc/src/examples-horizontalbarchart.qdoc @@ -32,7 +32,7 @@ \snippet ../examples/horizontalbarchart/main.cpp 4 - We also want to show the legend. To do that, we get the legend pointer from chart and set it to visible. We also place the legend to bottom of the chart by setting it's alignment + We also want to show the legend. To do that, we get the legend pointer from chart and set it to visible. We also place the legend to bottom of the chart by setting its alignment to Qt::AlignBottom. \snippet ../examples/horizontalbarchart/main.cpp 5 diff --git a/doc/src/examples-horizontalpercentbarchart.qdoc b/doc/src/examples-horizontalpercentbarchart.qdoc index c5e3dde..693ed89 100644 --- a/doc/src/examples-horizontalpercentbarchart.qdoc +++ b/doc/src/examples-horizontalpercentbarchart.qdoc @@ -21,7 +21,7 @@ \snippet ../examples/horizontalpercentbarchart/main.cpp 1 We create the series and append the barsets to it. The series takes ownership of the barsets. The series groups the data from sets to categories. - First value of each set are gropuped together at first category second value to second category and so on. + First values of each set are grouped together at first category second value to second category and so on. \snippet ../examples/horizontalpercentbarchart/main.cpp 2 @@ -37,7 +37,7 @@ \snippet ../examples/horizontalpercentbarchart/main.cpp 4 - We also want to show the legend. To do that, we get the legend pointer from chart and set it to visible. We also place the legend to bottom of the chart by setting it's alignment + We also want to show the legend. To do that, we get the legend pointer from chart and set it to visible. We also place the legend to bottom of the chart by setting its alignment to Qt::AlignBottom. \snippet ../examples/horizontalpercentbarchart/main.cpp 5 diff --git a/doc/src/examples-horizontalstackedbarchart.qdoc b/doc/src/examples-horizontalstackedbarchart.qdoc index 0e09333..169537a 100644 --- a/doc/src/examples-horizontalstackedbarchart.qdoc +++ b/doc/src/examples-horizontalstackedbarchart.qdoc @@ -18,7 +18,7 @@ \snippet ../examples/horizontalstackedbarchart/main.cpp 1 We create the series and append the barsets to it. The series takes ownership of the barsets. The series groups the data from sets to categories. - First value of each set are gropuped together at first category second value to second category and so on. + First values of each set are grouped together at first category second value to second category and so on. \snippet ../examples/horizontalstackedbarchart/main.cpp 2 @@ -34,7 +34,7 @@ \snippet ../examples/horizontalstackedbarchart/main.cpp 4 - We also want to show the legend. To do that, we get the legend pointer from chart and set it to visible. We also place the legend to bottom of the chart by setting it's alignment + We also want to show the legend. To do that, we get the legend pointer from chart and set it to visible. We also place the legend to bottom of the chart by setting its alignment to Qt::AlignBottom. \snippet ../examples/horizontalstackedbarchart/main.cpp 5 diff --git a/doc/src/examples-lineandbarchart.qdoc b/doc/src/examples-lineandbarchart.qdoc index a88c870..efe0c9c 100644 --- a/doc/src/examples-lineandbarchart.qdoc +++ b/doc/src/examples-lineandbarchart.qdoc @@ -13,7 +13,7 @@ \snippet ../examples/lineandbar/main.cpp 1 We create the barseries and append the sets to it. - First value of each set are gropuped together at first category second value to second category and so on. + First values of each set are grouped together at first category second value to second category and so on. \snippet ../examples/lineandbar/main.cpp 2 diff --git a/doc/src/examples-linechart.qdoc b/doc/src/examples-linechart.qdoc index 25979b5..cc799ca 100644 --- a/doc/src/examples-linechart.qdoc +++ b/doc/src/examples-linechart.qdoc @@ -15,7 +15,7 @@ \snippet ../examples/linechart/main.cpp 2 - To present the data on the char we need QChart instance. We add the series to it, create the default axes and set the title of the chart. + To present the data on the chart we need QChart instance. We add the series to it, create the default axes and set the title of the chart. \snippet ../examples/linechart/main.cpp 3 diff --git a/doc/src/examples-logvalueaxis.qdoc b/doc/src/examples-logvalueaxis.qdoc index fd9899f..27449c4 100644 --- a/doc/src/examples-logvalueaxis.qdoc +++ b/doc/src/examples-logvalueaxis.qdoc @@ -11,7 +11,7 @@ \snippet ../examples/logvalueaxis/main.cpp 1 - To present the data on the char we need QChart instance. Add the series to it, hide the legend and set the title of the chart. + To present the data on the chart we need QChart instance. Add the series to it, hide the legend and set the title of the chart. \snippet ../examples/logvalueaxis/main.cpp 2 diff --git a/doc/src/examples-modeldata.qdoc b/doc/src/examples-modeldata.qdoc index 65576d8..cc13fa9 100644 --- a/doc/src/examples-modeldata.qdoc +++ b/doc/src/examples-modeldata.qdoc @@ -31,7 +31,7 @@ \snippet ../examples/modeldata/tablewidget.cpp 4 - To show in QTableView which data coresponds with which series this example uses table coloring. + To show in QTableView which data corresponds with which series this example uses table coloring. When series is added to the chart it is assigned a color based on the currently selected theme. Code below extracts that color from the series and uses it to create colored QTableView. Coloring of the view is not a part of the QChart functionality. diff --git a/doc/src/examples-percentbarchart.qdoc b/doc/src/examples-percentbarchart.qdoc index 99e397d..40dc97c 100644 --- a/doc/src/examples-percentbarchart.qdoc +++ b/doc/src/examples-percentbarchart.qdoc @@ -21,7 +21,7 @@ \snippet ../examples/percentbarchart/main.cpp 1 We create the series and append the barsets to it. The series takes ownership of the barsets. The series groups the data from sets to categories. - First value of each set are gropuped together at first category second value to second category and so on. + First values of each set are grouped together at first category second value to second category and so on. \snippet ../examples/percentbarchart/main.cpp 2 @@ -37,7 +37,7 @@ \snippet ../examples/percentbarchart/main.cpp 4 - We also want to show the legend. To do that, we get the legend pointer from chart and set it to visible. We also place the legend to bottom of the chart by setting it's alignment + We also want to show the legend. To do that, we get the legend pointer from chart and set it to visible. We also place the legend to bottom of the chart by setting its alignment to Qt::AlignBottom. \snippet ../examples/percentbarchart/main.cpp 5 diff --git a/doc/src/examples-stackedbarchart.qdoc b/doc/src/examples-stackedbarchart.qdoc index b49b3fe..c0410b7 100644 --- a/doc/src/examples-stackedbarchart.qdoc +++ b/doc/src/examples-stackedbarchart.qdoc @@ -20,7 +20,7 @@ \snippet ../examples/stackedbarchart/main.cpp 1 We create the series and append the barsets to it. The series takes ownership of the barsets. The series groups the data from sets to categories. - First value of each set are gropuped together at first category second value to second category and so on. + First values of each set are grouped together at first category second value to second category and so on. \snippet ../examples/stackedbarchart/main.cpp 2 @@ -36,7 +36,7 @@ \snippet ../examples/stackedbarchart/main.cpp 4 - We also want to show the legend. To do that, we get the legend pointer from chart and set it to visible. We also place the legend to bottom of the chart by setting it's alignment + We also want to show the legend. To do that, we get the legend pointer from chart and set it to visible. We also place the legend to bottom of the chart by setting its alignment to Qt::AlignBottom. \snippet ../examples/stackedbarchart/main.cpp 5 diff --git a/doc/src/examples-temperaturerecords.qdoc b/doc/src/examples-temperaturerecords.qdoc index 725b3ca..95961a7 100644 --- a/doc/src/examples-temperaturerecords.qdoc +++ b/doc/src/examples-temperaturerecords.qdoc @@ -28,7 +28,7 @@ \snippet ../examples/temperaturerecords/main.cpp 4 - We also want to show the legend. To do that, we get the legend pointer from chart and set it to visible. We also place the legend to bottom of the chart by setting it's alignment + We also want to show the legend. To do that, we get the legend pointer from chart and set it to visible. We also place the legend to bottom of the chart by setting its alignment to Qt::AlignBottom. \snippet ../examples/temperaturerecords/main.cpp 5 diff --git a/src/qchart.cpp b/src/qchart.cpp index 3e1ad71..496e146 100644 --- a/src/qchart.cpp +++ b/src/qchart.cpp @@ -555,7 +555,7 @@ void QChart::removeAxis(QAbstractAxis *axis) } /*! - Returns the value in the \a series domain that coresponds to the charts widget point defines by \a position. + Returns the value in the \a series domain that corresponds to the charts widget point defines by \a position. */ QPointF QChart::mapToValue(const QPointF &position, QAbstractSeries *series) { @@ -563,7 +563,7 @@ QPointF QChart::mapToValue(const QPointF &position, QAbstractSeries *series) } /*! - Returns the position on the charts widget that coresponds to the \a value in the \a series domain. + Returns the position on the charts widget that corresponds to the \a value in the \a series domain. */ QPointF QChart::mapToPosition(const QPointF &value, QAbstractSeries *series) {