I'm having quite a few problems styling a Telerik.Reporting.Chart object. The object itself was created using the designer, but the actual information for the chart, such as title, series, etc is filled in at runtime programmatically.
First of all, I was attempting to set the colors for different series in the following manner:
But the colors are overridden by the style placed on the chart in the designer. However, if the FillType is set to Solid, I have no problems setting the color.
Second of all, I found this little oddity when trying to set the background color of the entire chart. When setting the background fill as so:
It ended up using the default background from the skin. However, if I change "Color.White" to "Color.FromArgb(255,255,255)" (still white) it works properly.
Finally, how do you change the font size for the axis labels? My X-axis labels are a little too wide for the text that's in them and I need to shrink the font a little, but I couldn't find any way to do so.
First of all, I was attempting to set the colors for different series in the following manner:
salesSeries.Appearance.FillStyle.FillType = Telerik.Reporting.Charting.Styles.FillType.Gradient;
salesSeries.Appearance.FillStyle.MainColor = Color.White;
salesSeries.Appearance.FillStyle.SecondColor = Color.Black;
But the colors are overridden by the style placed on the chart in the designer. However, if the FillType is set to Solid, I have no problems setting the color.
Second of all, I found this little oddity when trying to set the background color of the entire chart. When setting the background fill as so:
resultChart.Appearance.FillStyle.FillType = Telerik.Reporting.Charting.Styles.FillType.Solid;
resultChart.Appearance.FillStyle.MainColor = Color.White;
It ended up using the default background from the skin. However, if I change "Color.White" to "Color.FromArgb(255,255,255)" (still white) it works properly.
Finally, how do you change the font size for the axis labels? My X-axis labels are a little too wide for the text that's in them and I need to shrink the font a little, but I couldn't find any way to do so.