ryanw-mobile / OctoMeter

🔥Kotlin Multiplatform Desktop/Android/iOS Energy Tracker app
Other
88 stars 8 forks source link

(#183) Fix Agile chart to properly set range floor to 0 for all-positive rate dataset #185

Closed ryanw-mobile closed 1 month ago

ryanw-mobile commented 1 month ago

We made changes to support showing negative rates by removing the hardcoded 0 range floor. Now when the data set is all positive, the floor is determined to be the min of the rate instead of 0, so the chart's y-axis is not starting to zero.

This quick fix is to set rateRange floor to be 0 when all rates are positive