com.github.mikephil.charting.components.YAxis.setAxisMinValue()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(96)

本文整理了Java中com.github.mikephil.charting.components.YAxis.setAxisMinValue()方法的一些代码示例,展示了YAxis.setAxisMinValue()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YAxis.setAxisMinValue()方法的具体详情如下:
包路径:com.github.mikephil.charting.components.YAxis
类名称:YAxis
方法名:setAxisMinValue

YAxis.setAxisMinValue介绍

暂无

代码示例

代码示例来源: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.getAxisRight().setAxisMinValue(PitchCalculator.minPitch.floatValue());
chart.getAxisLeft().setAxisMinValue(PitchCalculator.minPitch.floatValue());
chart.getAxisLeft().setAxisMinValue(PitchCalculator.minMalePitch.floatValue());
chart.getAxisRight().setAxisMinValue(PitchCalculator.minMalePitch.floatValue());

相关文章

YAxis类方法