mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Merge pull request #2237 from ripcurlx/fix-chart-rendering
Clear and re-assign series to fix rendering issues.
This commit is contained in:
commit
1a77ee669c
@ -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…
Reference in New Issue
Block a user