##// END OF EJS Templates
renamed QBarCategoryAxis related files
renamed QBarCategoryAxis related files

File last commit:

r1618:fab18ef35094
r1810:62c8384299b9
Show More
examples-barchart.qdoc
39 lines | 1.2 KiB | text/plain | TextLexer
/ doc / src / examples-barchart.qdoc
Michal Klocek
Refactor documentation...
r330 /*!
Tero Ahola
Fixing example documentation
r500 \example examples/barchart
sauimone
Updated barchart examples and documentation. Also bug fix to barchart model
r387 \title BarChart Example
\subtitle
Michal Klocek
Refactor documentation...
r330
sauimone
documentation update
r1618 The example shows how to create a bar chart. BarChart shows the data in sets as separate bars, which are in categories.
Michal Klocek
Refactor documentation...
r330
Tero Ahola
Updated bar chart documentation
r971 \image examples_barchart.png
sauimone
documentation update
r1618
Data that barchart visualizes, is defined by QBarSet instances. Here we create the sets and append data
to them.
sauimone
Updated barchart examples and documentation. Also bug fix to barchart model
r387
sauimone
fixed example paths in barchart documentation
r492 \snippet ../examples/barchart/main.cpp 1
sauimone
Updated barchart examples and documentation. Also bug fix to barchart model
r387
sauimone
documentation update
r1618 We create the series and append the sets to it. The 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
Updated barchart examples and documentation. Also bug fix to barchart model
r387
sauimone
fixed example paths in barchart documentation
r492 \snippet ../examples/barchart/main.cpp 2
Tero Ahola
Updated bar chart documentation
r971
sauimone
documentation update
r1618 Then we create a chart and add the series to it.
sauimone
Updated barchart examples and documentation. Also bug fix to barchart model
r387
sauimone
documentation update
r1618 \snippet ../examples/barchart/main.cpp 3
We define the categories here and add them to QCategoriesAxis which we then set to be the x-axis of the chart.
Tero Ahola
Updated bar chart documentation
r971
sauimone
Fixed category handling of barcharts. Now the categories can be undefined. Updated documentation.
r1208 \snippet ../examples/barchart/main.cpp 4
sauimone
Updated barchart examples and documentation. Also bug fix to barchart model
r387
sauimone
documentation update
r1618 And we also want to show the legend.
Tero Ahola
Updated bar chart documentation
r971
sauimone
Fixed category handling of barcharts. Now the categories can be undefined. Updated documentation.
r1208 \snippet ../examples/barchart/main.cpp 5
Tero Ahola
Updated bar chart documentation
r971
sauimone
documentation update
r1618 Finally we add the chart onto a view.
\snippet ../examples/barchart/main.cpp 6
Tero Ahola
Updated bar chart documentation
r971 And it is ready to be shown in a window.
sauimone
documentation update
r1618 \snippet ../examples/barchart/main.cpp 7
Tero Ahola
Updated bar chart documentation
r971 */