how to remove Chart Series border color

Thread is closed for posting
5 posts, 0 answers
  1. Shoba
    Shoba avatar
    5 posts
    Member since:
    Feb 2012

    Posted 17 Feb 2012 Link to this post

    how to remove Chart Series border color
  2. jumpstart
    jumpstart avatar
    479 posts
    Member since:
    Nov 2011

    Posted 20 Feb 2012 Link to this post

    SAI:

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

    chartSeries.Appearance.Border.Width = 0;

    Hope this helps.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shoba
    Shoba avatar
    5 posts
    Member since:
    Feb 2012

    Posted 21 Feb 2012 Link to this post


     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.

  5. jumpstart
    jumpstart avatar
    479 posts
    Member since:
    Nov 2011

    Posted 22 Feb 2012 Link to this post

    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,
  6. Shoba
    Shoba avatar
    5 posts
    Member since:
    Feb 2012

    Posted 22 Feb 2012 Link to this post

    Hi,

    Working fine!!!

    Thanks,
    Sai,
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017