gpt4 book ai didi

ios - 轴线和轴标签之间的空间 ios MPChart

转载 作者:行者123 更新时间:2023-11-29 00:02:04 32 4
gpt4 key购买 nike

在我使用 Objective-C 的 iOS 应用程序中,我使用了 Charts用于实现图表的库,但我需要增加 x 轴线和标签(在图像上用红线标记)之间的空间如何增加它。 请帮忙。

enter image description here

最佳答案

对于上面的 XAxisleftAxis,您需要更改轴的 offset 属性,如下所述:

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

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

通过这个,您可以在您的Axis 中实现偏移。

使用 20.0 偏移值检查此图像:

enter image description here

希望这会有所帮助。

关于ios - 轴线和轴标签之间的空间 ios MPChart,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49249810/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com