甜甜圈饼图是否可以采用 xamarin 形式?

Is Doughnut Pie chart possible in xamarin forms?

是否可以使用 oxyplot 或任何其他 library.If 在 xamarin 表单(跨平台)中创建如下所示的甜甜圈饼图 library.If 是的,你能帮我 link 或示例吗?我确实找到了实现饼图的解决方案,但找不到实现甜甜圈饼图的解决方案。

非常感谢任何帮助。

我终于通过参考以下链接找到了答案的解决方案:

and How can i create doughnut chart using oxyplot in xamarin.android?

public class SalesVM
{
    private PlotModel modelP1;
    public SalesVM()
    {
        modelP1 = new PlotModel { Title = "Pie Sample1" };

        dynamic seriesP1 = new PieSeries { StrokeThickness = 2.0, InsideLabelPosition = 0.8, AngleSpan = 360, StartAngle = 0, InnerDiameter = 0.8};

        seriesP1.Slices.Add(new PieSlice("Africa", 1030) { IsExploded = false, Fill = OxyColors.PaleVioletRed });
        seriesP1.Slices.Add(new PieSlice("Americas", 929) { IsExploded = true });
        seriesP1.Slices.Add(new PieSlice("Asia", 4157) { IsExploded = true });
        seriesP1.Slices.Add(new PieSlice("Europe", 739) { IsExploded = true });
        seriesP1.Slices.Add(new PieSlice("Oceania", 35) { IsExploded = true });

        modelP1.Series.Add(seriesP1);

    }

    public PlotModel Model1
    {
        get { return modelP1; }
        set { modelP1 = value; }
    }
}