【问题标题】:Shinobi : position of the spokes in pieShinobi:派中辐条的位置
【发布时间】:2017-06-20 07:00:47
【问题描述】:

我想将辐条放置在饼图的“外面”。 我的问题是,在顶部和底部,辐条需要脱离图表视图的“框”。 这会导致辐条倒置并放置在错误的方向上。

我放了

self.clipsToBounds = false
self.canvas.clipsToBounds = false

我的问题是如何说服图表超出界限,或者如何在图表周围放置填充。

马尔科

【问题讨论】:

    标签: ios canvas pie-chart shinobi cliptobounds


    【解决方案1】:

    https://forum.shinobicontrols.com/t/position-of-the-spokes-in-pie/1693 粘贴我的回答,以防它对这里的任何人有所帮助:

    您可以通过设置donutSeries.outerRadius调整圆环图的半径,通过设置donutSeries.style().spokeStyle.length调整辐条的长度。减小外半径并可能增加辐条长度应该会给您想要的效果。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-12-13
      • 2012-07-15
      • 2013-03-02
      • 2011-12-11
      • 2012-11-25
      • 2018-08-12
      • 1970-01-01
      相关资源
      最近更新 更多