"Fix" stepping of single item price lines with magic...

This commit is contained in:
Mario Zechner 2023-06-16 00:48:51 +02:00
parent 258936dc0c
commit c97c8116f6

View File

@ -118,7 +118,9 @@ class ItemsChart extends View {
}),
};
if (settings.chartType == "stepped") {
dataset.stepped = "before";
// I don't know why this is necessary...
if (dataset.label.startsWith("Preissumme")) dataset.stepped = "before";
else dataset.stepped = "after";
}
return dataset;