本文整理了Java中com.github.mikephil.charting.components.YAxis.setGridColor()
方法的一些代码示例,展示了YAxis.setGridColor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YAxis.setGridColor()
方法的具体详情如下:
包路径:com.github.mikephil.charting.components.YAxis
类名称:YAxis
方法名:setGridColor
暂无
代码示例来源:origin: thuryn/your-local-weather
yLeft.enableGridDashedLine(5f, 10f, 0f);
yLeft.setTextColor(textColorId);
yLeft.setGridColor(gridColorId);
yLeft.setZeroLineWidth(20f);
if (textSize != null) {
yRight.enableGridDashedLine(5f, 10f, 0f);
yRight.setTextColor(textColorId);
yRight.setGridColor(gridColorId);
yRight.setZeroLineWidth(20f);
if (textSize != null) {
代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart
axisRightLine.setValueLineInside(true);
axisRightLine.setPosition(landscape ? YAxis.YAxisLabelPosition.OUTSIDE_CHART : YAxis.YAxisLabelPosition.INSIDE_CHART);
axisRightLine.setGridColor(ContextCompat.getColor(mContext, R.color.grid_color));
axisRightLine.setTextColor(ContextCompat.getColor(mContext, R.color.axis_text));
axisRightLine.setValueFormatter(new IAxisValueFormatter() {
axisRightBar.setLabelCount(3, true);
axisRightBar.setDrawTopBottomGridLine(false);
axisRightBar.setGridColor(ContextCompat.getColor(mContext, R.color.grid_color));
axisRightBar.setGridLineWidth(0.7f);
axisRightBar.enableGridDashedLine(CommonUtil.dip2px(mContext, 4), CommonUtil.dip2px(mContext, 3), 0);
代码示例来源:origin: qqq3/good-weather
yLeft.setDrawGridLines(true);
yLeft.enableGridDashedLine(5f, 10f, 0f);
yLeft.setGridColor(Color.parseColor("#333333"));
yLeft.setXOffset(15);
yLeft.setValueFormatter(mYAxisFormatter);
代码示例来源:origin: qqq3/good-weather
yLeft.setDrawGridLines(true);
yLeft.enableGridDashedLine(5f, 10f, 0f);
yLeft.setGridColor(Color.parseColor("#333333"));
yLeft.setXOffset(15);
yLeft.setValueFormatter(mYAxisFormatter);
代码示例来源:origin: qqq3/good-weather
yLeft.setDrawGridLines(true);
yLeft.enableGridDashedLine(5f, 10f, 0f);
yLeft.setGridColor(Color.parseColor("#333333"));
yLeft.setXOffset(15);
yLeft.setValueFormatter(mYAxisFormatter);
代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart
axisRightLine.setValueLineInside(true);
axisRightLine.setPosition(landscape ? YAxis.YAxisLabelPosition.OUTSIDE_CHART : YAxis.YAxisLabelPosition.INSIDE_CHART);
axisRightLine.setGridColor(ContextCompat.getColor(mContext, R.color.grid_color));
axisRightLine.setTextColor(ContextCompat.getColor(mContext, R.color.axis_text));
axisRightLine.setValueFormatter(new IAxisValueFormatter() {
axisRightBar.setLabelCount(3, true);
axisRightBar.setDrawTopBottomGridLine(false);
axisRightBar.setGridColor(ContextCompat.getColor(mContext, R.color.grid_color));
axisRightBar.setGridLineWidth(0.7f);
axisRightBar.enableGridDashedLine(CommonUtil.dip2px(mContext, 4), CommonUtil.dip2px(mContext, 3), 0);
代码示例来源:origin: thuryn/your-local-weather
yLeft.enableGridDashedLine(5f, 10f, 0f);
yLeft.setTextColor(PreferenceUtil.getTextColor(this));
yLeft.setGridColor(PreferenceUtil.getGraphGridColor(this));
yLeft.setXOffset(15);
yLeft.setValueFormatter(rainSnowYAxisValueFormatter);
代码示例来源:origin: qqq3/good-weather
yLeft.setDrawGridLines(true);
yLeft.enableGridDashedLine(5f, 10f, 0f);
yLeft.setGridColor(Color.parseColor("#333333"));
yLeft.setXOffset(15);
yLeft.setValueFormatter(mYAxisFormatter);
代码示例来源:origin: thuryn/your-local-weather
yLeft.enableGridDashedLine(5f, 10f, 0f);
yLeft.setTextColor(PreferenceUtil.getTextColor(this));
yLeft.setGridColor(PreferenceUtil.getGraphGridColor(this));
yLeft.setXOffset(15);
yLeft.setValueFormatter(rainSnowYAxisValueFormatter);
代码示例来源:origin: thuryn/your-local-weather
yLeft.enableGridDashedLine(5f, 10f, 0f);
yLeft.setTextColor(PreferenceUtil.getTextColor(this));
yLeft.setGridColor(PreferenceUtil.getGraphGridColor(this));
yLeft.setXOffset(15);
yLeft.setValueFormatter(rainSnowYAxisValueFormatter);
代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart
axisLeftK.enableGridDashedLine(CommonUtil.dip2px(mContext, 4), CommonUtil.dip2px(mContext, 3), 0);
axisLeftK.setTextColor(ContextCompat.getColor(mContext, R.color.axis_text));
axisLeftK.setGridColor(ContextCompat.getColor(mContext, R.color.grid_color));
axisLeftK.setGridLineWidth(0.7f);
axisLeftK.setValueLineInside(true);
axisRightBar.setLabelCount(3, true);
axisRightBar.setDrawTopBottomGridLine(false);
axisRightBar.setGridColor(ContextCompat.getColor(mContext, R.color.grid_color));
axisRightBar.setGridLineWidth(0.7f);
axisRightBar.enableGridDashedLine(CommonUtil.dip2px(mContext, 4), CommonUtil.dip2px(mContext, 3), 0);
代码示例来源:origin: thuryn/your-local-weather
yLeft.enableGridDashedLine(5f, 10f, 0f);
yLeft.setTextColor(PreferenceUtil.getTextColor(this));
yLeft.setGridColor(PreferenceUtil.getGraphGridColor(this));
yLeft.setXOffset(15);
yLeft.setValueFormatter(rainSnowYAxisValueFormatter);
代码示例来源:origin: thuryn/your-local-weather
yLeft.enableGridDashedLine(5f, 10f, 0f);
yLeft.setTextColor(PreferenceUtil.getTextColor(this));
yLeft.setGridColor(PreferenceUtil.getGraphGridColor(this));
yLeft.setXOffset(15);
yLeft.setValueFormatter(new YAxisValueFormatter(locale, 2, TemperatureUtil.getTemperatureUnit(this)));
代码示例来源:origin: thuryn/your-local-weather
yLeft.enableGridDashedLine(5f, 10f, 0f);
yLeft.setTextColor(PreferenceUtil.getTextColor(this));
yLeft.setGridColor(PreferenceUtil.getGraphGridColor(this));
yLeft.setXOffset(15);
yLeft.setValueFormatter(new YAxisValueFormatter(locale, 2, AppPreference.getWindUnit(this)));
代码示例来源:origin: thuryn/your-local-weather
yLeft.enableGridDashedLine(5f, 10f, 0f);
yLeft.setTextColor(PreferenceUtil.getTextColor(this));
yLeft.setGridColor(PreferenceUtil.getGraphGridColor(this));
yLeft.setXOffset(15);
yLeft.setValueFormatter(new YAxisValueFormatter(locale, 2, AppPreference.getPressureUnit(this)));
内容来源于网络,如有侵权,请联系作者删除!