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

Change LineChartDataSet label color not value color. #2944

Closed
zubingala opened this issue Nov 2, 2017 · 6 comments
Closed

Change LineChartDataSet label color not value color. #2944

zubingala opened this issue Nov 2, 2017 · 6 comments

Comments

@zubingala
Copy link

let line1 = LineChartDataSet(values: lineChartEntry, label: "TP Data")

I want to change the label which is in my case "TP Data" color which is black. I don't want to change the value color.

@liuxuan30
Copy link
Member

where do you display your label?

@coolcool1994
Copy link

By default it gets displayed in the bottom of the graph. Is there a way to change the color of the label of LineChartDataSet? (Funny my exact question was right here waiting for me.)

@liuxuan30
Copy link
Member

The label here you refer the label on legend? I don't remember we support display data set label on the shape?
if it's legend, then it's legend.textColor. Looks like you have to add an array to display different colors

@sabrinatuli
Copy link

Same. I want to change the label color. But couldn't.

@liuxuan30
Copy link
Member

you need to override it with an color array.

@keshu1024
Copy link

    chartView.legend.textColor = .white

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

5 participants