[英]Space between axis line and axis label ios MPChart
在我的Objective-C iOS应用程序中,我使用了Charts库来实现图表,但是我需要增加x轴线和标签(在图像上用红线标记)之间的间距,以及如何增加它。 请帮忙。
对于上面的XAxis和leftAxis您需要如下所述更改axis的offset属性:
XAxis
leftAxis
offset
//For left Axis lineChartView.leftAxis.xOffset = 20.0; //For XAxis lineChartView.xAxis.yOffset = 20.0;
这样,您可以在Axis实现偏移。
Axis
使用20.0偏移值检查此图像:
希望这会有所帮助。
[英]Line chart with fix X axis label like healthkit graph in iOS
[英]lineChartView axis label add extra line on the label
[英]CorePlot 1.3: setting space between axis and labels
[英]Reduce space between barchart and x-axis
[英]Setting axis line in core plot in ios
[英]Axis label modification in Coreplot
[英]How to set a custom x axis 0 label in charts ios
[英]iOS Core Plot: Adjust y axis padding to label size
[英]iOS Charts extra space and adding x-axis labels
[英]Core Plot: Increase space between ticks on the x-axis?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.