本文整理了Java中com.github.mikephil.charting.components.YAxis.setTextSize()
方法的一些代码示例,展示了YAxis.setTextSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YAxis.setTextSize()
方法的具体详情如下:
包路径:com.github.mikephil.charting.components.YAxis
类名称:YAxis
方法名:setTextSize
暂无
代码示例来源:origin: PhilJay/MPAndroidChart
chart.getAxisRight().setLabelCount(7, false);
chart.getAxisRight().setValueFormatter(new CustomFormatter());
chart.getAxisRight().setTextSize(9f);
代码示例来源:origin: PhilJay/MPAndroidChart
yAxis.setTypeface(tfLight);
yAxis.setLabelCount(5, false);
yAxis.setTextSize(9f);
yAxis.setAxisMinimum(0f);
yAxis.setAxisMaximum(80f);
代码示例来源:origin: fossasia/pslab-android
left.setTextColor(Color.WHITE);
left.setGranularity(1f);
left.setTextSize(12f);
logicLinesChart.getAxisRight().setDrawLabels(false);
logicLinesChart.getDescription().setEnabled(false);
代码示例来源:origin: fossasia/pslab-android
left.setTextColor(Color.WHITE);
left.setGranularity(1f);
left.setTextSize(12f);
logicLinesChart.getAxisRight().setDrawLabels(false);
logicLinesChart.getDescription().setEnabled(false);
代码示例来源:origin: fossasia/pslab-android
left.setTextColor(Color.WHITE);
left.setGranularity(1f);
left.setTextSize(12f);
logicLinesChart.getAxisRight().setDrawLabels(false);
logicLinesChart.getDescription().setEnabled(false);
代码示例来源:origin: fossasia/pslab-android
left.setTextColor(Color.WHITE);
left.setGranularity(1f);
left.setTextSize(12f);
logicLinesChart.getAxisRight().setDrawLabels(false);
logicLinesChart.getDescription().setEnabled(false);
代码示例来源:origin: zhuanghongji/mp-android-chart
mChart.getAxisRight().setLabelCount(7, false);
mChart.getAxisRight().setValueFormatter(new CustomFormatter());
mChart.getAxisRight().setTextSize(9f);
代码示例来源:origin: thuryn/your-local-weather
yLeft.setZeroLineWidth(20f);
if (textSize != null) {
yLeft.setTextSize(textSize);
yRight.setZeroLineWidth(20f);
if (textSize != null) {
yRight.setTextSize(textSize);
代码示例来源:origin: zhuanghongji/mp-android-chart
protected void setup(Chart<?> chart) {
mTf = Typeface.createFromAsset(getAssets(), "OpenSans-Regular.ttf");
// no description text
chart.getDescription().setEnabled(false);
// enable touch gestures
chart.setTouchEnabled(true);
if (chart instanceof BarLineChartBase) {
BarLineChartBase mChart = (BarLineChartBase) chart;
mChart.setDrawGridBackground(false);
// enable scaling and dragging
mChart.setDragEnabled(true);
mChart.setScaleEnabled(true);
// if disabled, scaling can be done on x- and y-axis separately
mChart.setPinchZoom(false);
YAxis leftAxis = mChart.getAxisLeft();
leftAxis.removeAllLimitLines(); // reset all limit lines to avoid overlapping lines
leftAxis.setTypeface(mTf);
leftAxis.setTextSize(8f);
leftAxis.setTextColor(Color.DKGRAY);
leftAxis.setValueFormatter(new PercentFormatter());
XAxis xAxis = mChart.getXAxis();
xAxis.setTypeface(mTf);
xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);
xAxis.setTextSize(8f);
xAxis.setTextColor(Color.DKGRAY);
mChart.getAxisRight().setEnabled(false);
}
}
代码示例来源:origin: zhuanghongji/mp-android-chart
yAxis.setTypeface(mTfLight);
yAxis.setLabelCount(5, false);
yAxis.setTextSize(9f);
yAxis.setAxisMinimum(0f);
yAxis.setAxisMaximum(80f);
代码示例来源:origin: WenWangAndroid/ChartManager
private void initRadarChart() {
// 绘制线条宽度,圆形向外辐射的线条
mRadarChart.setWebLineWidth(1.5f);
// 内部线条宽度,外面的环状线条
mRadarChart.setWebLineWidthInner(1.0f);
// 所有线条WebLine透明度
mRadarChart.setWebAlpha(100);
//点击点弹出的标签
RadarMarkerView mv = new RadarMarkerView(mContext, R.layout.radar_markerview);
mRadarChart.setMarkerView(mv);
XAxis xAxis = mRadarChart.getXAxis();
// X坐标值字体大小
xAxis.setTextSize(12f);
// Y坐标值字体样式
// Y坐标值标签个数
yAxis.setLabelCount(6, false);
// Y坐标值字体大小
yAxis.setTextSize(15f);
// Y坐标值是否从0开始
yAxis.setStartAtZero(true);
yAxis.setEnabled(false);
Legend l = mRadarChart.getLegend();
// 图例位置
l.setPosition(Legend.LegendPosition.LEFT_OF_CHART);
// 图例X间距
l.setXEntrySpace(2f);
// 图例Y间距
l.setYEntrySpace(1f);
}
代码示例来源:origin: zhuanghongji/mp-android-chart
leftAxis.setTextSize(18f);
内容来源于网络,如有侵权,请联系作者删除!