Skip to content

Instantly share code, notes, and snippets.

@developerchunk
Last active December 5, 2022 03:27
Show Gist options
  • Save developerchunk/52f474f0d896334b03d8dcb5636493b6 to your computer and use it in GitHub Desktop.
Save developerchunk/52f474f0d896334b03d8dcb5636493b6 to your computer and use it in GitHub Desktop.
Full Documentation on Medium- https://link.medium.com/8syGF0pUuub
// graph
barValue.forEach {
Box(
modifier = Modifier
.padding(start = barGraphWidth, bottom = 5.dp)
.clip(CircleShape)
.width(barGraphWidth)
.fillMaxHeight(it)
.background(Purple500)
.clickable {
Toast
.makeText(context, it.toString(), Toast.LENGTH_SHORT)
.show()
}
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment