@@ -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 = " |
|
|
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(" |
|
|
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