iOS 图表:标签位于底部时未绘制顶部轴线
iOS Charts: Top axis line not drawn when labels at bottom
我使用的是底部带有 x 轴标签的折线图,我不明白为什么没有绘制顶部的 x 轴线。 xAxis.drawAxisLineEnabled 设置为真。
是否可以在图表顶部绘制不带标签的顶部轴线?
Image of charts with and without top x axis line
根据您的要求,您需要通过启用以下 属性
来启用图形边框
lineChartView.drawBordersEnabled = true
希望这有助于向您展示 XAxis
的第一行。
示例:
我使用的是底部带有 x 轴标签的折线图,我不明白为什么没有绘制顶部的 x 轴线。 xAxis.drawAxisLineEnabled 设置为真。
是否可以在图表顶部绘制不带标签的顶部轴线?
Image of charts with and without top x axis line
根据您的要求,您需要通过启用以下 属性
来启用图形边框lineChartView.drawBordersEnabled = true
希望这有助于向您展示 XAxis
的第一行。
示例: