Fix only the first day label being displayed in Week Steps charts

This commit is contained in:
cpfeiffer 2016-11-24 23:34:33 +01:00
parent 79eb4f32df
commit 2d4645f6cc
1 changed files with 4 additions and 1 deletions

View File

@ -346,7 +346,10 @@ public abstract class AbstractChartFragment extends AbstractGBFragment {
// enable touch gestures
chart.setTouchEnabled(true);
chart.getXAxis().setGranularity(60*5);
// commented out: this has weird bugs/sideeffects at least on WeekStepsCharts
// where only the first Day-label is drawn, because AxisRenderer.computeAxisValues(float,float)
// appears to have an overflow when calculating 'n' (number of entries)
// chart.getXAxis().setGranularity(60*5);
setupLegend(chart);
}