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

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

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

YAxis.setPosition介绍

[英]sets the position of the y-labels
[中]设置y标签的位置

代码示例

代码示例来源:origin: PhilJay/MPAndroidChart

y.setLabelCount(6, false);
y.setTextColor(Color.WHITE);
y.setPosition(YAxis.YAxisLabelPosition.INSIDE_CHART);
y.setDrawGridLines(false);
y.setAxisLineColor(Color.WHITE);

代码示例来源:origin: PhilJay/MPAndroidChart

leftAxis.setPosition(YAxis.YAxisLabelPosition.INSIDE_CHART);
leftAxis.setTypeface(tfLight);
leftAxis.setTextColor(ColorTemplate.getHoloBlue());

代码示例来源:origin: PhilJay/MPAndroidChart

leftAxis.setLabelCount(8, false);
leftAxis.setValueFormatter(custom);
leftAxis.setPosition(YAxisLabelPosition.OUTSIDE_CHART);
leftAxis.setSpaceTop(15f);
leftAxis.setAxisMinimum(0f); // this replaces setStartAtZero(true)

代码示例来源:origin: WJKCharlie/MPAndroidChartTest

leftAxis.setPosition(YAxis.YAxisLabelPosition.OUTSIDE_CHART);
leftAxis.setDrawGridLines(false);
leftAxis.setDrawLabels(false);

代码示例来源:origin: WJKCharlie/MPAndroidChartTest

leftAxis.setPosition(YAxis.YAxisLabelPosition.OUTSIDE_CHART);
leftAxis.setDrawGridLines(false);
leftAxis.setDrawLabels(false);

代码示例来源:origin: WJKCharlie/MPAndroidChartTest

leftAxis.setPosition(YAxis.YAxisLabelPosition.OUTSIDE_CHART);
leftAxis.setDrawGridLines(false);
rightAxis.setPosition(YAxis.YAxisLabelPosition.OUTSIDE_CHART);
rightAxis.setDrawGridLines(false);

代码示例来源:origin: zhuanghongji/mp-android-chart

y.setLabelCount(6, false);
y.setTextColor(Color.WHITE);
y.setPosition(YAxis.YAxisLabelPosition.INSIDE_CHART);
y.setDrawGridLines(false);
y.setAxisLineColor(Color.WHITE);

代码示例来源:origin: zhuanghongji/mp-android-chart

private void setLineChart(LineChart chart) {
  chart.setDrawGridBackground(false);
  chart.setDescription("");
  chart.setVisibleXRangeMaximum(9);
  chart.setVisibleYRangeMaximum(150, YAxis.AxisDependency.LEFT);
  // 为chart添加空数据
  chart.setData(new LineData());
  // 设置x轴
  XAxis xAxis = chart.getXAxis();
  xAxis.setEnabled(true);
  xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);
  xAxis.setDrawGridLines(true);
  xAxis.setSpaceBetweenLabels(4);
  // 设置左侧坐标轴
  YAxis leftAxis = chart.getAxisLeft();
  leftAxis.setPosition(YAxis.YAxisLabelPosition.INSIDE_CHART);
  // 设置右侧坐标轴
  YAxis rightAxis = chart.getAxisRight();
  rightAxis.setEnabled(false);
}

代码示例来源:origin: zhuanghongji/mp-android-chart

leftAxis.setPosition(YAxis.YAxisLabelPosition.INSIDE_CHART);
leftAxis.setTypeface(mTfLight);
leftAxis.setTextColor(ColorTemplate.getHoloBlue());

代码示例来源:origin: qqq3/good-weather

yLeft.setPosition(YAxis.YAxisLabelPosition.OUTSIDE_CHART);
yLeft.setDrawAxisLine(false);
yLeft.setDrawGridLines(true);

代码示例来源:origin: qqq3/good-weather

yLeft.setPosition(YAxis.YAxisLabelPosition.OUTSIDE_CHART);
yLeft.setDrawAxisLine(false);
yLeft.setDrawGridLines(true);

代码示例来源:origin: qqq3/good-weather

yLeft.setPosition(YAxis.YAxisLabelPosition.OUTSIDE_CHART);
yLeft.setDrawAxisLine(false);
yLeft.setDrawGridLines(true);

代码示例来源:origin: qqq3/good-weather

yLeft.setPosition(YAxis.YAxisLabelPosition.OUTSIDE_CHART);
yLeft.setDrawAxisLine(false);
yLeft.setDrawGridLines(true);

代码示例来源:origin: thuryn/your-local-weather

yLeft.setPosition(YAxis.YAxisLabelPosition.OUTSIDE_CHART);
yLeft.setDrawAxisLine(false);
yLeft.setDrawGridLines(true);

代码示例来源:origin: thuryn/your-local-weather

yLeft.setPosition(YAxis.YAxisLabelPosition.OUTSIDE_CHART);
yLeft.setDrawAxisLine(false);
yLeft.setDrawGridLines(true);

代码示例来源:origin: zhuanghongji/mp-android-chart

leftAxis.setLabelCount(8, false);
leftAxis.setValueFormatter(custom);
leftAxis.setPosition(YAxisLabelPosition.OUTSIDE_CHART);
leftAxis.setSpaceTop(15f);
leftAxis.setAxisMinimum(0f); // this replaces setStartAtZero(true)

代码示例来源:origin: thuryn/your-local-weather

yLeft.setPosition(YAxis.YAxisLabelPosition.OUTSIDE_CHART);
yLeft.setDrawAxisLine(false);
yLeft.setDrawGridLines(true);

代码示例来源:origin: thuryn/your-local-weather

yLeft.setPosition(YAxis.YAxisLabelPosition.OUTSIDE_CHART);
yLeft.setDrawAxisLine(false);
yLeft.setDrawGridLines(true);

代码示例来源:origin: WJKCharlie/MPAndroidChartTest

leftAxis.setPosition(YAxis.YAxisLabelPosition.OUTSIDE_CHART);
leftAxis.setDrawGridLines(false);
if (showSetValues) {

代码示例来源:origin: WJKCharlie/MPAndroidChartTest

leftAxis.setPosition(YAxis.YAxisLabelPosition.OUTSIDE_CHART);//设置y轴标签显示在外侧
leftAxis.setAxisMinimum(0f);//设置Y轴最小值
leftAxis.setDrawGridLines(false);

相关文章

YAxis类方法