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

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

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

YAxis.setSpaceTop介绍

[英]Sets the top axis space in percent of the full range. Default 10f
[中]以全范围的百分比设置顶轴空间。默认10f

代码示例

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

leftAxis.setTypeface(tfLight);
leftAxis.setLabelCount(5, false);
leftAxis.setSpaceTop(15f);
rightAxis.setSpaceTop(15f);

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

leftAxis.setTypeface(mTf);
leftAxis.setLabelCount(5, false);
leftAxis.setSpaceTop(20f);
leftAxis.setAxisMinimum(0f); // this replaces setStartAtZero(true)
rightAxis.setTypeface(mTf);
rightAxis.setLabelCount(5, false);
rightAxis.setSpaceTop(20f);
rightAxis.setAxisMinimum(0f); // this replaces setStartAtZero(true)

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

yl.setSpaceTop(30f);
yl.setSpaceBottom(30f);
yl.setDrawZeroLine(false);

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

leftAxis.setValueFormatter(new LargeValueFormatter());
leftAxis.setDrawGridLines(false);
leftAxis.setSpaceTop(35f);
leftAxis.setAxisMinimum(0f); // this replaces setStartAtZero(true)

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

left.setSpaceTop(25f);
left.setSpaceBottom(25f);
left.setDrawAxisLine(false);

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

leftAxis.setValueFormatter(custom);
leftAxis.setPosition(YAxisLabelPosition.OUTSIDE_CHART);
leftAxis.setSpaceTop(15f);
leftAxis.setAxisMinimum(0f); // this replaces setStartAtZero(true)
rightAxis.setLabelCount(8, false);
rightAxis.setValueFormatter(custom);
rightAxis.setSpaceTop(15f);
rightAxis.setAxisMinimum(0f); // this replaces setStartAtZero(true)

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

chart.getAxisLeft().setSpaceTop(40);
chart.getAxisLeft().setSpaceBottom(40);
chart.getAxisRight().setEnabled(false);

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

leftAxis.setTypeface(mTfLight);
leftAxis.setLabelCount(5, false);
leftAxis.setSpaceTop(15f);
rightAxis.setSpaceTop(15f);

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

leftAxis.setTypeface(mTf);
leftAxis.setLabelCount(5, false);
leftAxis.setSpaceTop(20f);
leftAxis.setAxisMinimum(0f); // this replaces setStartAtZero(true)
rightAxis.setTypeface(mTf);
rightAxis.setLabelCount(5, false);
rightAxis.setSpaceTop(20f);
rightAxis.setAxisMinimum(0f); // this replaces setStartAtZero(true)

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

left.setSpaceTop(25f);
left.setSpaceBottom(25f);
left.setDrawAxisLine(false);

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

leftAxis.setValueFormatter(custom);
leftAxis.setPosition(YAxisLabelPosition.OUTSIDE_CHART);
leftAxis.setSpaceTop(15f);
leftAxis.setAxisMinimum(0f); // this replaces setStartAtZero(true)
rightAxis.setLabelCount(8, false);
rightAxis.setValueFormatter(custom);
rightAxis.setSpaceTop(15f);
rightAxis.setAxisMinimum(0f); // this replaces setStartAtZero(true)

代码示例来源:origin: WJKCharlie/MPAndroidChartTest

left.setSpaceTop(25f);
left.setSpaceBottom(25f);
left.setDrawAxisLine(false);

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

yl.setSpaceTop(30f);
yl.setSpaceBottom(30f);
yl.setDrawZeroLine(false);

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

axisLeftBar.setLabelCount(2, true);
axisLeftBar.setAxisMinimum(0);
axisLeftBar.setSpaceTop(5);
axisLeftBar.setValueLineInside(true);

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

axisLeftBar.setLabelCount(2, true);
axisLeftBar.setAxisMinimum(0);
axisLeftBar.setSpaceTop(5);
axisLeftBar.setValueLineInside(true);

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

leftAxis.setValueFormatter(new LargeValueFormatter());
leftAxis.setDrawGridLines(false);
leftAxis.setSpaceTop(30f);
leftAxis.setAxisMinimum(0f); // this replaces setStartAtZero(true)

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

chart.getAxisLeft().setSpaceTop(40);
chart.getAxisLeft().setSpaceBottom(40);
chart.getAxisRight().setEnabled(false);

相关文章

YAxis类方法