This is a migrated thread and some comments may be shown as answers.
Doughnut label color problem
3 Answers 31 Views
This is a migrated thread and some comments may be shown as answers.
Enill
Top achievements
Rank 1
Enill asked on 13 May 2010, 04:08 PM
Hi,
i am trying to apply a radial color texture on a doughnut chart but the problem is that the same texture also apply on the connected labels.

How can i remove this texture from the label? Change the color or make them transparent?

I attached an image so you can better visualize my problem.

Thanks in advance!

3 Answers, 1 is accepted

Sort by
0
Enill
Top achievements
Rank 1
answered on 13 May 2010, 04:44 PM
Alright, i was able to remove the background color of the different labels by creating and applying a new style.

There is another problem tho, now the spider connector dissapeared, how can i make them visible again?

My code:
Style sty = new Style(typeof(SeriesItemLabel)); 
sty.Setters.Add(new Setter(SeriesItemLabel.ForegroundProperty, new SolidColorBrush(Colors.Black))); 
sty.Setters.Add(new Setter(SeriesItemLabel.ConnectorVisibilityProperty, true)); // doesnt work! 
 
rc.DefaultView.ChartArea.DataSeries[0].Definition.SeriesItemLabelStyle = sty; 





Thanks in advance!
0
Dwight
Telerik team
answered on 18 May 2010, 10:16 AM
Hello Enill,

The ConnectorVisibility property is bound to the LabelSettings of the PieSeriesDefinition, and that overrides the value set through the style. You need to set the visibility through LabelSettings:
PieSeriesDefinition def = new PieSeriesDefinition();
def.LabelSettings.ShowConnectors = true;
def.LabelSettings.SpiderModeEnabled = true;

You can set it through XAML as well.

Best,
Joshua
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Enill
Top achievements
Rank 1
answered on 18 May 2010, 12:09 PM
Thanks i'll try that.

Tags
Chart
Asked by
Enill
Top achievements
Rank 1
Answers by
Enill
Top achievements
Rank 1
Dwight
Telerik team
Share this question
or