Pie Chart Label BackColors

2 posts, 0 answers
  1. Laura
    Laura avatar
    11 posts
    Member since:
    Jan 2014

    Posted 26 Aug 2015 Link to this post


     The label in my Pie Chart has the same backcolor as the Series.  How do I make that white?



  2. Ralitsa
    Ralitsa avatar
    192 posts

    Posted 27 Aug 2015 Link to this post

    Hello Laura,

    Thank you for contacting us. 

    You can subscribe to the LabelFormatting event and set the BackColor and BorderColor to Color.Transparent. Here is the code snippet: 
    private void Form1_Load(object sender, EventArgs e)
        this.radChartView1.AreaType = ChartAreaType.Pie;
        PieSeries series = new PieSeries();
        series.DataPoints.Add(new PieDataPoint(50, "Germany"));
        series.DataPoints.Add(new PieDataPoint(70, "United States"));
        series.DataPoints.Add(new PieDataPoint(40, "France"));
        series.DataPoints.Add(new PieDataPoint(25, "United Kingdom"));
        series.ShowLabels = true;
        this.radChartView1.View.Palette = KnownPalette.Arctic;
        this.radChartView1.LabelFormatting += radChartView1_LabelFormatting;
    void radChartView1_LabelFormatting(object sender, ChartViewLabelFormattingEventArgs e)
        e.LabelElement.BackColor = Color.Transparent;
        e.LabelElement.BorderColor = Color.Transparent;

    More information about customization of chart labels can be found on the following link: ChartView >> Customization >> Formatting Series Labels

    I hope this helps. Should you have further questions please do not hesitate to write back.

    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
Back to Top