Skip to content

Commit

Permalink
Fix the title when drag ends.
Browse files Browse the repository at this point in the history
In current code, the last focussed bar label becomes the title when drag is finished.
  • Loading branch information
ankur2136 committed Aug 2, 2024
1 parent 0d5e0c9 commit 752482e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private fun ChartContent(dataSet: MultiChartDataSet, style: StackedBarChartStyle
colors = colors
) { selectedIndex ->
title = when (selectedIndex) {
NO_SELECTION -> title
NO_SELECTION -> dataSet.data.title
else -> {
dataSet.data.items[selectedIndex].label
}
Expand Down

0 comments on commit 752482e

Please sign in to comment.