Mpandroidchart: Pie Graph is not visible initially but on click gets visible

Created on 9 Aug 2017  路  3Comments  路  Source: PhilJay/MPAndroidChart

In android card view, after we set the pie chart data, "no data in chart available" gets visible. On clicking the pie chart the data is loaded.

Most helpful comment

Have you tried chart.invalidate() where chart is your pie chart?

All 3 comments

Working with 'MPAndroidChart:v2.2.4' I have the same issue only with Bar Chart.
I used this older version since I wanted x to be represented by String.

Have you tried chart.invalidate() where chart is your pie chart?

Yes. I am also getting this issue. I think this is because our data has some non-unique values. If I make all the data unique, then this works fine.

On a side note, it partitions the data successfully. All it fails to do is, not color those portions which are non-unique.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

OnlyInAmerica picture OnlyInAmerica  路  3Comments

botondbutuza picture botondbutuza  路  3Comments

manucheri picture manucheri  路  3Comments

andreyfel picture andreyfel  路  3Comments

AndroidJiang picture AndroidJiang  路  3Comments