Skip to content

Commit b8d6fad

Browse files
authored
Merge pull request #73 from kwadkore/gridproperties-confusion-1
Fix color and stroke width of y axis properties.
2 parents d5c4756 + b29350b commit b8d6fad

File tree

1 file changed

+2
-2
lines changed
  • compose-charts/src/commonMain/kotlin/ir/ehsannarmani/compose_charts/extensions

1 file changed

+2
-2
lines changed

compose-charts/src/commonMain/kotlin/ir/ehsannarmani/compose_charts/extensions/GridLines.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ fun DrawScope.drawGridLines(
4040
for (i in 0 until yAxisProperties.lineCount) {
4141
val x = _size.width.spaceBetween(itemCount = yAxisProperties.lineCount, index = i)
4242
drawLine(
43-
brush = xAxisProperties.color,
43+
brush = yAxisProperties.color,
4444
start = Offset(x + xPadding, 0f + yPadding),
4545
end = Offset(x + xPadding, _size.height + yPadding),
46-
strokeWidth = xAxisProperties.thickness.toPx(),
46+
strokeWidth = yAxisProperties.thickness.toPx(),
4747
pathEffect = yAxisPathEffect
4848
)
4949
}

0 commit comments

Comments
 (0)