mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
parent
d320380e80
commit
190d2d5122
1 changed files with 2 additions and 0 deletions
|
@ -336,6 +336,7 @@ public class OfferBookChartView extends ActivatableViewAndModel<VBox, OfferBookC
|
|||
private void updateChartData() {
|
||||
seriesBuy.getData().clear();
|
||||
seriesSell.getData().clear();
|
||||
areaChart.getData().clear();
|
||||
|
||||
final Optional<XYChart.Data> buyMinOptional = model.getBuyData().stream()
|
||||
.min(Comparator.comparingDouble(o -> (double) o.getXValue()))
|
||||
|
@ -369,6 +370,7 @@ public class OfferBookChartView extends ActivatableViewAndModel<VBox, OfferBookC
|
|||
seriesBuy.getData().addAll(model.getBuyData());
|
||||
//noinspection unchecked
|
||||
seriesSell.getData().addAll(model.getSellData());
|
||||
areaChart.getData().addAll(seriesBuy, seriesSell);
|
||||
}
|
||||
|
||||
private Tuple4<TableView<OfferListItem>, VBox, Button, Label> getOfferTable(OfferPayload.Direction direction) {
|
||||
|
|
Loading…
Add table
Reference in a new issue