Forum Xamarin.Android

Oxyplot customization.(Charts)

kayzeeprachakayzeepracha USMember
edited May 2016 in Xamarin.Android

How can i add effects on oxyplot charts like highcharts effects same like this
http://www.highcharts.com/demo/pie-basic
here is my code:

var plotView = new PlotView (this);
plotView.Model = PieViewModel();

this.AddContentView (plotView,
        new ViewGroup.LayoutParams (ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent));

public PlotModel PieViewModel()
{
    var modelP1 = new PlotModel { Title = "Pie Sample1" };
    dynamic seriesP1 = new PieSeries { StrokeThickness = 2.0, InsideLabelPosition = 0.8, AngleSpan = 360, StartAngle = 0 };
    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);


    return modelP1;
}

if any one have any solution please share it with me thanks

Sign In or Register to comment.