We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d5c4756 + b29350b commit b8d6fadCopy full SHA for b8d6fad
compose-charts/src/commonMain/kotlin/ir/ehsannarmani/compose_charts/extensions/GridLines.kt
@@ -40,10 +40,10 @@ fun DrawScope.drawGridLines(
40
for (i in 0 until yAxisProperties.lineCount) {
41
val x = _size.width.spaceBetween(itemCount = yAxisProperties.lineCount, index = i)
42
drawLine(
43
- brush = xAxisProperties.color,
+ brush = yAxisProperties.color,
44
start = Offset(x + xPadding, 0f + yPadding),
45
end = Offset(x + xPadding, _size.height + yPadding),
46
- strokeWidth = xAxisProperties.thickness.toPx(),
+ strokeWidth = yAxisProperties.thickness.toPx(),
47
pathEffect = yAxisPathEffect
48
)
49
}
0 commit comments