Mpandroidchart: chart.setDescription(""); don't work

Created on 27 Oct 2016  路  3Comments  路  Source: PhilJay/MPAndroidChart

This is my code:

LineChart chart = (LineChart) findViewById(R.id.chart);
chart.setDescription("Time");

Android Studio say:

SetDescription (com.github....) in Chart cannot be applied to (java-lang.String)

If i set NULL it work......

Most helpful comment

in version 3.0.0,the method changes:

Description description = new Description(); description.setTextColor(ColorTemplate.VORDIPLOM_COLORS[2]); description.setText("Chart Data"); chartView.setDescription(description);

All 3 comments

in version 3.0.0,the method changes:

Description description = new Description(); description.setTextColor(ColorTemplate.VORDIPLOM_COLORS[2]); description.setText("Chart Data"); chartView.setDescription(description);

Why make it complicated when it was much simpler?

Thank You!
Essa dica me ajudou bastante.
(gao746700783)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

omensight picture omensight  路  3Comments

blotfi picture blotfi  路  3Comments

SutharRohit picture SutharRohit  路  3Comments

AndroidJiang picture AndroidJiang  路  3Comments

DarkHelmet67 picture DarkHelmet67  路  3Comments