Don't add new limitlines, clean the existing one before (it could be optimized further by reusing the existing one, probably)

live-activity-data
Daniele Gobbetti 2015-08-31 17:25:23 +02:00
parent 249ff5bf94
commit 9360b81ef3
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ public class WeekStepsChartFragment extends AbstractChartFragment {
data.setValueTextColor(Color.GRAY); //prevent tearing other graph elements with the black text. Another approach would be to hide the values cmpletely with data.setDrawValues(false);
LimitLine target = new LimitLine(mTargetSteps);
barChart.getAxisLeft().getLimitLines().clear();
barChart.getAxisLeft().addLimitLine(target);
setupLegend(barChart);