Skip to content

Commit 4968efb

Browse files
authored
Merge pull request #114 from yml-org/bug/bar_chart_fix
Fixed the horizontal bar chart mapping.
2 parents 92ca2d7 + c8f5bf8 commit 4968efb

File tree

1 file changed

+1
-1
lines changed
  • YChartsLib/src/main/java/co/yml/charts/common/utils

1 file changed

+1
-1
lines changed

YChartsLib/src/main/java/co/yml/charts/common/utils/DataUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ object DataUtils {
219219
BarChartType.HORIZONTAL -> {
220220
Point(
221221
"%.2f".format(Random.nextDouble(1.0, maxRange.toDouble())).toFloat(),
222-
"%.2f".format(Random.nextDouble(1.0, maxRange.toDouble())).toFloat()
222+
index.toFloat()
223223
)
224224
}
225225
}

0 commit comments

Comments
 (0)