gpt4 book ai didi

ios - 如何拉伸(stretch)PieChartView父View的整个宽度和长度

转载 作者:行者123 更新时间:2023-11-30 10:50:05 26 4
gpt4 key购买 nike

我使用以下charts library并具有以下自定义控件:

enter image description here

但是加载图表后我得到了以下图片:

enter image description here

很明显,PieChartView 的尺寸比输出图表的尺寸更大。我的问题是如何制作最终图表来占据整个 PieChartView?

最佳答案

找到了解决方案。配置PieChartDataSet时

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

并将集合的 SelectionShift 设置为零(将禁用切片的选择)

set.selectionShift = 0

关于ios - 如何拉伸(stretch)PieChartView父View的整个宽度和长度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54781741/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com