mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-26 10:35:50 +01:00
Fix only the first day label being displayed in Week Steps charts
This commit is contained in:
parent
79eb4f32df
commit
2d4645f6cc
@ -346,7 +346,10 @@ public abstract class AbstractChartFragment extends AbstractGBFragment {
|
|||||||
// enable touch gestures
|
// enable touch gestures
|
||||||
chart.setTouchEnabled(true);
|
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);
|
setupLegend(chart);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user