summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJani Honkonen <jani.honkonen@digia.com>2012-11-05 14:32:41 +0200
committerJani Honkonen <jani.honkonen@digia.com>2012-11-05 14:37:31 +0200
commit222c26d04db8885396aa4ece76f96219a8c3e9d8 (patch)
tree64e02ef05b74589ddfc5b8265ea1cd3b7081fba4 /doc
parente10ccc2f806c18d1fdb1513b07dd09eb5ce6ba5f (diff)
donutbreakdown example now has customized legendmarkers
Diffstat (limited to 'doc')
-rw-r--r--doc/src/examples-donutbreakdown.qdoc9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/src/examples-donutbreakdown.qdoc b/doc/src/examples-donutbreakdown.qdoc
index 23588622..79347bde 100644
--- a/doc/src/examples-donutbreakdown.qdoc
+++ b/doc/src/examples-donutbreakdown.qdoc
@@ -29,6 +29,15 @@
\snippet ../examples/donutbreakdown/donutbreakdownchart.cpp 3
+ Legend markers are customized to show the breakdown percentage and markers for the main level slices are hidden.
+
+ \snippet ../examples/donutbreakdown/donutbreakdownchart.cpp 4
+
+ Instead the main level slices show the percentage on the label.
+
+ \snippet ../examples/donutbreakdown/mainslice.cpp 1
+ \snippet ../examples/donutbreakdown/mainslice.cpp 2
+
And now that we have our chart defined we can finally create a QChartView and show the chart.
\snippet ../examples/donutbreakdown/main.cpp 3