SignalProgressBarChart

fun SignalProgressBarChart(progress: () -> Float, modifier: Modifier = Modifier, totalBlocks: Int = 10, trackColor: ChartColor = Color.Gray.asSolidChartColor(), progressColor: ChartColor = Color.Green.asSolidChartColor(), gapRatio: Float = 0.1f)

A composable function that displays a signal bar chart with solid colors.

Parameters

progress

A lambda function that returns the current progress as a Float.

modifier

A Modifier to be applied to the Canvas.

trackColor

The color to be used for the track.

progressColor

The color to be used for the progress.

gapRatio

A Float representing the ratio of the gap between blocks.