#8450 Qt Charts: generate nicer numbers when auto scaling.

This commit is contained in:
Kristian Bendiksen 2022-02-14 11:39:23 +01:00
parent 79614e09e9
commit 2bea99eb5f

View File

@ -679,6 +679,12 @@ void RiuQtChartsPlotWidget::setAxisAutoScale( RiuPlotAxis axis, bool autoScale )
if ( autoScale )
{
rescaleAxis( axis );
QAbstractAxis* ax = plotAxis( axis );
QValueAxis* valueAxis = dynamic_cast<QValueAxis*>( ax );
if ( valueAxis )
{
valueAxis->applyNiceNumbers();
}
}
}