diff --git a/src/charts/chartdataset.cpp b/src/charts/chartdataset.cpp index 6f1dfe0..35361ff 100644 --- a/src/charts/chartdataset.cpp +++ b/src/charts/chartdataset.cpp @@ -78,6 +78,15 @@ void ChartDataSet::addSeries(QAbstractSeries *series) return; } series->d_ptr->setDomain(new XYPolarDomain()); + // Set the correct domain for upper and lower series too + if (series->type() == QAbstractSeries::SeriesTypeArea) { + foreach (QObject *child, series->children()) { + if (qobject_cast(child)) { + QAbstractSeries *childSeries = qobject_cast(child); + childSeries->d_ptr->setDomain(new XYPolarDomain()); + } + } + } } else { series->d_ptr->setDomain(new XYDomain()); }