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
when I use [[BarChartDataEntry alloc] initWithX: x y: y] add to dataset, and set the xaxis formatter.
[ChartDefaultAxisValueFormatter withBlock:^NSString * _Nonnull(double value, ChartAxisBase * _Nullable axis) ,
but the value does not equals to x. it seems value is recalculated ? for example I pass x from 0-7, but the value may be (0, 0.9, 1.8. 2.7 ...), sometimes , when I removed the labelCount is works well, but not always. Is somethis wrong?
The text was updated successfully, but these errors were encountered:
x axis labels(entries) are calculated in calculateAxisValues(), and it has its own algorithm by default. You can override it and feed xAxis.entries what you need, or use forceLabelEnabled if the logic suits you. Just take a look.
when I use [[BarChartDataEntry alloc] initWithX: x y: y] add to dataset, and set the xaxis formatter.
[ChartDefaultAxisValueFormatter withBlock:^NSString * _Nonnull(double value, ChartAxisBase * _Nullable axis) ,
but the value does not equals to x. it seems value is recalculated ? for example I pass x from 0-7, but the value may be (0, 0.9, 1.8. 2.7 ...), sometimes , when I removed the labelCount is works well, but not always. Is somethis wrong?
The text was updated successfully, but these errors were encountered: