Skip to content

Commit

Permalink
💄 Set graph line properties and change color scheme
Browse files Browse the repository at this point in the history
Enabled filled lines and updated color scheme for improved readability.
Modified fillColor to semi-transparent Cyan, adjusted line color to
Cyan, and changed value text color to Gray.

Signed-off-by: Leonardo Colman Lopes <[email protected]>
  • Loading branch information
LeoColman committed Oct 9, 2024
1 parent ae0a9c7 commit 7f7b3ce
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package br.com.colman.petals.statistics.graph.data

import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.Color.Companion.Blue
import androidx.compose.ui.graphics.Color.Companion.Gray
import androidx.compose.ui.graphics.Color.Companion.Green
import androidx.compose.ui.graphics.toArgb
import androidx.compose.ui.res.stringResource
Expand All @@ -24,11 +26,11 @@ fun createAllTimeLineDataSet(entryList: List<Entry>, label: String): LineDataSet
valueFormatter = GramsValueFormatter
lineWidth = 6f
setDrawCircles(true)
setDrawFilled(false)
setDrawFilled(true)
setDrawValues(true)
fillColor = Green.toArgb()
color = Green.toArgb()
valueTextColor = Blue.toArgb()
fillColor = Color.Cyan.copy(alpha = 0.3f).toArgb()
color = Color.Cyan.toArgb()
valueTextColor = Gray.toArgb()
valueTextSize = 14f
}
}
Expand Down

0 comments on commit 7f7b3ce

Please sign in to comment.