1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-26 02:25:50 +01:00

Font size bar chart (#645)

Increas font size bar chart

small fix that improves the readability of the values on bar charts
This commit is contained in:
Alberto 2017-04-08 22:58:58 +02:00 committed by Carsten Pfeiffer
parent 2feb3bed47
commit 155ce5be02

View File

@ -115,6 +115,7 @@ public abstract class AbstractWeekChartFragment extends AbstractChartFragment {
BarData barData = new BarData(set); BarData barData = new BarData(set);
barData.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); barData.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);
barData.setValueTextSize(10f);
LimitLine target = new LimitLine(mTargetValue); LimitLine target = new LimitLine(mTargetValue);
barChart.getAxisLeft().removeAllLimitLines(); barChart.getAxisLeft().removeAllLimitLines();