This is a migrated thread and some comments may be shown as answers.

Pie chart

1 Answer 18 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Shajiya
Top achievements
Rank 1
Shajiya asked on 03 Oct 2016, 12:41 PM

Hi,

Can we customize the default look of Pie chart?

We do not want to show the inner circle provided by the pie chart, Let us know how can we remove the same.

1 Answer, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 03 Oct 2016, 02:49 PM
Hello Shajiya,

You can customize the UI for Windows Phone 8 Chart PieSeries fill via the SliceStyles, go here to see an example.

Below is the example's code and here is a screenshot of the result at run-time:

<chart:RadPieChart>
    <chart:PieSeries>
       <chart:PieSeries.SliceStyles>
           <Style TargetType="Path">
              <Setter Property="Fill" Value="Orange"/>
           </Style>
 
           <Style TargetType="Path">
              <Setter Property="Fill" Value="Gray"/>
           </Style>
 
           <Style TargetType="Path">
              <Setter Property="Fill" Value="Cyan"/>
           </Style>
 
           <Style TargetType="Path">
              <Setter Property="Fill" Value="Purple"/>
           </Style>
 
           <Style TargetType="Path">
              <Setter Property="Fill" Value="Green"/>
           </Style>
       </chart:PieSeries.SliceStyles>
 
       <chart:PieSeries.DataPoints>
           <chartEngine:PieDataPoint Value="10"/>
           <chartEngine:PieDataPoint Value="4"/>
           <chartEngine:PieDataPoint Value="7"/>
           <chartEngine:PieDataPoint Value="11"/>
           <chartEngine:PieDataPoint Value="15"/>
       </chart:PieSeries.DataPoints>
  </chart:PieSeries>
</chart:RadPieChart>


Please let us know if you have any further questions or concerns. Thank you for contacting Support and for choosing Telerik by Progress!

Regards,
Lance | Tech Support Engineer, Sr.
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Shajiya
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
Share this question
or