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

Styling the chart control (Pie)

1 Answer 54 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Shaun
Top achievements
Rank 1
Shaun asked on 11 May 2012, 06:58 PM
I've done a considerable amount of research, but I just can't seem to figure out how to modify the look of the Chart control - specifically with PieSeriesDefinition.

Currently, my pie chart looks like the pie chart on this page: 
http://www.telerik.com/help/silverlight/radchart-features-chart-types-2d-charts.html

I would like to remove the 'bevel' effect and make it look more like this:

http://demos.telerik.com/silverlight/#Chart/Gallery/Pie

My current guess is that I can do that with a theme.   Is there a relatively straightforward to way to do it without adding a theme?  I believe this link is supposed to help me:

http://www.telerik.com/help/silverlight/radchart-styling-and-appearance-styling-chart-series.html

However, setting PieSeriesDefinition.ItemStyle to a style targetting "Shape":
<telerik:PieSeriesDefinition.ItemStyle>
    <Style TargetType="Shape">
        <Setter Property="Fill" Value="Orange" />
    </Style>
</telerik:PieSeriesDefinition.ItemStyle>


Results in a runtime error:

System.CrossAppDomainMarshaledException was unhandled
Message: System.NotImplementedException: The method or operation is not implemented.

1 Answer, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 16 May 2012, 11:26 AM
Hello Shaun,

You can use the exposed "MaskVisibility" property of the pie series definition. Setting it to collapsed will hide the masks over the pie series.
<telerik:SeriesMapping.SeriesDefinition>
    <telerik:PieSeriesDefinition MaskVisibility="Collapsed" />
</telerik:SeriesMapping.SeriesDefinition>

Please try it and let us know how it works on your end.

All the best,
Sia
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Chart
Asked by
Shaun
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or