Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的应用程序中使用 iOS 图表库。图表绘制正确,但 X 轴值显示在折线图中的两侧。有没有办法隐藏或删除它?
您可以使用lineChartView.rightAxis.enabled = false隐藏rightAxis或替换为leftAxis
lineChartView.rightAxis.enabled = false
rightAxis
leftAxis