MPAndroidChart - 在 X 轴上为时间值设置固定间隔
MPAndroidChart - Setting a fixed interval on X axis for a time value
我正在尝试以固定间隔在 X 轴上显示时间。目前 X 轴的行为不像 I want it to. I'm trying to have an interval of 5 minutes. When I zoom 我的观点是在正确的时间戳。
也许你可以使用 setGranularity API:
xAxis.setGranularityEnabled(true);
xAxis.setGranularity(5 * 60 * 1000); // if time is in ms
我正在尝试以固定间隔在 X 轴上显示时间。目前 X 轴的行为不像 I want it to. I'm trying to have an interval of 5 minutes. When I zoom 我的观点是在正确的时间戳。
也许你可以使用 setGranularity API:
xAxis.setGranularityEnabled(true);
xAxis.setGranularity(5 * 60 * 1000); // if time is in ms