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

how to remove Chart Series border color

4 Answers 303 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Shoba
Top achievements
Rank 1
Shoba asked on 17 Feb 2012, 05:48 PM
how to remove Chart Series border color

4 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 20 Feb 2012, 11:49 PM
SAI:

If you do not want the border color to show, you can do the following:

chartSeries.Appearance.Border.Width = 0;

Hope this helps.
0
Shoba
Top achievements
Rank 1
answered on 21 Feb 2012, 08:06 PM

 Hi,

    Thanks for your help.

              I am using grouping data  and CustomPalettes for Chart Series colors. 
               I used your code but it's not working.
             Please any help.
   

            ChartSeries chartSeries = new ChartSeries();

            chartSeries.Type = ChartSeriesType.Bar;

            chartSeries.Appearance.Border.Width = 0;

            RadChart1.AddChartSeries(chartSeries);

                        

 

            RadChart1.SkinsOverrideStyles = true;

           

            Palette seriespalette = new Palette("seriespalette", barColors, true);

            RadChart1.CustomPalettes.Add(seriespalette);

            RadChart1.SeriesPalette = "seriespalette";

           

          

            RadChart1.DataSource = AreaData;

            RadChart1.DataGroupColumn = "Period";

            RadChart1.PlotArea.XAxis.DataLabelsColumn = "Year";

            RadChart1.Legend.Appearance.GroupNameFormat = "#VALUE";

            RadChart1.DataBind();

Thanks,
SAI.

0
Richard
Top achievements
Rank 1
answered on 22 Feb 2012, 02:55 PM
SAI:

It is odd that this does not work for you. I verified that it works for me. Also setting the "Visible" property of the border to false hides the color that was assigned.

This code works for me:
private void LoadChart()
{
    RadChart1.Series.Clear();
 
    ChartSeries c = new ChartSeries("Series1", ChartSeriesType.Bar);
    c.AddItem(5);
    c.AddItem(11);
    c.AddItem(25);
    c.AddItem(23);
    c.Appearance.Border.Color = System.Drawing.Color.Red;
    // Either of the two following settings can be set to hide the red border coloar assigned above
    c.Appearance.Border.Width = 0;
    c.Appearance.Border.Visible = false;
 
    RadChart1.AddChartSeries(c);
 
}

Regards,
0
Shoba
Top achievements
Rank 1
answered on 23 Feb 2012, 12:00 AM
Hi,

Working fine!!!

Thanks,
Sai,
Tags
Chart (Obsolete)
Asked by
Shoba
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Shoba
Top achievements
Rank 1
Share this question
or