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

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

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

YAxis.setTextColor介绍

暂无

代码示例

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

y.setTypeface(tfLight);
y.setLabelCount(6, false);
y.setTextColor(Color.WHITE);
y.setPosition(YAxis.YAxisLabelPosition.INSIDE_CHART);
y.setDrawGridLines(false);

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

leftAxis.setPosition(YAxis.YAxisLabelPosition.INSIDE_CHART);
leftAxis.setTypeface(tfLight);
leftAxis.setTextColor(ColorTemplate.getHoloBlue());
leftAxis.setDrawGridLines(true);
leftAxis.setGranularityEnabled(true);
leftAxis.setAxisMaximum(170f);
leftAxis.setYOffset(-9f);
leftAxis.setTextColor(Color.rgb(255, 192, 56));

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

leftAxis.setTextColor(ColorTemplate.getHoloBlue());
leftAxis.setAxisMaximum(200f);
leftAxis.setAxisMinimum(0f);
rightAxis.setTextColor(Color.RED);
rightAxis.setAxisMaximum(900);
rightAxis.setAxisMinimum(-200);

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

leftAxis.setTextColor(Color.WHITE);
leftAxis.setAxisMaximum(100f);
leftAxis.setAxisMinimum(0f);

代码示例来源:origin: fossasia/pslab-android

left.setTextColor(Color.WHITE);
left.setGranularity(1f);
left.setTextSize(12f);

代码示例来源:origin: fossasia/pslab-android

left.setTextColor(Color.WHITE);
left.setGranularity(1f);
left.setTextSize(12f);

代码示例来源:origin: fossasia/pslab-android

left.setTextColor(Color.WHITE);
left.setGranularity(1f);
left.setTextSize(12f);

代码示例来源:origin: fossasia/pslab-android

left.setTextColor(Color.WHITE);
left.setGranularity(1f);
left.setTextSize(12f);

代码示例来源:origin: fossasia/pslab-android

x.setAvoidFirstLastClipping(true);
y.setTextColor(Color.WHITE);
y.setDrawGridLines(true);
y.setLabelCount(10);

代码示例来源:origin: fossasia/pslab-android

x.setDrawLabels(false);
holder.y.setTextColor(Color.WHITE);
holder.y.setAxisMaximum(20);
holder.y.setAxisMinimum(-20);

代码示例来源:origin: fossasia/pslab-android

x.setAvoidFirstLastClipping(true);
y.setTextColor(Color.WHITE);
y.setAxisMaximum(10f);
y.setAxisMinimum(-10f);

代码示例来源:origin: fossasia/pslab-android

x.setAvoidFirstLastClipping(true);
y.setTextColor(Color.WHITE);
y.setAxisMaximum(1700f);
y.setAxisMinimum(0f);

代码示例来源:origin: fossasia/pslab-android

x.setAvoidFirstLastClipping(true);
y.setTextColor(Color.WHITE);
y.setAxisMaximum(6.15f);
y.setAxisMinimum(-6.15f);

代码示例来源:origin: fossasia/pslab-android

xAccelerometer.setAvoidFirstLastClipping(true);
yAccelerometer.setTextColor(Color.WHITE);
yAccelerometer.setAxisMaximum(25f);
yAccelerometer.setAxisMinimum(-25f);
xGyroscope.setAvoidFirstLastClipping(true);
yGyroscope.setTextColor(Color.WHITE);
yGyroscope.setAxisMaximum(200f);
yGyroscope.setAxisMinimum(-200f);

代码示例来源:origin: fossasia/pslab-android

public void chartInit() {
  mChart.setTouchEnabled(true);
  mChart.setHighlightPerDragEnabled(true);
  mChart.setDragEnabled(true);
  mChart.setScaleEnabled(true);
  mChart.setDrawGridBackground(false);
  mChart.setPinchZoom(true);
  mChart.setScaleYEnabled(false);
  mChart.setBackgroundColor(Color.BLACK);
  mChart.getDescription().setEnabled(false);
  LineData data = new LineData();
  data.setValueTextColor(Color.WHITE);
  mChart.setData(data);
  Legend l = mChart.getLegend();
  l.setForm(Legend.LegendForm.LINE);
  l.setTextColor(Color.WHITE);
  x1.setTextColor(Color.WHITE);
  x1.setDrawGridLines(true);
  x1.setAvoidFirstLastClipping(true);
  x1.setAxisMinimum(0f);
  x1.setAxisMaximum(875f);
  y1.setTextColor(Color.WHITE);
  y1.setAxisMaximum(16f);
  y1.setAxisMinimum(-16f);
  y1.setDrawGridLines(true);
  y2.setAxisMaximum(16f);
  y2.setAxisMinimum(-16f);
  y2.setTextColor(Color.WHITE);
  y2.setEnabled(true);
}

代码示例来源:origin: fossasia/pslab-android

xTemperature.setAvoidFirstLastClipping(true);
yTemperature.setTextColor(Color.WHITE);
yTemperature.setAxisMaximum(125f);
yTemperature.setAxisMinimum(-40f);
xHumidity.setAvoidFirstLastClipping(true);
yHumidity.setTextColor(Color.WHITE);
yHumidity.setAxisMaximum(100f);
yHumidity.setAxisMinimum(0f);

代码示例来源:origin: fossasia/pslab-android

private void setupInstruments() {
  lightMeter.setMaxSpeed(PreferenceManager.getDefaultSharedPreferences(getActivity()).getFloat(luxSensor.LUXMETER_LIMIT, 10000));
  XAxis x = mChart.getXAxis();
  this.y = mChart.getAxisLeft();
  YAxis y2 = mChart.getAxisRight();
  mChart.setTouchEnabled(true);
  mChart.setHighlightPerDragEnabled(true);
  mChart.setDragEnabled(true);
  mChart.setScaleEnabled(true);
  mChart.setDrawGridBackground(false);
  mChart.setPinchZoom(true);
  mChart.setScaleYEnabled(true);
  mChart.setBackgroundColor(Color.BLACK);
  mChart.getDescription().setEnabled(false);
  LineData data = new LineData();
  mChart.setData(data);
  Legend l = mChart.getLegend();
  l.setForm(Legend.LegendForm.LINE);
  l.setTextColor(Color.WHITE);
  x.setTextColor(Color.WHITE);
  x.setDrawGridLines(true);
  x.setAvoidFirstLastClipping(true);
  y.setTextColor(Color.WHITE);
  y.setAxisMaximum(currentMax);
  y.setAxisMinimum(currentMin);
  y.setDrawGridLines(true);
  y.setLabelCount(10);
  y2.setDrawGridLines(false);
}

代码示例来源:origin: fossasia/pslab-android

xObjectTemperature.setAvoidFirstLastClipping(true);
yObjectTemperature.setTextColor(Color.WHITE);
yObjectTemperature.setAxisMaximum(125f);
yObjectTemperature.setAxisMinimum(-40f);
xAmbientTemperature.setAvoidFirstLastClipping(true);
yAmbientTemperature.setTextColor(Color.WHITE);
yAmbientTemperature.setAxisMaximum(380f);
yAmbientTemperature.setAxisMinimum(-70f);

代码示例来源:origin: fossasia/pslab-android

private void setupInstruments() {
  baroMeter.setMaxSpeed(PreferenceManager.getDefaultSharedPreferences(getActivity()).getFloat(baroSensor.BAROMETER_LIMIT, 2));
  XAxis x = mChart.getXAxis();
  this.y = mChart.getAxisLeft();
  YAxis y2 = mChart.getAxisRight();
  mChart.setTouchEnabled(true);
  mChart.setHighlightPerDragEnabled(true);
  mChart.setDragEnabled(true);
  mChart.setScaleEnabled(true);
  mChart.setDrawGridBackground(false);
  mChart.setPinchZoom(true);
  mChart.setScaleYEnabled(true);
  mChart.setBackgroundColor(Color.BLACK);
  mChart.getDescription().setEnabled(false);
  LineData data = new LineData();
  mChart.setData(data);
  Legend l = mChart.getLegend();
  l.setForm(Legend.LegendForm.LINE);
  l.setTextColor(Color.WHITE);
  x.setTextColor(Color.WHITE);
  x.setDrawGridLines(true);
  x.setAvoidFirstLastClipping(true);
  y.setTextColor(Color.WHITE);
  y.setAxisMaximum(currentMax);
  y.setAxisMinimum(currentMin);
  y.setDrawGridLines(true);
  y.setLabelCount(10);
  y2.setDrawGridLines(false);
  y2.setMaxWidth(0);
}

代码示例来源:origin: fossasia/pslab-android

xTemperature.setAvoidFirstLastClipping(true);
yTemperature.setTextColor(Color.WHITE);
yTemperature.setAxisMaximum(70f);
yTemperature.setAxisMinimum(0f);
xAltitude.setAvoidFirstLastClipping(true);
yAltitude.setTextColor(Color.WHITE);
yAltitude.setAxisMaximum(3000f);
yAltitude.setAxisMinimum(0f);
xPressure.setAvoidFirstLastClipping(true);
yPressure.setTextColor(Color.WHITE);
yPressure.setAxisMaximum(1000000f);
yPressure.setAxisMinimum(0f);

相关文章

YAxis类方法