From aca72a0e3876d785a07316f5026df849b472a85e 2012-04-04 14:44:47 From: sauimone Date: 2012-04-04 14:44:47 Subject: [PATCH] nice numbers on for barchart examples --- 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]