@@ -200,6 +200,7 QChart* ThemeWidget::createAreaChart() const | |||||
200 | area->setName(name + QString::number(nameIndex)); |
|
200 | area->setName(name + QString::number(nameIndex)); | |
201 | nameIndex++; |
|
201 | nameIndex++; | |
202 | chart->addSeries(area); |
|
202 | chart->addSeries(area); | |
|
203 | chart->createDefaultAxes(); | |||
203 | lowerSeries = upperSeries; |
|
204 | lowerSeries = upperSeries; | |
204 | } |
|
205 | } | |
205 |
|
206 | |||
@@ -229,6 +230,7 QChart* ThemeWidget::createBarChart(int valueCount) const | |||||
229 | } |
|
230 | } | |
230 | chart->addSeries(series); |
|
231 | chart->addSeries(series); | |
231 | chart->createDefaultAxes(); |
|
232 | chart->createDefaultAxes(); | |
|
233 | chart->setAxisX(axis, series); | |||
232 |
|
234 | |||
233 | return chart; |
|
235 | return chart; | |
234 | } |
|
236 | } | |
@@ -296,6 +298,7 QChart* ThemeWidget::createSplineChart() const | |||||
296 | series->setName(name + QString::number(nameIndex)); |
|
298 | series->setName(name + QString::number(nameIndex)); | |
297 | nameIndex++; |
|
299 | nameIndex++; | |
298 | chart->addSeries(series); |
|
300 | chart->addSeries(series); | |
|
301 | chart->createDefaultAxes(); | |||
299 | } |
|
302 | } | |
300 | return chart; |
|
303 | return chart; | |
301 | } |
|
304 | } | |
@@ -315,6 +318,7 QChart* ThemeWidget::createScatterChart() const | |||||
315 | series->setName(name + QString::number(nameIndex)); |
|
318 | series->setName(name + QString::number(nameIndex)); | |
316 | nameIndex++; |
|
319 | nameIndex++; | |
317 | chart->addSeries(series); |
|
320 | chart->addSeries(series); | |
|
321 | chart->createDefaultAxes(); | |||
318 | } |
|
322 | } | |
319 | return chart; |
|
323 | return chart; | |
320 | } |
|
324 | } |
@@ -91,6 +91,7 TableWidget::TableWidget(QWidget *parent) | |||||
91 | QCategoriesAxis* axis = new QCategoriesAxis(); |
|
91 | QCategoriesAxis* axis = new QCategoriesAxis(); | |
92 | axis->append(categories); |
|
92 | axis->append(categories); | |
93 |
|
|
93 | chart->createDefaultAxes(); | |
|
94 | chart->setAxisX(axis, series); | |||
94 | //! [6] |
|
95 | //! [6] | |
95 |
|
96 | |||
96 | //! [7] |
|
97 | //! [7] |
@@ -168,7 +168,7 void QValuesAxis::setRange(qreal min, qreal max) | |||||
168 | emit rangeChanged(d->m_min,d->m_max); |
|
168 | emit rangeChanged(d->m_min,d->m_max); | |
169 | emit d->changed(d->m_min, d->m_max, d->m_ticksCount, d->m_niceNumbers); |
|
169 | emit d->changed(d->m_min, d->m_max, d->m_ticksCount, d->m_niceNumbers); | |
170 | } |
|
170 | } | |
171 | d->setRange(min,max); |
|
171 | // d->setRange(min,max); | |
172 | } |
|
172 | } | |
173 |
|
173 | |||
174 | /*! |
|
174 | /*! |
General Comments 0
You need to be logged in to leave comments.
Login now