##// END OF EJS Templates
updated documentation and examples for barcharts
updated documentation and examples for barcharts

File last commit:

r325:043a715b3681
r325:043a715b3681
Show More
qpercentbarchartseries.cpp
51 lines | 1.5 KiB | text/x-c | CppLexer
/ src / barchart / qpercentbarchartseries.cpp
#include "qpercentbarchartseries.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
/*!
\class QPercentBarChartSeries
\brief part of QtCommercial chart API.
QPercentBarChartSeries represents a series of data shown as bars. Each bar of QBarSet is shown as percentage
of all bars in category. One QPercentBarChartSeries can contain multible QBarSet data sets.
QBarChartSeries groups the data from sets to categories, which are defined by QBarCategory class.
\mainclass
Example on how to create category:
\snippet ../example/barchart/main.cpp 1
Example on how to create sets of data:
\snippet ../example/barchart/main.cpp 2
Example on how to add sets to bar chart:
\snippet ../example/barchart/main.cpp 3
Example on how to enable tooltip and floating values:
\snippet ../example/barchart/main.cpp 4
Example on how to create view and apply theme:
\snippet ../example/barchart/main.cpp 5
\sa QBarCategory, QBarSet, QStackedBarChartSeries, QBarChartSeries
*/
/*!
\fn virtual QChartSeriesType QPercentBarChartSeries::type() const
\brief Returns type of series.
\sa QChartSeries, QChartSeriesType
*/
/*!
Constructs empty QPercentBarChartSeries. Parameter \a category defines the categories for chart.
QPercentBarChartSeries is QObject which is a child of a \a parent.
*/
QPercentBarChartSeries::QPercentBarChartSeries(QBarCategory *category, QObject *parent)
: QBarChartSeries(category, parent)
{
}
#include "moc_qpercentbarchartseries.cpp"
QTCOMMERCIALCHART_END_NAMESPACE