My code uses QtCharts.
this has - even in the latest docs - the method axisX()
I use this for
chart->axisX()->setRange(0, data.size());
chart->axisY()->setRange(0, max);
However with Qt 5.12 I get this message
warning: 'QtCharts::QAbstractAxis* QtCharts::QChart::axisY(QtCharts::QAbstractSeries*) const' is deprecated
How am I supposed to replace the code with something not deprecated?