Doughnut label color problem

4 posts, 0 answers
  1. Enill
    Enill avatar
    41 posts
    Member since:
    Apr 2010

    Posted 13 May 2010 Link to this post

    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!
  2. Enill
    Enill avatar
    41 posts
    Member since:
    Apr 2010

    Posted 13 May 2010 Link to this post

    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!
  3. Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 18 May 2010 Link to this post

    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.
  4. Enill
    Enill avatar
    41 posts
    Member since:
    Apr 2010

    Posted 18 May 2010 Link to this post

    Thanks i'll try that.

Back to Top