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

change axis label color

6 Answers 99 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.
Gökhan
Top achievements
Rank 1
Gökhan asked on 22 Jul 2014, 06:57 AM
hi, i am trying to change axis label color like below but it doesnt work, its color always black;

CategoricalAxis horizontalAxis = new CategoricalAxis(this);
// both doesnt work
horizontalAxis.setLabelTextColor(0xFF9DCC00);
horizontalAxis.setLabelTextColor(Color.CYAN);

6 Answers, 1 is accepted

Sort by
0
Gökhan
Top achievements
Rank 1
answered on 22 Jul 2014, 07:00 AM
also tried: 
horizontalAxis.setLabelTextColor(getResources().getColor(R.color.claretRed));
still doen not work
0
Accepted
Victor
Telerik team
answered on 22 Jul 2014, 07:33 AM
Hello Gökhan,

Thanks for writing.
You should simply set your settings after you have set the axis to the chart. This is because, unlike Silverlight/WPF, the Android UI framework does not have a property system and our palettes override your settings after the axis has been added to the chart.

Please write again if you need further assistance.

Regards,
Victor
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Gökhan
Top achievements
Rank 1
answered on 22 Jul 2014, 08:23 AM
thanks it solved problem
0
Antony Jekov
Telerik team
answered on 23 Jul 2014, 03:37 PM
Hello Gökhan,

I am happy we were able to help you out. I will proceed and I will close this ticket now.

Please feel free to reopen it at any time, should you face any additional issues on the subject.


Thank you for your time and all best!

Regards,
Antony Jekov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Chris
Top achievements
Rank 1
answered on 11 Sep 2015, 09:06 PM
Victor - the information you provided in your answer belongs in the documentation.  Certainly it belongs in the guides (and if it is already there, its hard to find).
0
Victor
Telerik team
answered on 16 Sep 2015, 07:32 AM
Hi Chris,

Thanks for the feedback.
We will definitely expand the explanation of the palettes and the styling since some customers are still having trouble with this.

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
Tags
Chart
Asked by
Gökhan
Top achievements
Rank 1
Answers by
Gökhan
Top achievements
Rank 1
Victor
Telerik team
Antony Jekov
Telerik team
Chris
Top achievements
Rank 1
Share this question
or