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

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

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

YAxis.setGridColor介绍

暂无

代码示例

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

  1. yLeft.enableGridDashedLine(5f, 10f, 0f);
  2. yLeft.setTextColor(textColorId);
  3. yLeft.setGridColor(gridColorId);
  4. yLeft.setZeroLineWidth(20f);
  5. if (textSize != null) {
  6. yRight.enableGridDashedLine(5f, 10f, 0f);
  7. yRight.setTextColor(textColorId);
  8. yRight.setGridColor(gridColorId);
  9. yRight.setZeroLineWidth(20f);
  10. if (textSize != null) {

代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart

  1. axisRightLine.setValueLineInside(true);
  2. axisRightLine.setPosition(landscape ? YAxis.YAxisLabelPosition.OUTSIDE_CHART : YAxis.YAxisLabelPosition.INSIDE_CHART);
  3. axisRightLine.setGridColor(ContextCompat.getColor(mContext, R.color.grid_color));
  4. axisRightLine.setTextColor(ContextCompat.getColor(mContext, R.color.axis_text));
  5. axisRightLine.setValueFormatter(new IAxisValueFormatter() {
  6. axisRightBar.setLabelCount(3, true);
  7. axisRightBar.setDrawTopBottomGridLine(false);
  8. axisRightBar.setGridColor(ContextCompat.getColor(mContext, R.color.grid_color));
  9. axisRightBar.setGridLineWidth(0.7f);
  10. axisRightBar.enableGridDashedLine(CommonUtil.dip2px(mContext, 4), CommonUtil.dip2px(mContext, 3), 0);

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

  1. yLeft.setDrawGridLines(true);
  2. yLeft.enableGridDashedLine(5f, 10f, 0f);
  3. yLeft.setGridColor(Color.parseColor("#333333"));
  4. yLeft.setXOffset(15);
  5. yLeft.setValueFormatter(mYAxisFormatter);

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

  1. yLeft.setDrawGridLines(true);
  2. yLeft.enableGridDashedLine(5f, 10f, 0f);
  3. yLeft.setGridColor(Color.parseColor("#333333"));
  4. yLeft.setXOffset(15);
  5. yLeft.setValueFormatter(mYAxisFormatter);

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

  1. yLeft.setDrawGridLines(true);
  2. yLeft.enableGridDashedLine(5f, 10f, 0f);
  3. yLeft.setGridColor(Color.parseColor("#333333"));
  4. yLeft.setXOffset(15);
  5. yLeft.setValueFormatter(mYAxisFormatter);

代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart

  1. axisRightLine.setValueLineInside(true);
  2. axisRightLine.setPosition(landscape ? YAxis.YAxisLabelPosition.OUTSIDE_CHART : YAxis.YAxisLabelPosition.INSIDE_CHART);
  3. axisRightLine.setGridColor(ContextCompat.getColor(mContext, R.color.grid_color));
  4. axisRightLine.setTextColor(ContextCompat.getColor(mContext, R.color.axis_text));
  5. axisRightLine.setValueFormatter(new IAxisValueFormatter() {
  6. axisRightBar.setLabelCount(3, true);
  7. axisRightBar.setDrawTopBottomGridLine(false);
  8. axisRightBar.setGridColor(ContextCompat.getColor(mContext, R.color.grid_color));
  9. axisRightBar.setGridLineWidth(0.7f);
  10. axisRightBar.enableGridDashedLine(CommonUtil.dip2px(mContext, 4), CommonUtil.dip2px(mContext, 3), 0);

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

  1. yLeft.enableGridDashedLine(5f, 10f, 0f);
  2. yLeft.setTextColor(PreferenceUtil.getTextColor(this));
  3. yLeft.setGridColor(PreferenceUtil.getGraphGridColor(this));
  4. yLeft.setXOffset(15);
  5. yLeft.setValueFormatter(rainSnowYAxisValueFormatter);

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

  1. yLeft.setDrawGridLines(true);
  2. yLeft.enableGridDashedLine(5f, 10f, 0f);
  3. yLeft.setGridColor(Color.parseColor("#333333"));
  4. yLeft.setXOffset(15);
  5. yLeft.setValueFormatter(mYAxisFormatter);

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

  1. yLeft.enableGridDashedLine(5f, 10f, 0f);
  2. yLeft.setTextColor(PreferenceUtil.getTextColor(this));
  3. yLeft.setGridColor(PreferenceUtil.getGraphGridColor(this));
  4. yLeft.setXOffset(15);
  5. yLeft.setValueFormatter(rainSnowYAxisValueFormatter);

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

  1. yLeft.enableGridDashedLine(5f, 10f, 0f);
  2. yLeft.setTextColor(PreferenceUtil.getTextColor(this));
  3. yLeft.setGridColor(PreferenceUtil.getGraphGridColor(this));
  4. yLeft.setXOffset(15);
  5. yLeft.setValueFormatter(rainSnowYAxisValueFormatter);

代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart

  1. axisLeftK.enableGridDashedLine(CommonUtil.dip2px(mContext, 4), CommonUtil.dip2px(mContext, 3), 0);
  2. axisLeftK.setTextColor(ContextCompat.getColor(mContext, R.color.axis_text));
  3. axisLeftK.setGridColor(ContextCompat.getColor(mContext, R.color.grid_color));
  4. axisLeftK.setGridLineWidth(0.7f);
  5. axisLeftK.setValueLineInside(true);
  6. axisRightBar.setLabelCount(3, true);
  7. axisRightBar.setDrawTopBottomGridLine(false);
  8. axisRightBar.setGridColor(ContextCompat.getColor(mContext, R.color.grid_color));
  9. axisRightBar.setGridLineWidth(0.7f);
  10. axisRightBar.enableGridDashedLine(CommonUtil.dip2px(mContext, 4), CommonUtil.dip2px(mContext, 3), 0);

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

  1. yLeft.enableGridDashedLine(5f, 10f, 0f);
  2. yLeft.setTextColor(PreferenceUtil.getTextColor(this));
  3. yLeft.setGridColor(PreferenceUtil.getGraphGridColor(this));
  4. yLeft.setXOffset(15);
  5. yLeft.setValueFormatter(rainSnowYAxisValueFormatter);

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

  1. yLeft.enableGridDashedLine(5f, 10f, 0f);
  2. yLeft.setTextColor(PreferenceUtil.getTextColor(this));
  3. yLeft.setGridColor(PreferenceUtil.getGraphGridColor(this));
  4. yLeft.setXOffset(15);
  5. yLeft.setValueFormatter(new YAxisValueFormatter(locale, 2, TemperatureUtil.getTemperatureUnit(this)));

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

  1. yLeft.enableGridDashedLine(5f, 10f, 0f);
  2. yLeft.setTextColor(PreferenceUtil.getTextColor(this));
  3. yLeft.setGridColor(PreferenceUtil.getGraphGridColor(this));
  4. yLeft.setXOffset(15);
  5. yLeft.setValueFormatter(new YAxisValueFormatter(locale, 2, AppPreference.getWindUnit(this)));

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

  1. yLeft.enableGridDashedLine(5f, 10f, 0f);
  2. yLeft.setTextColor(PreferenceUtil.getTextColor(this));
  3. yLeft.setGridColor(PreferenceUtil.getGraphGridColor(this));
  4. yLeft.setXOffset(15);
  5. yLeft.setValueFormatter(new YAxisValueFormatter(locale, 2, AppPreference.getPressureUnit(this)));

相关文章

YAxis类方法