本文整理了Java中com.github.mikephil.charting.components.YAxis.setAxisMaxValue()
方法的一些代码示例,展示了YAxis.setAxisMaxValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YAxis.setAxisMaxValue()
方法的具体详情如下:
包路径:com.github.mikephil.charting.components.YAxis
类名称:YAxis
方法名:setAxisMaxValue
暂无
代码示例来源:origin: survivingwithandroid/Surviving-with-android
private void initChartBar(BarChart chart) {
chart.setTouchEnabled(true);
chart.setDrawGridBackground(true);
chart.getAxisRight().setEnabled(false);
chart.setDrawGridBackground(true);
YAxis leftAxis = chart.getAxisLeft();
leftAxis.setAxisMaxValue(100F);
leftAxis.setAxisMinValue(10F);
leftAxis.setStartAtZero(false);
leftAxis.setAxisLineWidth(2);
leftAxis.setDrawGridLines(true);
// X-Axis
XAxis xAxis = chart.getXAxis();
xAxis.resetLabelsToSkip();
xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);
xAxis.setDrawGridLines(true);
}
代码示例来源:origin: survivingwithandroid/Surviving-with-android
private void initChartTemp(LineChart chart) {
chart.setTouchEnabled(true);
chart.setDrawGridBackground(true);
chart.getAxisRight().setEnabled(false);
chart.setDrawGridBackground(true);
YAxis leftAxis = chart.getAxisLeft();
leftAxis.setAxisMaxValue(30F);
leftAxis.setAxisMinValue(10F);
leftAxis.setStartAtZero(false);
leftAxis.setAxisLineWidth(2);
leftAxis.setDrawGridLines(true);
// X-Axis
XAxis xAxis = chart.getXAxis();
xAxis.resetLabelsToSkip();
xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);
xAxis.setDrawGridLines(true);
}
代码示例来源:origin: purrprogramming/voice-pitch-analyzer
chart.getAxisLeft().setAxisMaxValue(PitchCalculator.maxPitch.floatValue());
chart.getAxisRight().setAxisMaxValue(PitchCalculator.maxPitch.floatValue());
chart.getAxisRight().setAxisMinValue(PitchCalculator.minPitch.floatValue());
chart.getAxisLeft().setAxisMinValue(PitchCalculator.minPitch.floatValue());
内容来源于网络,如有侵权,请联系作者删除!