ehsannarmani / ComposeCharts

Animated & Flexible Practical Charts For Jetpack Compose
Apache License 2.0
118 stars 7 forks source link

Pie with data 0.0F #6

Closed MathBrandino closed 2 weeks ago

MathBrandino commented 2 weeks ago

First of all, i would like to thank you for this amazing project, I looked at several libs and none of them had decent documentation or the graphics were good enough to be able to use.

I think you should consider the data equal to zero at plotting time.

I tried to create a PieChart where I have 2 scenarios:

I expected that in this case the chart would display the only option using all the space.

WDYT about it?

ehsannarmani commented 2 weeks ago

@MathBrandino Hi,dear. Thank your for reporting the problem. If your application catches when you give 0.0f value to chart, that problem was solved in here, so if you using 0.0.6 version, it should not be a persistent problem.

But considering that you opened the issue, i tried other kind of scenarios, in the 0.0.6 version if you had a data with this values: 20.0,0.0 or 20.0 The chart didn't show this, and i decided to fix it in 0.0.7 version.

So in the end, if you use 0.0.7 version of library, there should be no problem.

MathBrandino commented 2 weeks ago

Thanks for the fast response!

I'm using the version 0.0.6

I'm creating a chart with wins and losses, so I can face some condition that the user never won or never lose.

I'll try version 0.0.7 and then I come back here to give you a feedback about it.

MathBrandino commented 2 weeks ago

After updating everything works!

Thank you a lot 🚀

ehsannarmani commented 2 weeks ago

Your welcome.