Various style fixes

The top axis had the default color and was not visible with dark theme.
Enabled granularity of 1 to avoid fractions of steps being shown on the axis.
master
Daniele Gobbetti 2017-08-27 17:26:24 +02:00
parent fe07adb041
commit 41feb008a7
1 changed files with 9 additions and 4 deletions

View File

@ -121,11 +121,16 @@ public class SpeedZonesFragment extends AbstractChartFragment {
mStatsChart.setTouchEnabled(false);
mStatsChart.getDescription().setText("");
XAxis x = mStatsChart.getXAxis();
x.setTextColor(CHART_TEXT_COLOR);
XAxis right = mStatsChart.getXAxis(); //believe it or not, the X axis is vertical for HorizontalBarChart
right.setTextColor(CHART_TEXT_COLOR);
YAxis yr = mStatsChart.getAxisRight();
yr.setTextColor(CHART_TEXT_COLOR);
YAxis bottom = mStatsChart.getAxisRight();
bottom.setTextColor(CHART_TEXT_COLOR);
bottom.setGranularity(1f);
YAxis top = mStatsChart.getAxisLeft();
top.setTextColor(CHART_TEXT_COLOR);
top.setGranularity(1f);
}
@Override