Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stretch PieChartView the entire width and length of the parent View

I use the following charts library and have the following custom control:

enter image description here

But after chart loaded i got the following picture:

enter image description here

Its obvious that PieChartView has greater sizes than output chart. My question is how to make final chart to occupy entire PieChartView?

like image 573
Andrey M. Avatar asked Oct 22 '25 02:10

Andrey M.


1 Answers

Found a solution. When configuring PieChartDataSet

let set = PieChartDataSet(...)
//configuring

and set selectionShift of the set to the zero (selection of the slices will be disabled)

set.selectionShift = 0
like image 88
Andrey M. Avatar answered Oct 23 '25 16:10

Andrey M.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!