diff --git a/examples/barchart/main.cpp b/examples/barchart/main.cpp index 9854ed6..1da3ef7 100644 --- a/examples/barchart/main.cpp +++ b/examples/barchart/main.cpp @@ -68,6 +68,7 @@ int main(int argc, char *argv[]) //![5] chart->legend()->setVisible(true); chart->legend()->setAlignmnent(QLegend::AlignmentBottom); + chart->axisY()->setNiceNumbers(true); //![5] //![6] diff --git a/examples/stackedbarchart/main.cpp b/examples/stackedbarchart/main.cpp index 809dffe..98d2fac 100644 --- a/examples/stackedbarchart/main.cpp +++ b/examples/stackedbarchart/main.cpp @@ -68,6 +68,7 @@ int main(int argc, char *argv[]) //![5] chart->legend()->setVisible(true); chart->legend()->setAlignmnent(QLegend::AlignmentBottom); + chart->axisY()->setNiceNumbers(true); //![5] //![6]