How to change chart background with MPAndroidChart library?

后端 未结 4 659
一个人的身影
一个人的身影 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:31

    Code to change Background color:

    chart.setBackgroundColor(Color.TRANSPARENT); //set whatever color you prefer
    chart.setDrawGridBackground(false);// this is a must 
    

提交回复
热议问题