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

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

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

YAxis.setDrawAxisLine介绍

暂无

代码示例

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

leftAxis.setDrawAxisLine(false);

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

chart.getAxisRight().setDrawAxisLine(false);
chart.getAxisRight().setDrawGridLines(false);
chart.getXAxis().setDrawAxisLine(false);

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

yl.setDrawAxisLine(true);
yl.setDrawGridLines(true);
yl.setAxisMinimum(0f); // this replaces setStartAtZero(true)
yr.setDrawAxisLine(true);
yr.setDrawGridLines(false);
yr.setAxisMinimum(0f); // this replaces setStartAtZero(true)

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

left.setSpaceTop(25f);
left.setSpaceBottom(25f);
left.setDrawAxisLine(false);
left.setDrawGridLines(false);
left.setDrawZeroLine(true); // draw a zero line

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

leftAxis.setAxisMaximum(900f);
leftAxis.setAxisMinimum(-250f);
leftAxis.setDrawAxisLine(false);
leftAxis.setDrawZeroLine(false);
leftAxis.setDrawGridLines(false);

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

leftAxis.setDrawAxisLine(false);

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

yl.setDrawAxisLine(true);
yl.setDrawGridLines(true);
yl.setAxisMinimum(0f); // this replaces setStartAtZero(true)
yr.setDrawAxisLine(true);
yr.setDrawGridLines(false);
yr.setAxisMinimum(0f); // this replaces setStartAtZero(true)

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

@SuppressWarnings("ButterKnifeInjectNotCalled")
@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  mChart.setDrawGridBackground(false);
  mChart.getDescription().setEnabled(false);
  mChart.setDrawBorders(false);
  mChart.getAxisLeft().setEnabled(false);
  mChart.getAxisRight().setDrawAxisLine(false);
  mChart.getAxisRight().setDrawGridLines(false);
  mChart.getXAxis().setDrawAxisLine(false);
  mChart.getXAxis().setDrawGridLines(false);
  // enable touch gestures
  mChart.setTouchEnabled(true);
  // enable scaling and dragging
  mChart.setDragEnabled(true);
  mChart.setScaleEnabled(true);
  // if disabled, scaling can be done on x- and y-axis separately
  mChart.setPinchZoom(false);
  mSeekBarX.setProgress(20);
  mSeekBarY.setProgress(100);
  Legend l = mChart.getLegend();
  l.setVerticalAlignment(Legend.LegendVerticalAlignment.TOP);
  l.setHorizontalAlignment(Legend.LegendHorizontalAlignment.RIGHT);
  l.setOrientation(Legend.LegendOrientation.VERTICAL);
  l.setDrawInside(false);
}

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

left.setSpaceTop(25f);
left.setSpaceBottom(25f);
left.setDrawAxisLine(false);
left.setDrawGridLines(false);
left.setDrawZeroLine(true); // draw a zero line

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

yLeft.setEnabled(true);
yLeft.setPosition(YAxis.YAxisLabelPosition.OUTSIDE_CHART);
yLeft.setDrawAxisLine(false);
yLeft.setDrawGridLines(true);
yLeft.enableGridDashedLine(5f, 10f, 0f);

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

yLeft.setEnabled(true);
yLeft.setPosition(YAxis.YAxisLabelPosition.OUTSIDE_CHART);
yLeft.setDrawAxisLine(false);
yLeft.setDrawGridLines(true);
yLeft.enableGridDashedLine(5f, 10f, 0f);

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

rightAxis.setDrawAxisLine(false); // 右侧坐标轴线
rightAxis.setDrawLabels(false); // 右侧坐标轴数组Label

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

yLeft.setEnabled(true);
yLeft.setPosition(YAxis.YAxisLabelPosition.OUTSIDE_CHART);
yLeft.setDrawAxisLine(false);
yLeft.setDrawGridLines(true);
yLeft.enableGridDashedLine(5f, 10f, 0f);

代码示例来源:origin: Sparker0i/Weather

yAxisRight.setDrawAxisLine(false);
yAxisRight.setDrawLabels(false);
yAxisRight.setTextColor(Color.WHITE);

代码示例来源:origin: Sparker0i/Weather

yAxisRight.setDrawAxisLine(false);
yAxisRight.setDrawLabels(false);
yAxisRight.setTextColor(Color.WHITE);

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

@SuppressWarnings("ButterKnifeInjectNotCalled")
@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  mChart.setBackgroundColor(Color.WHITE);
  mChart.setGridBackgroundColor(mFillColor);
  mChart.setDrawGridBackground(true);
  mChart.setDrawBorders(true);
  // no description text
  mChart.getDescription().setEnabled(false);
  // if disabled, scaling can be done on x- and y-axis separately
  mChart.setPinchZoom(false);
  Legend l = mChart.getLegend();
  l.setEnabled(false);
  XAxis xAxis = mChart.getXAxis();
  xAxis.setEnabled(false);
  YAxis leftAxis = mChart.getAxisLeft();
  leftAxis.setAxisMaximum(900f);
  leftAxis.setAxisMinimum(-250f);
  leftAxis.setDrawAxisLine(false);
  leftAxis.setDrawZeroLine(false);
  leftAxis.setDrawGridLines(false);
  mChart.getAxisRight().setEnabled(false);
  // add data
  setData(100, 60);
  mChart.invalidate();
}

代码示例来源:origin: Sparker0i/Weather

yAxisRight.setDrawAxisLine(false);
yAxisRight.setDrawLabels(false);
yAxisRight.setTextColor(Color.WHITE);

代码示例来源:origin: Sparker0i/Weather

yAxisRight.setDrawAxisLine(false);
yAxisRight.setDrawLabels(false);
yAxisRight.setTextColor(Color.WHITE);

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

leftAxis.setDrawGridLines(false);
leftAxis.setDrawLabels(false);//禁止绘制y轴标签
leftAxis.setDrawAxisLine(false);//禁止绘制y轴

代码示例来源:origin: Sparker0i/Weather

yAxisRight.setDrawAxisLine(false);
yAxisRight.setDrawLabels(false);
yAxisRight.setTextColor(Color.WHITE);

相关文章

YAxis类方法