Skip to content

Commit

Permalink
Fix bug of getYValueRange when change the KChart index
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyiqian committed Apr 15, 2021
1 parent c87ca5c commit 870cd97
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ open class KChart(

override fun getYValueRange(startIndex: Int, endIndex: Int, result: FloatArray) {

if (chartConfig.index != null && chartConfig.index != lastCalculateIndexType) {
if (chartConfig.index == null || chartConfig.index != lastCalculateIndexType) {
calculateIndexList()
}

Expand Down

0 comments on commit 870cd97

Please sign in to comment.