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 would like to show the last x axis label on bar chart
as this issue #2006 but it didnt work for me
how could I modify the chart as the upper one?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
You can try barChartView.xAxis.avoidFirstLastClippingEnabled = true and barChartView.xAxis.forceLabelsEnabled = true that's made the trick for me.
However, you lose dynamic label count when zooming (and so lose precision).
To fix that, I added a delegate to the chart view with the chartScaled method like this :
extension ChartViewController: ChartViewDelegate {
func chartScaled(_ chartView: ChartViewBase, scaleX: CGFloat, scaleY: CGFloat) {
// Only enable fixed label count when fully zoomed out
chartView.xAxis.forceLabelsEnabled = self.barChartView.isFullyZoomedOut
}
}
Hi I would like to show the last x axis label on bar chart

as this issue #2006 but it didnt work for me
how could I modify the chart as the upper one?
Thanks in advance!
The text was updated successfully, but these errors were encountered: