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


i need create app shows chart highcharts. did't library that. i'm using oxyplot create charts. have create pie chart using oxyplot this.

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;     } 

but need create doughnut chart click listeners , effects on click. how can this?

thanks in advance

@nisar ahmad find below codes using oxyplot libraries doughnut chart.

    public static plotmodel simplemodel()     {         var modelp1 = new plotmodel { title = "pie sample1" };          dynamic seriesp1 = new pieseries { strokethickness = 2.0, insidelabelposition = 0.5, anglespan = 360, startangle = 0, innerdiameter = 0.4 };          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;      } 

Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -