##// END OF EJS Templates
Theme example sets and slices renamed (shown if legend enabled)
Tero Ahola -
r945:d3dafb2d19ed
parent child
Show More
@@ -129,7 +129,7 DataTable ThemeWidget::generateRandomData(int listCount,int valueMax,int valueCo
129 129 yValue = yValue + (qreal) (qrand() % valueMax) / (qreal) valueCount;
130 130 QPointF value((j + (qreal) rand() / (qreal) RAND_MAX) * ((qreal) m_valueMax / (qreal) valueCount),
131 131 yValue);
132 QString label = "Item " + QString::number(i) + ":" + QString::number(j);
132 QString label = "Slice " + QString::number(i) + ":" + QString::number(j);
133 133 dataList << Data(value, label);
134 134 }
135 135 dataTable << dataList;
@@ -219,7 +219,7 QChart* ThemeWidget::createBarChart(int valueCount) const
219 219 // QPercentBarSeries* series = new QPercentBarSeries(categories, chart);
220 220 QStackedBarSeries* series = new QStackedBarSeries(categories, chart);
221 221 for (int i(0); i < m_dataTable.count(); i++) {
222 QBarSet *set = new QBarSet("Set" + QString::number(i));
222 QBarSet *set = new QBarSet("Bar set " + QString::number(i));
223 223 foreach (Data data, m_dataTable[i])
224 224 *set << data.first.y();
225 225 series->appendBarSet(set);
General Comments 0
You need to be logged in to leave comments. Login now