42 Q_PROPERTY(
bool percents READ percents WRITE setPercents)
45 void setPercents(
bool percent);
46 inline bool percents()
const {
return arePercents; }
48 void addPie(
double value,
const QString label, QColor color = QColor());
54 void drawChart(QPainter *painter, QRect viewPort);
57 QString percentLabel(
float percentage);
virtual void drawChart(QPainter *painter, QRect viewPort)=0
Function to draw the chart.
Base class for ECharts.To add values, call addDataSet(). How the values are treated or how many data ...
Definition: echartbase.h:56
Class to draw pie charts.Just add one data set per piece (with one x-value). The x-Values should be t...
Definition: echartpie.h:39
bool percents() const
Definition: echartpie.h:46
#define E_CHARTS_EXPORT
Definition: echarts.h:31
bool arePercents
Definition: echartpie.h:59
double PI
Definition: echartpie.h:60