Created
December 31, 2021 13:25
-
-
Save PiotrPrus/2e2d703632b6014e7ad14a0b11340d9f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val barAreas = list.mapIndexed { index, item -> | |
BarArea( | |
index = index, | |
data = item, | |
xStart = horizontalPadding + distance.times(index) - distance.div(2), | |
xEnd = horizontalPadding + distance.times(index) + distance.div(2) | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment