MPAndroidChart how to set label color?

后端 未结 2 1035
无人及你
无人及你 2020-12-17 17:35

got the following code:

    graph = (LineChart) convertView.findViewById(R.id.graph);
    graph.getPaint(Chart.PAINT_LEGEND_LABEL).setColor(Color.BLUE);
             


        
2条回答
  •  遥遥无期
    2020-12-17 18:01

    Incase for a pie chat to change its label colors you can do this

    pieChart.getLegend().setTextColor(Color.WHITE);
    

提交回复
热议问题