I am trying to alter the style of the chart after a style has been set eg style03.
I want to change the labels. I have it set to two column series labels and want to remove the border and background colour of the labels. I also want to remove the background colour and border of the chart area.
Here is the code I use but it seems to be ignored -
Code: Select all
theChart.Area = new StiPieArea();
theChart.Area.BorderColor = System.Drawing.Color.Transparent;
theChart.Area.Brush = new Stimulsoft.Base.Drawing.StiEmptyBrush();
theChart.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Transparent, 0, Stimulsoft.Base.Drawing.StiPenStyle.None);
theChart.Brush = new Stimulsoft.Base.Drawing.StiEmptyBrush();
// set a series
StiSeries thePieSeries = new StiPieSeries();
thePieSeries.SeriesLabels = new Stimulsoft.Report.Chart.StiTwoColumnsPieLabels();
thePieSeries.SeriesLabels.BorderColor = System.Drawing.Color.Transparent;
thePieSeries.SeriesLabels.Brush = new Stimulsoft.Base.Drawing.StiEmptyBrush();
thePieSeries.SeriesLabels.LabelColor = System.Drawing.Color.FromArgb(255, 105, 105, 105);
theChart.SeriesLabels = new Stimulsoft.Report.Chart.StiTwoColumnsPieLabels();
theChart.SeriesLabels.BorderColor = System.Drawing.Color.Transparent;
theChart.SeriesLabels.Brush = new Stimulsoft.Base.Drawing.StiEmptyBrush();
theChart.SeriesLabels.LegendValueType = StiSeriesLabelsValueType.Argument;
theChart.SeriesLabels.ValueType = StiSeriesLabelsValueType.Argument;
theChart.Series.Add(thePieSeries);
Am I missing something or is the style (style03) supposed to override all of the above?
Thanks,
Chris