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
Hi,
I'm trying to make sure that all data points on the line chart have a label showing below it. I've tried adjusting the _chartView.xAxis.labelWidth property to different values but it doesn't seem to make a difference. I simply just want to make sure that the label width between each data point is the same so that all the labels are shown. Any thoughts on how to adjust this?
The bottom image is what is shown when labelWidth is not set.
The text was updated successfully, but these errors were encountered:
xAxis.labelWidth is already used to get max label width, and use it to calculate the modulus. If you want to show every label, try this, but you may get some overlap, since your chart seems not having enough space:
/// Sets the number of labels that should be skipped on the axis before the next label is drawn. /// This will disable the feature that automatically calculates an adequate space between the axis labels and set the number of labels to be skipped to the fixed number provided by this method. /// Call `resetLabelsToSkip(...)` to re-enable automatic calculation.publicfunc setLabelsToSkip(count:Int){
_isAxisModulusCustom = true
if (count <0){
axisLabelModulus =1}else{
axisLabelModulus = count +1}}
Hi,
I'm trying to make sure that all data points on the line chart have a label showing below it. I've tried adjusting the _chartView.xAxis.labelWidth property to different values but it doesn't seem to make a difference. I simply just want to make sure that the label width between each data point is the same so that all the labels are shown. Any thoughts on how to adjust this?
The bottom image is what is shown when labelWidth is not set.
The text was updated successfully, but these errors were encountered: