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
openfunc setLabelCount(_ count:Int, force:Bool){self.labelCount = count
forceLabelsEnabled = force
}
related logic in open func computeAxisValues(min: Double, max: Double):
...// force label count
if axis.isForceLabelsEnabled
{
interval =Double(range)/ Double(labelCount -1)// Ensure stops contains at least n elements.
axis.entries.removeAll(keepingCapacity: true)
axis.entries.reserveCapacity(labelCount)varv= yMin
for _ in 0..< labelCount
{
axis.entries.append(v)
v += interval
}
n = labelCount
}...
Hello. I have a simple bar chart but I need the left axis values to be a multiple of 0.5.
Like this:
3.0 |
2.5 |
2.0 |
1.5 |
0.0 |
How to do this?
The text was updated successfully, but these errors were encountered: