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

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

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

YAxis.setEnabled介绍

暂无

代码示例

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

@Override
  public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View v = inflater.inflate(R.layout.frag_simple_line, container, false);

    chart = v.findViewById(R.id.lineChart1);

    chart.getDescription().setEnabled(false);

    chart.setDrawGridBackground(false);

    chart.setData(getComplexity());
    chart.animateX(3000);

    Typeface tf = Typeface.createFromAsset(context.getAssets(), "OpenSans-Light.ttf");

    Legend l = chart.getLegend();
    l.setTypeface(tf);

    YAxis leftAxis = chart.getAxisLeft();
    leftAxis.setTypeface(tf);

    chart.getAxisRight().setEnabled(false);

    XAxis xAxis = chart.getXAxis();
    xAxis.setEnabled(false);

    return v;
  }
}

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

leftAxis.setAxisMinimum(-1.2f);
chart.getAxisRight().setEnabled(false);

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

@Override
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  View v = inflater.inflate(R.layout.frag_simple_bar, container, false);
  // create a new chart object
  chart = new BarChart(getActivity());
  chart.getDescription().setEnabled(false);
  chart.setOnChartGestureListener(this);
  MyMarkerView mv = new MyMarkerView(getActivity(), R.layout.custom_marker_view);
  mv.setChartView(chart); // For bounds control
  chart.setMarker(mv);
  chart.setDrawGridBackground(false);
  chart.setDrawBarShadow(false);
  Typeface tf = Typeface.createFromAsset(context.getAssets(), "OpenSans-Light.ttf");
  chart.setData(generateBarData(1, 20000, 12));
  Legend l = chart.getLegend();
  l.setTypeface(tf);
  YAxis leftAxis = chart.getAxisLeft();
  leftAxis.setTypeface(tf);
  leftAxis.setAxisMinimum(0f); // this replaces setStartAtZero(true)
  chart.getAxisRight().setEnabled(false);
  XAxis xAxis = chart.getXAxis();
  xAxis.setEnabled(false);
  // programmatically add the chart
  FrameLayout parent = v.findViewById(R.id.parentLayout);
  parent.addView(chart);
  return v;
}

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

rightAxis.setEnabled(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.setAxisLineColor(Color.WHITE);
chart.getAxisRight().setEnabled(false);

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

chart.setDrawBorders(false);
chart.getAxisLeft().setEnabled(false);
chart.getAxisRight().setDrawAxisLine(false);
chart.getAxisRight().setDrawGridLines(false);

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

chart.setHighlightFullBarEnabled(false);
chart.getAxisLeft().setEnabled(false);
chart.getAxisRight().setAxisMaximum(25f);
chart.getAxisRight().setAxisMinimum(-25f);

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

yl.setAxisMinimum(0f); // this replaces setStartAtZero(true)
chart.getAxisRight().setEnabled(false);

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

yl.setDrawZeroLine(false);
chart.getAxisRight().setEnabled(false);

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

rightAxis.setEnabled(false);

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

leftAxis.setValueFormatter(new MyValueFormatter("K"));
leftAxis.setAxisMinimum(0f); // this replaces setStartAtZero(true)
chart.getAxisRight().setEnabled(false);

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

l.setEnabled(false);
chart.getAxisLeft().setEnabled(false);
chart.getAxisLeft().setSpaceTop(40);
chart.getAxisLeft().setSpaceBottom(40);
chart.getAxisRight().setEnabled(false);

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

leftAxis.setAxisMinimum(0f); // this replaces setStartAtZero(true)
chart.getAxisRight().setEnabled(false);

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

left.setZeroLineColor(Color.GRAY);
left.setZeroLineWidth(0.7f);
chart.getAxisRight().setEnabled(false);
chart.getLegend().setEnabled(false);

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

rightAxis.setEnabled(false);

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

leftAxis.setDrawGridLines(false);
chart.getAxisRight().setEnabled(false);

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

chart.getAxisRight().setEnabled(false);

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

chart.getYAxis().setEnabled(!chart.getYAxis().isEnabled());
chart.invalidate();
break;

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

rightAxis.setEnabled(false);

相关文章

YAxis类方法