You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue of the weird spacing when I have 0 values in my bar graph.
So I just created a default bar chart with a 0 value and I have the issue - I tried to get as close as possible to a simple bar to see what was the issue.
It looks like the demo but a soon as I put a 0 value , I get a padding.
not really. The y axis range is calculated by your data range. To keep your chart inside the canvas, the axis range will be larger than your data range. Check out computeAxisValues() to have a good understanding how it generate the ranges.
If you want the y axis always starts from 0, set leftAxis.axisMinimum = 0
I have an issue of the weird spacing when I have 0 values in my bar graph.
So I just created a default bar chart with a 0 value and I have the issue - I tried to get as close as possible to a simple bar to see what was the issue.
It looks like the demo but a soon as I put a 0 value , I get a padding.
Here the sample code :
@IBOutlet var barChartView: BarChartView!
func viewDidLoad() {
super.viewDidLoad()
self.styleChart()
self.configureChart()
}
Pretty straightforward.
It is a bug ?
Issue with 0 :
No 0 :
The text was updated successfully, but these errors were encountered: