Fixed display of non-stack bar chart view with empty values in chart.

This commit is contained in:
23rd 2023-12-06 22:47:53 +03:00 committed by John Preston
parent 29c9266ef5
commit f41a3fe01f

View file

@ -69,7 +69,7 @@ void BarChartView::paintChartAndSelected(
const auto &line = c.chartData.lines[i];
auto path = QPainterPath();
for (auto x = localStart; x <= localEnd; x++) {
if (line.y[x] <= 0) {
if (line.y[x] <= 0 && _isStack) {
continue;
}
const auto yPercentage = (line.y[x] - c.heightLimits.min)