1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-28 10:40:47 +02:00

make line chart point a little bit transparent and smaller

This commit is contained in:
oliexdev
2025-08-03 14:51:11 +02:00
parent e3698828ad
commit 3a0840fdf2

View File

@@ -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()
)
}