This is a migrated thread and some comments may be shown as answers.

How to change the background color of an Android chart?

2 Answers 39 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Thean Hoo
Top achievements
Rank 1
Thean Hoo asked on 28 Oct 2015, 07:07 AM

How do I change the background color of an Android chart? For example, instead of the default bright / white background, I'd like to change it to black.

Kindly provide a way to do this during runtime, if possible.

 

 

2 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 28 Oct 2015, 09:16 AM
Hello Yew Hoo,

Thanks for writing.
Since the chart is a View you can set its background color quite easily:
chart.setBackgroundColor(0xff000000);
Please write again if you need further assistance.

Regards,
Victor
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Thean Hoo
Top achievements
Rank 1
answered on 28 Oct 2015, 09:44 AM

Thank you.

 

Tags
Chart
Asked by
Thean Hoo
Top achievements
Rank 1
Answers by
Victor
Telerik team
Thean Hoo
Top achievements
Rank 1
Share this question
or