gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-17 08:52:40 25 4
gpt4 key购买 nike

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

YAxis.setDrawGridLines介绍

暂无

代码示例

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

rightAxis.setTypeface(mTf);
rightAxis.setLabelCount(5, false);
rightAxis.setDrawGridLines(false);
rightAxis.setAxisMinimum(0f); // this replaces setStartAtZero(true)

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

xAxis.setDrawGridLines(false);
chart.getAxisLeft().setDrawGridLines(false);

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

rightAxis.setDrawGridLines(false);

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

leftAxis.setDrawGridLines(false);
leftAxis.setDrawAxisLine(false);

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

@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
      WindowManager.LayoutParams.FLAG_FULLSCREEN);
  setContentView(R.layout.activity_performance_linechart);
  setTitle("PerformanceLineChart");
  tvCount = findViewById(R.id.tvValueCount);
  seekBarValues = findViewById(R.id.seekbarValues);
  seekBarValues.setOnSeekBarChangeListener(this);
  chart = findViewById(R.id.chart1);
  chart.setDrawGridBackground(false);
  // no description text
  chart.getDescription().setEnabled(false);
  // enable touch gestures
  chart.setTouchEnabled(true);
  // enable scaling and dragging
  chart.setDragEnabled(true);
  chart.setScaleEnabled(true);
  // if disabled, scaling can be done on x- and y-axis separately
  chart.setPinchZoom(false);
  chart.getAxisLeft().setDrawGridLines(false);
  chart.getAxisRight().setEnabled(false);
  chart.getXAxis().setDrawGridLines(true);
  chart.getXAxis().setDrawAxisLine(false);
  seekBarValues.setProgress(9000);
  // don't forget to refresh the drawing
  chart.invalidate();
}

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

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

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

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

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

chart.getAxisRight().setAxisMaximum(25f);
chart.getAxisRight().setAxisMinimum(-25f);
chart.getAxisRight().setDrawGridLines(false);
chart.getAxisRight().setDrawZeroLine(true);
chart.getAxisRight().setLabelCount(7, false);

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

@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
      WindowManager.LayoutParams.FLAG_FULLSCREEN);
  setContentView(R.layout.activity_scrollview);
  setTitle("ScrollViewActivity");
  chart = findViewById(R.id.chart1);
  chart.getDescription().setEnabled(false);
  // scaling can now only be done on x- and y-axis separately
  chart.setPinchZoom(false);
  chart.setDrawBarShadow(false);
  chart.setDrawGridBackground(false);
  XAxis xAxis = chart.getXAxis();
  xAxis.setPosition(XAxisPosition.BOTTOM);
  xAxis.setDrawGridLines(false);
  chart.getAxisLeft().setDrawGridLines(false);
  chart.getLegend().setEnabled(false);
  setData(10);
  chart.setFitBars(true);
}

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

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

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

leftAxis.setTypeface(tfLight);
leftAxis.setValueFormatter(new LargeValueFormatter());
leftAxis.setDrawGridLines(false);
leftAxis.setSpaceTop(35f);
leftAxis.setAxisMinimum(0f); // this replaces setStartAtZero(true)

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

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

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

leftAxis.setTypeface(tfLight);
leftAxis.setTextColor(ColorTemplate.getHoloBlue());
leftAxis.setDrawGridLines(true);
leftAxis.setGranularityEnabled(true);
leftAxis.setAxisMinimum(0f);

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

leftAxis.setAxisMaximum(200f);
leftAxis.setAxisMinimum(0f);
leftAxis.setDrawGridLines(true);
leftAxis.setGranularityEnabled(true);
rightAxis.setAxisMaximum(900);
rightAxis.setAxisMinimum(-200);
rightAxis.setDrawGridLines(false);
rightAxis.setDrawZeroLine(false);
rightAxis.setGranularityEnabled(false);

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

leftAxis.setDrawAxisLine(false);
leftAxis.setDrawZeroLine(false);
leftAxis.setDrawGridLines(false);

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

rightAxis.setDrawGridLines(false);
rightAxis.setTypeface(tfLight);
rightAxis.setLabelCount(8, false);

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

rightAxis.setDrawGridLines(false);
rightAxis.setTypeface(tfLight);
rightAxis.setLabelCount(6, false);

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

rightAxis.setDrawGridLines(false);
rightAxis.setAxisMinimum(0f); // this replaces setStartAtZero(true)
leftAxis.setDrawGridLines(false);
leftAxis.setAxisMinimum(0f); // this replaces setStartAtZero(true)

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

leftAxis.setAxisMaximum(100f);
leftAxis.setAxisMinimum(0f);
leftAxis.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);
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com