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

Fixes Y axis graduations when Y data contains only zeros. #39

Open Briseglace opened 3 months ago

Briseglace commented 3 months ago

Hi @jaikeerthick,

Just realized my last PR introduced a divide by 0 error when Y data contains only zeros. Here is a fix that will draw a single vertical step from 0 to 1. image

Sorry about that.