##// END OF EJS Templates
Some todo:s in barseries done. Updated temperaturerecords example to use stacked bar series
Some todo:s in barseries done. Updated temperaturerecords example to use stacked bar series

File last commit:

r1875:431c64e8346f
r1899:d333ed0fc344
Show More
donutbreakdownchart.h
23 lines | 492 B | text/x-c | CLexer
Jani Honkonen
Refactored donutbreakdown example
r1875 #ifndef DONUTBREAKDOWNCHART_H
#define DONUTBREAKDOWNCHART_H
#include <QChart>
#include <QPieSeries>
QTCOMMERCIALCHART_USE_NAMESPACE
class DonutBreakdownChart : public QChart
{
public:
DonutBreakdownChart(QGraphicsItem *parent = 0, Qt::WindowFlags wFlags = 0);
void addBreakdownSeries(QPieSeries *series, QColor color);
private:
void recalculateAngles();
QPieSeries *find(QString seriesName) const;
private:
QPieSeries *mainSeries;
};
#endif // DONUTBREAKDOWNCHART_H