diff --git a/src/chartdataset.cpp b/src/chartdataset.cpp index a3bf5a4..66a54ec 100644 --- a/src/chartdataset.cpp +++ b/src/chartdataset.cpp @@ -111,17 +111,10 @@ void ChartDataSet::addAxis(QAbstractAxis *axis, Qt::Alignment aligment) }; AbstractDomain *newDomain; - if (m_chart && m_chart->chartType() == QChart::ChartTypePolar) { - foreach (QAbstractAxis *existingAxis, axes()) { - if (existingAxis->orientation() == axis->orientation()) { - qWarning() << QObject::tr("Cannot add multiple axes of same orientation to a polar chart!"); - return; - } - } + if (m_chart && m_chart->chartType() == QChart::ChartTypePolar) newDomain = new XYPolarDomain(); - } else { + else newDomain = new XYDomain(); - } QSharedPointer domain(newDomain); axis->d_ptr->initializeDomain(domain.data()); diff --git a/src/qpolarchart.cpp b/src/qpolarchart.cpp index def3198..f5db816 100644 --- a/src/qpolarchart.cpp +++ b/src/qpolarchart.cpp @@ -49,7 +49,10 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE when displaying line, spline, or area series. In such case series don't draw a direct line between the two points, but instead draw a line to and from the center of the chart. - \note Polar charts do not support multiple axes of same orientation. + \note Polar charts draw all axes of same orientation in the same position, so using multiple + axes of same orientation can be confusing, unless the extra axes are only used to customize the + grid (e.g. you can display a highlighted range with a secondary shaded QCategoryAxis or provide + unlabeled subticks with a secondary QValueAxis that has its labels hidden). \sa QChart */