How to change the background color of an Android chart?

3 posts, 0 answers
  1. Thean Hoo
    Thean Hoo avatar
    8 posts
    Member since:
    Jun 2015

    Posted 28 Oct 2015 Link to this post

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

    Posted 28 Oct 2015 Link to this post

    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
  3. DevCraft banner
  4. Thean Hoo
    Thean Hoo avatar
    8 posts
    Member since:
    Jun 2015

    Posted 28 Oct 2015 Link to this post

    Thank you.

     

Back to Top