mirror of
https://github.com/badlogic/heissepreise.git
synced 2024-06-20 07:25:50 +02:00
One last try to fix stepped charts...
This commit is contained in:
parent
dbdf6e2f38
commit
0a97e4d15f
|
@ -179,7 +179,10 @@ class ItemsChart extends View {
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
if (settings.chartType == "stepped") {
|
if (settings.chartType == "stepped") {
|
||||||
dataset.stepped = prices.length >= 2 && prices[0].price != prices[1].price ? "after" : "before";
|
dataset.stepped =
|
||||||
|
prices.length >= 2 && prices[0].price != prices[1].price && prices[prices.length - 2].price != prices[prices.length - 1].price
|
||||||
|
? "after"
|
||||||
|
: "before";
|
||||||
}
|
}
|
||||||
|
|
||||||
return dataset;
|
return dataset;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user