statistics: set correct z-value for bars

The bars were set to the z-value of the labels. Not an issue,
since the labels are generated after the bars and therefore
plot later. Still, do the right thing.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-01-05 11:11:56 +01:00 committed by Dirk Hohndel
parent 90129aa26f
commit 598058e21e

View file

@ -188,7 +188,7 @@ BarSeries::Item::Item(QtCharts::QChart *chart, BarSeries *series, double lowerBo
total(total)
{
for (SubItem &item: subitems) {
item.item->setZValue(ZValues::seriesLabels);
item.item->setZValue(ZValues::series);
item.highlight(false, binCount);
}
updatePosition(chart, series, horizontal, stacked, binCount);