diff --git a/YChartsLib/src/main/java/co/yml/charts/common/utils/DataUtils.kt b/YChartsLib/src/main/java/co/yml/charts/common/utils/DataUtils.kt index 0a5ba24b..68fb4b95 100644 --- a/YChartsLib/src/main/java/co/yml/charts/common/utils/DataUtils.kt +++ b/YChartsLib/src/main/java/co/yml/charts/common/utils/DataUtils.kt @@ -219,7 +219,7 @@ object DataUtils { BarChartType.HORIZONTAL -> { Point( "%.2f".format(Random.nextDouble(1.0, maxRange.toDouble())).toFloat(), - "%.2f".format(Random.nextDouble(1.0, maxRange.toDouble())).toFloat() + index.toFloat() ) } }