##// END OF EJS Templates
fixed stackedbar drilldown series. categories are updated for xaxis
fixed stackedbar drilldown series. categories are updated for xaxis

File last commit:

r1407:41924dd7d514
r1414:f1a857465d43
Show More
examples-barchart.qdoc
36 lines | 1.3 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
sauimone
barchart documentation update
r1407 we want to visualize to them. Note that x positions are not in even intervals and this will be reflected in the chart.
If x positions aren't defined, then the index of value is assumed to be x position.
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.
sauimone
barchart documentation update
r1407 We also set the title for 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 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 */