How to change chart background with MPAndroidChart library?

后端 未结 4 617
一个人的身影
一个人的身影 2021-01-18 01:28

I\'m using the amazing library MPAndroidChart. It works like a charm, except when I\'m trying to change the background color of the BarData. Default color is white, and I wa

4条回答
  •  礼貌的吻别
    2021-01-18 01:51

    if you want to Change Whole Screen Background Color

     Barchart chart;
     chart.setBackgroundColor(Color.rgb(0, 0, 0));//Set as a black
     chart.setDrawGridBackground(false);//set this to true to draw the grid background, false if not
    

    Happy to help Thanks

提交回复
热议问题