Open azri92 opened 6 years ago
You can achieve this effect by animating the PieDataSet selectionShift property itself. Run this in the onValueSelected of the chartValueSelectedListener of your PieChart:
ValueAnimator.ofFloat(0f, 1f).apply { duration = 200 addUpdateListener { pieDataSet.selectionShift = it * 8f pieChartView.invalidate() } start() }
Currently, the default highlighting pops in and out without any easing - making it look jumpy. Is there a way to add some easing to the highlight?