简体   繁体   English

减少条形图和x轴之间的空间

[英]Reduce space between barchart and x-axis

I'm using charts in iOS to draw bar chart. 我在iOS中使用图表来绘制条形图。 But in the bar chart that I'm getting, some whitespace occurs between the bottom of the bars and the x-axis. 但是在我得到的条形图中,条形图底部和x轴之间出现了一些空白。 How can I reduce or eliminate this ? 我怎样才能减少或消除这个?

在此输入图像描述

This issue is reported here . 此问题在此处报告。

Following is the fix. 以下是修复。

barChartView.leftAxis.spaceBottom = 0.0

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

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