Skip to content

Commit

Permalink
Delay charts building for trades
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfredKarrer committed Aug 29, 2016
1 parent 8169b0f commit 0931ed9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@

import javax.inject.Inject;
import java.util.Date;
import java.util.concurrent.TimeUnit;

@FxmlView
public class TradesChartsView extends ActivatableViewAndModel<VBox, TradesChartsViewModel> {
Expand Down Expand Up @@ -200,11 +201,12 @@ else if (model.getSelectedCurrencyListItem().isPresent())

priceChart.setAnimated(model.preferences.getUseAnimations());
volumeChart.setAnimated(model.preferences.getUseAnimations());
updateChartData();
priceAxisX.setTickLabelFormatter(getTimeAxisStringConverter());
volumeAxisX.setTickLabelFormatter(getTimeAxisStringConverter());

nrOfTradeStatisticsLabel.setText("Nr. of trades: " + model.tradeStatisticsByCurrency.size());

UserThread.runAfter(this::updateChartData, 100, TimeUnit.MILLISECONDS);
}

@Override
Expand Down

0 comments on commit 0931ed9

Please sign in to comment.