MPAndroidChart - Change message “No chart data available”

后端 未结 6 2147
予麋鹿
予麋鹿 2020-12-29 22:22

Is there any way to change the message \"No chart data available\" when the chart is not populated?

Edit: Found the answer



        
6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-29 22:50

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_firestore__eintraege__heute);
    
        mChart = findViewById(R.id.chartZuckerHeute);
        mChart.setNoDataText("PUT IT HERE ON TOP; WORKED FOR ME");
    

提交回复
热议问题