简体   繁体   English

ios轴和轴标签之间的空间

[英]Space between axis line and axis label ios MPChart

In my iOS app in Objective-C I used Charts library for implementing chart, but I need to increase the space between x-axis line and label (marked in red line on image) how to increase it. 在我的Objective-C iOS应用程序中,我使用了Charts库来实现图表,但是我需要增加x轴线和标签(在图像上用红线标记)之间的间距,以及如何增加它。 please help. 请帮忙。

在此处输入图片说明

For above XAxis and leftAxis you need to change offset property of axis as mention below : 对于上面的XAxisleftAxis您需要如下所述更改axis的offset属性:

//For left Axis
lineChartView.leftAxis.xOffset = 20.0;

//For XAxis
lineChartView.xAxis.yOffset = 20.0;

By this you can achieve offset in your Axis . 这样,您可以在Axis实现偏移。

Check this image with 20.0 offset value: 使用20.0偏移值检查此图像:

在此处输入图片说明

Hope this will helps. 希望这会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM