From 3a0840fdf2813f0e6f320a50eb8a3584de416903 Mon Sep 17 00:00:00 2001 From: oliexdev Date: Sun, 3 Aug 2025 14:51:11 +0200 Subject: [PATCH] make line chart point a little bit transparent and smaller --- .../health/openscale/ui/screen/components/LineChart.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/android_app/app/src/main/java/com/health/openscale/ui/screen/components/LineChart.kt b/android_app/app/src/main/java/com/health/openscale/ui/screen/components/LineChart.kt index aa01dbd4..88e44313 100644 --- a/android_app/app/src/main/java/com/health/openscale/ui/screen/components/LineChart.kt +++ b/android_app/app/src/main/java/com/health/openscale/ui/screen/components/LineChart.kt @@ -636,10 +636,10 @@ private fun createLineSpec(color: Color, statisticsMode : Boolean): LineCartesia // Points on the line are shown unless in statistics mode pointProvider = if (!statisticsMode) { LineCartesianLayer.PointProvider.single( - LineCartesianLayer.point(ShapeComponent(fill(color), CorneredShape.Pill)) - ) } else null - // dataLabel = null, // Keine Datenbeschriftungen an den Punkten - //pointConnector = LineCartesianLayer.PointConnector.cubic() // Standard, kann explizit sein + LineCartesianLayer.point(ShapeComponent(fill(color.copy(alpha = 0.7f)), CorneredShape.Pill), 6.dp) + ) } else null, + // dataLabel = null, // No data labels on points + pointConnector = LineCartesianLayer.PointConnector.cubic() ) }