Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chtChart.xAxis.granularityEnabled = true
- chtChart.xAxis.granularity = 1
- chtChart.xAxis.setLabelCount(5, force: true)
- chtChart.xAxis.labelPosition = .bottom
- chtChart.xAxis.labelCount = tableData.count-1
- // chtChart.xAxis.labelRotationAngle = 330
- chtChart.animate(xAxisDuration: 0.5, yAxisDuration: 0.5, easingOption: .easeInBack)
- if tableData.count > 6 {
- chtChart.setVisibleXRange(minXRange: 4.0, maxXRange: 5.0)
- chtChart.moveViewToX(5)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement