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 found that function calcMinMax() in BarChartView.swift,the max y axis value is equal to the data's max y value ,so it has not enough space to show whole label, I fixed it:
file: BarChartView.swift
internal override func calcMinMax()
{
guard let data = self.data as? BarChartData
else { return }
if fitBars
{
_xAxis.calculate(
min: data.xMin - data.barWidth / 2.0,
max: data.xMax - data.barWidth / 2.0)
}
else
{
_xAxis.calculate(min: data.xMin, max: data.xMax)
}
// calculate axis range (min / max) according to provided data
_leftAxis.calculate(
min: data.getYMin(.Left),
max: data.getYMax(.Left)*1.1) // here: multiply 1.1
_rightAxis.calculate(
min: data.getYMin(.Right),
max: data.getYMax(.Right)*1.1) // here: multiply 1.1 too
}
The text was updated successfully, but these errors were encountered:
I found that function calcMinMax() in BarChartView.swift,the max y axis value is equal to the data's max y value ,so it has not enough space to show whole label, I fixed it:
file: BarChartView.swift
internal override func calcMinMax()
{
guard let data = self.data as? BarChartData
else { return }
The text was updated successfully, but these errors were encountered: