change axis label color

7 posts, 1 answers
  1. Gökhan
    Gökhan avatar
    3 posts
    Member since:
    Jul 2014

    Posted 22 Jul 2014 Link to this post

    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);
  2. Gökhan
    Gökhan avatar
    3 posts
    Member since:
    Jul 2014

    Posted 22 Jul 2014 in reply to Gökhan Link to this post

    also tried: 
    horizontalAxis.setLabelTextColor(getResources().getColor(R.color.claretRed));
    still doen not work
  3. DevCraft banner
  4. Answer
    Victor
    Admin
    Victor avatar
    1351 posts

    Posted 22 Jul 2014 Link to this post

    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.

     
  5. Gökhan
    Gökhan avatar
    3 posts
    Member since:
    Jul 2014

    Posted 22 Jul 2014 in reply to Victor Link to this post

    thanks it solved problem
  6. Antony Jekov
    Admin
    Antony Jekov avatar
    88 posts

    Posted 23 Jul 2014 Link to this post

    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.

     
  7. Chris
    Chris avatar
    1 posts
    Member since:
    Sep 2015

    Posted 11 Sep 2015 in reply to Victor Link to this post

    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).
  8. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 16 Sep 2015 Link to this post

    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
Back to Top
DevCraft banner