Advertisement
Guest User

Untitled

a guest
Jul 26th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.58 KB | None | 0 0
  1.         chtChart.xAxis.granularityEnabled = true
  2.         chtChart.xAxis.granularity = 1
  3.        
  4.        
  5.         chtChart.xAxis.setLabelCount(5, force: true)
  6.         chtChart.xAxis.labelPosition = .bottom
  7.         chtChart.xAxis.labelCount = tableData.count-1
  8. //        chtChart.xAxis.labelRotationAngle = 330
  9.         chtChart.animate(xAxisDuration: 0.5, yAxisDuration: 0.5, easingOption: .easeInBack)
  10.        
  11.        
  12.        
  13.         if tableData.count > 6 {
  14.             chtChart.setVisibleXRange(minXRange: 4.0, maxXRange: 5.0)
  15.             chtChart.moveViewToX(5)
  16.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement