##// END OF EJS Templates
Documentation for QML custom model demo
Documentation for QML custom model demo

File last commit:

r1208:2943560d5819
r1385:c13c825c33e5
Show More
examples-barchart.qdoc
34 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
Fixed category handling of barcharts. Now the categories can be undefined. Updated documentation.
r1208 The example shows how to create simple bar chart. Barchart shows the data in sets as separate bars, which are drawn at the x-axis to the position defined by data.
Michal Klocek
Refactor documentation...
r330
Tero Ahola
Updated bar chart documentation
r971 \image examples_barchart.png
sauimone
Updated barchart examples and documentation. Also bug fix to barchart model
r387
sauimone
Fixed category handling of barcharts. Now the categories can be undefined. Updated documentation.
r1208 Data that barchart visualizes, is defined by QBarSet instances. Here we create some sets and append data
we want to visualize to them. Note that first and third QPointF in each set have smaller intervals at their x coordinates. This will be reflected in the chart.
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
Fixed category handling of barcharts. Now the categories can be undefined. Updated documentation.
r1208 To combine the sets to a chart, we need to create QBarSeries instance. Then we append our barsets to the series.
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
sauimone
Updated barchart examples and documentation. Also bug fix to barchart model
r387
sauimone
Fixed category handling of barcharts. Now the categories can be undefined. Updated documentation.
r1208 Next we create a chart and add the series to it.
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 3
sauimone
Updated barchart examples and documentation. Also bug fix to barchart model
r387
sauimone
Fixed category handling of barcharts. Now the categories can be undefined. Updated documentation.
r1208 We want to have the legend displayed at the bottom of the chart. Also we turn on the nice numbers algorithm on for y-axis.
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
Tero Ahola
Updated bar chart documentation
r971 Finally we add the chart onto a view.
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
And it is ready to be shown in a window.
sauimone
Fixed category handling of barcharts. Now the categories can be undefined. Updated documentation.
r1208 \snippet ../examples/percentbarchart/main.cpp 6
Tero Ahola
Updated bar chart documentation
r971 */