Skip to content

Commit b29350b

Browse files
authored
Fix color and stroke width of y axis properties.
1 parent d5c4756 commit b29350b

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)