jaikeerthick / Composable-Graphs

✨ A very Minimal, Sleek and Powerful Graph library for Android built with Kotlin & Jetpack Compose
Apache License 2.0
185 stars 13 forks source link

Handle edge cases #33

Open sunny-chung opened 6 months ago

sunny-chung commented 6 months ago

This is a nice library, and I would like you to consider a few enhancements. I will create one by one.

The first one is to handle edge cases. Specifically, for line charts:

  1. Display a single point if the number of data is 1
  2. Do not crash if there is no data. Perhaps display an empty graph is fine.
jaikeerthick commented 6 months ago

Thanks for reporting the edge-cases!

I'll prioritize these fixes and try to include in the next release. Thanks for your input!