Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Help I want to Make 2 lines of X axis label and x axis label background color #3495

Closed
VivekNahar opened this issue Jun 7, 2018 · 1 comment

Comments

@VivekNahar
Copy link

let months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov","Dec"]
let xAxis = customizedLineChartView.xAxis
	xAxis.labelPosition = .bottom
	
	
	xAxis.labelFont = .systemFont(ofSize: 10, weight: .light)
	xAxis.labelTextColor = UIColor.red; //UIColor(red: 0/255, green: 133/255, blue: 132/255, alpha: 1)
	xAxis.drawAxisLineEnabled = true
	xAxis.valueFormatter = IndexAxisValueFormatter(values:months)
	xAxis.granularity = 1
@liuxuan30
Copy link
Member

please ask on stack overflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants