-1

I made a line graph using iOS Charts and for my xAxis all of my labels are dates, but because there are so many they overlap. What could I do to stop this? Is there also a way I could scale in on a certain part of the graph to do this?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Evan C
  • 79
  • 6

1 Answers1

0

Try limiting the labelCount

var lineChart = LineChartView()

// Fix them to what ever number suitable 
lineChart.xAxis.labelCount = 3
Razi Tiwana
  • 1,425
  • 2
  • 13
  • 16