diff --git a/gauguin-app/src/main/kotlin/org/piepmeyer/gauguin/ui/statistics/StatisticsActivity.kt b/gauguin-app/src/main/kotlin/org/piepmeyer/gauguin/ui/statistics/StatisticsActivity.kt index 6d0a47f8..f2932572 100644 --- a/gauguin-app/src/main/kotlin/org/piepmeyer/gauguin/ui/statistics/StatisticsActivity.kt +++ b/gauguin-app/src/main/kotlin/org/piepmeyer/gauguin/ui/statistics/StatisticsActivity.kt @@ -166,7 +166,11 @@ class StatisticsActivity : AppCompatActivity() { color = MaterialColors.getColor(chartView.rootView, R.attr.colorCustomColor1), ), ) - chartView.chart?.decorations = listOf(averageLine) + + chartView.chart = + chartView.chart!!.copy( + decorations = listOf(averageLine), + ) } } diff --git a/gauguin-app/src/main/kotlin/org/piepmeyer/gauguin/ui/statistics/StatisticsDurationDiagramFragment.kt b/gauguin-app/src/main/kotlin/org/piepmeyer/gauguin/ui/statistics/StatisticsDurationDiagramFragment.kt index 709e70d8..053effc6 100644 --- a/gauguin-app/src/main/kotlin/org/piepmeyer/gauguin/ui/statistics/StatisticsDurationDiagramFragment.kt +++ b/gauguin-app/src/main/kotlin/org/piepmeyer/gauguin/ui/statistics/StatisticsDurationDiagramFragment.kt @@ -46,14 +46,17 @@ class StatisticsDurationDiagramFragment : val axis = binding.overallDuration.chart!!.startAxis as VerticalAxis - binding.overallDuration - .chart!! - .startAxis = - axis.copy( - valueFormatter = { _, value, _ -> - Utils.displayableGameDuration(value.toInt().seconds) - }, - ) + binding.overallDuration.chart = + binding.overallDuration + .chart!! + .copy( + startAxis = + axis.copy( + valueFormatter = { _, value, _ -> + Utils.displayableGameDuration(value.toInt().seconds) + }, + ), + ) binding.overallDurationMinimum.text = Utils.displayableGameDuration(overall.solvedDurationMinimum.seconds) diff --git a/libs.versions.toml b/libs.versions.toml index e500c9cc..2a0f1d38 100644 --- a/libs.versions.toml +++ b/libs.versions.toml @@ -66,6 +66,7 @@ thirdparty-ferriswheel = { group = "com.github.meikpiep", name = "Ferris-Wheel", thirdparty-navigationdrawer = { group = "com.mikepenz", name = "materialdrawer", version = "9.0.2" } thirdparty-balloon = { group = "com.github.skydoves", name = "balloon", version = "1.6.10" } thirdparty-vico = { group = "com.patrykandpatrick.vico", name = "views", version = "2.0.0-beta.1" } +thirdparty-vico = { group = "com.patrykandpatrick.vico", name = "views", version = "2.0.0-beta.2" } thirdparty-androidplot = { group = "com.androidplot", name = "androidplot-core", version = "1.5.11" } thirdparty-leakcanary = { group = "com.squareup.leakcanary", name = "leakcanary-android", version = "2.14" }