-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
yAxis label shows only when i touch the view #618
Comments
Who can help me to solve this problem?Many Thanks...... |
Can you reproduce it with ChartsDemo code? I do see you call lineChartView.leftAxis.drawLabelsEnabled = true. Are you using leftAxis or rightAxis? By default it's left. Also, dataSet has a propety called axisDependency, have you changed it? |
@liuxuan30 , I tried ChartsDemo with replacing the chart-setting code,And the label didn't show either. In my code,I put all chart-setting work in a func, maybe you can run it in xcode simply if you kindly help to solve.For your question, I use leftAxis, and I didn't change dataSet's attribute axisDependency.
|
As I said, ChartsDemo is totally free from your issue. Would you please post the code you tried in ChartDemo that can reproduce? I don't have a swift one in my hand. BTW, from you code, I suspect it's because you first setup the data, then called I would suggest put
A normal workflow is setting chart property -> feed data, because the chart setting will impact the axis and space calculating If you still have the issue, please post the code that I can try in ChartsDemo. A screenshot is also helpful to understand. |
@liuxuan30 as your advice,I put lineChartView.data = chartData on the tail,It worked. TTTTTThank U, master! |
NP :) |
I used the lineChartView to draw a line chart, But I run out an issue: My yAxis label doesn't show anyway with codes below, only when I touch it to highlight something, the label shows. how can I show it instantly at the beginning?
The text was updated successfully, but these errors were encountered: