Skip to content

Commit

Permalink
💄 Improve GramsPerHourOfDay curve form
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Colman Lopes <[email protected]>
  • Loading branch information
LeoColman committed Jan 16, 2025
1 parent 1d4a686 commit ca96cdb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import br.com.colman.petals.use.repository.Use
import br.com.colman.petals.use.repository.totalGrams
import com.github.mikephil.charting.data.Entry
import com.github.mikephil.charting.data.LineDataSet
import com.github.mikephil.charting.data.LineDataSet.Mode.HORIZONTAL_BEZIER

private fun calculateGramDistributionPerHour(uses: List<Use>): List<Entry> {
val hoursInDay = (0..23)
Expand All @@ -22,5 +23,6 @@ fun createDistributionPerHourDataset(days: Int, uses: List<Use>, label: String):
fillColor = createColor(days).toArgb()
color = createColor(days).toArgb()
setCircleColor(createColor(days).toArgb())
mode = HORIZONTAL_BEZIER
}
}

0 comments on commit ca96cdb

Please sign in to comment.