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

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

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

YAxis.addLimitLine介绍

暂无

代码示例

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

yAxis.addLimitLine(ll1);
yAxis.addLimitLine(ll2);

代码示例来源:origin: WenWangAndroid/ChartManager

/**
 * 设置低限制线
 *
 * @param low
 * @param name
 */
public void setLowLimitLine(int low, String name) {
  if (name == null) {
    name = "低限制线";
  }
  LimitLine hightLimit = new LimitLine(low, name);
  hightLimit.setLineWidth(4f);
  hightLimit.setTextSize(10f);
  leftAxis.addLimitLine(hightLimit);
  barChart.invalidate();
}

代码示例来源:origin: WenWangAndroid/ChartManager

/**
 * 设置低限制线
 *
 * @param low
 * @param name
 */
public void setLowLimitLine(int low, String name) {
  if (name == null) {
    name = "低限制线";
  }
  LimitLine hightLimit = new LimitLine(low, name);
  hightLimit.setLineWidth(4f);
  hightLimit.setTextSize(10f);
  leftAxis.addLimitLine(hightLimit);
  lineChart.invalidate();
}

代码示例来源:origin: WenWangAndroid/ChartManager

/**
 * 设置高限制线
 *
 * @param high
 * @param name
 */
public void setHighLimitLine(float high, String name, int color) {
  if (name == null) {
    name = "高限制线";
  }
  LimitLine highLimit = new LimitLine(high, name);
  highLimit.setLineWidth(2f);
  highLimit.setTextSize(10f);
  highLimit.setLineColor(color);
  highLimit.setTextColor(color);
  leftYAxis.addLimitLine(highLimit);
  lineChart.invalidate();
}

代码示例来源:origin: WenWangAndroid/ChartManager

/**
 * 设置高限制线
 *
 * @param high
 * @param name
 */
public void setHightLimitLine(float high, String name, int color) {
  if (name == null) {
    name = "高限制线";
  }
  LimitLine hightLimit = new LimitLine(high, name);
  hightLimit.setLineWidth(4f);
  hightLimit.setTextSize(10f);
  hightLimit.setLineColor(color);
  hightLimit.setTextColor(color);
  leftAxis.addLimitLine(hightLimit);
  barChart.invalidate();
}

代码示例来源:origin: WenWangAndroid/ChartManager

/**
 * 设置低限制线
 *
 * @param low
 * @param name
 */
public void setLowLimitLine(float low, String name, int color) {
  if (name == null) {
    name = "高限制线";
  }
  LimitLine lowLimit = new LimitLine(low, name);
  lowLimit.setLineWidth(2f);
  lowLimit.setTextSize(10f);
  lowLimit.setLineColor(color);
  lowLimit.setTextColor(color);
  leftYAxis.addLimitLine(lowLimit);
  lineChart.invalidate();
}

代码示例来源:origin: WenWangAndroid/ChartManager

/**
 * 设置高限制线
 *
 * @param high
 * @param name
 */
public void setHightLimitLine(float high, String name, int color) {
  if (name == null) {
    name = "高限制线";
  }
  LimitLine hightLimit = new LimitLine(high, name);
  hightLimit.setLineWidth(4f);
  hightLimit.setTextSize(10f);
  hightLimit.setLineColor(color);
  hightLimit.setTextColor(color);
  leftAxis.addLimitLine(hightLimit);
  lineChart.invalidate();
}

代码示例来源:origin: google/walt

line.setTextColor(Color.DKGRAY);
line.setTextSize(10f);
chart.getAxisLeft().addLimitLine(line);

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

leftAxis.addLimitLine(ll1);
leftAxis.addLimitLine(ll2);
leftAxis.setAxisMaximum(200f);
leftAxis.setAxisMinimum(-50f);

相关文章

YAxis类方法