##// END OF EJS Templates
Now using percent bar series in theme demo
Tero Ahola -
r521:1e41568aab09
parent child
Show More
@@ -4,7 +4,7
4 #include <qchartview.h>
4 #include <qchartview.h>
5 #include <qpieseries.h>
5 #include <qpieseries.h>
6 #include <qpieslice.h>
6 #include <qpieslice.h>
7 #include <qbarseries.h>
7 #include <qpercentbarseries.h>
8 #include <qbarset.h>
8 #include <qbarset.h>
9 #include <QGridLayout>
9 #include <QGridLayout>
10 #include <QFormLayout>
10 #include <QFormLayout>
@@ -92,7 +92,7 public:
92 // TODO: categories
92 // TODO: categories
93 for (int i(0); i < valueCount; i++)
93 for (int i(0); i < valueCount; i++)
94 categories << QString::number(i);
94 categories << QString::number(i);
95 QBarSeries* series = new QBarSeries(categories, chart);
95 QPercentBarSeries* series = new QPercentBarSeries(categories, chart);
96 for (int i(0); i < m_dataTable.count(); i++) {
96 for (int i(0); i < m_dataTable.count(); i++) {
97 QBarSet *set = new QBarSet("Set" + QString::number(i));
97 QBarSet *set = new QBarSet("Set" + QString::number(i));
98 foreach (Data data, m_dataTable[i])
98 foreach (Data data, m_dataTable[i])
General Comments 0
You need to be logged in to leave comments. Login now