diff --git a/charts/src/commonMain/kotlin/io/github/dautovicharis/charts/BarStackedChartView.kt b/charts/src/commonMain/kotlin/io/github/dautovicharis/charts/BarStackedChartView.kt index f7ff8f6..7f130c6 100644 --- a/charts/src/commonMain/kotlin/io/github/dautovicharis/charts/BarStackedChartView.kt +++ b/charts/src/commonMain/kotlin/io/github/dautovicharis/charts/BarStackedChartView.kt @@ -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 }