4 Answers, 1 is accepted
If you do not want the border color to show, you can do the following:
chartSeries.Appearance.Border.Width = 0;
Hope this helps.
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.
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,
Working fine!!!
Thanks,
Sai,