0
votes

I am using mpAndroidChart library to draw pie-chart on android app. Library works when entries are more than two but it does not draw on single entries. Please advice where I am going wrong. I followed official example given in the repo.

2

2 Answers

0
votes

I had an error in my code and finally removed it! Here Values were mistakenly not getting added in some cases, I have found and resolved the bug and code is now working perfect.

0
votes

In my case, it didn't show up unless I changed the height of chart to "match_parent".

Since it was in the LinearLayout(LL), I added another LL in the original LL and set the value of LL as 300pd or 500pd.

Now I see the chart.