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") {
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue