##// END OF EJS Templates
doc: Updated zoom line chart example screens
doc: Updated zoom line chart example screens

File last commit:

r1407:41924dd7d514
r1416:8e852a741489
Show More
examples-groupedbarchart.qdoc
39 lines | 1.3 KiB | text/plain | TextLexer
/ doc / src / examples-groupedbarchart.qdoc
sauimone
Fixed category handling of barcharts. Now the categories can be undefined. Updated documentation.
r1208 /*!
\example examples/groupedbarchart
\title GroupedBarChart Example
\subtitle
The example shows how to create simple bar chart. GroupedBarChart shows the data in sets as separate bars, which are grouped in categories.
\image examples_groupedbarchart.png
sauimone
barchart documentation update
r1407
Data that groupedbarchart visualizes, is defined by QBarSet instances. Here we create the sets and append data
to them.
sauimone
Fixed category handling of barcharts. Now the categories can be undefined. Updated documentation.
r1208
\snippet ../examples/groupedbarchart/main.cpp 1
sauimone
barchart documentation update
r1407 We create the series and append the sets to it. The grouped barseries 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.
sauimone
Fixed category handling of barcharts. Now the categories can be undefined. Updated documentation.
r1208
\snippet ../examples/groupedbarchart/main.cpp 2
sauimone
barchart documentation update
r1407 Then we create a chart and add the series to it.
sauimone
Fixed category handling of barcharts. Now the categories can be undefined. Updated documentation.
r1208
\snippet ../examples/groupedbarchart/main.cpp 3
sauimone
barchart documentation update
r1407 We define the categories here and add them to the x-axis.
sauimone
Fixed category handling of barcharts. Now the categories can be undefined. Updated documentation.
r1208
\snippet ../examples/groupedbarchart/main.cpp 4
And we also want to show the legend, so that the data is easier to read.
\snippet ../examples/groupedbarchart/main.cpp 5
Finally we add the chart onto a view.
\snippet ../examples/groupedbarchart/main.cpp 6
And it is ready to be shown in a window.
\snippet ../examples/groupedbarchart/main.cpp 7
*/