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

RadChart Rounded Corners Issue

3 Answers 147 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Jeff R
Top achievements
Rank 1
Jeff R asked on 14 Oct 2009, 12:37 AM
Hi,

I have implemented round corners on my chart's background.  For the most part, Its works great - however, for some reason, I have another color (gray) appearing in the corner area, outside the rounded edge.  I can't figure out where or what controls that color.  Any ideas?  I have attached an image of my chart.  Below is the code related to the chart background and rounded corners.

RadChart1.Appearance.FillStyle.FillType = FillType.Solid;
RadChart1.Appearance.FillStyle.MainColor = Color.FromArgb(229, 229, 229);
RadChart1.Appearance.Border.Color = Color.FromArgb(0, 0, 0);

RadChart1.Appearance.Corners.BottomLeft = CornerType.Round;
RadChart1.Appearance.Corners.BottomRight = CornerType.Round;
RadChart1.Appearance.Corners.TopLeft = CornerType.Round;
RadChart1.Appearance.Corners.TopRight = CornerType.Round;
RadChart1.Appearance.Corners.RoundSize = 20;

Thanks,

Jeff

3 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 16 Oct 2009, 09:02 AM
Hello Jeff,

Do you use jpeg image format by any change? It does not support transparent background. Please, set the  ChartImageFormat  property to ImageFormat.Png and let us know if this helps.

Kind regards,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jeff R
Top achievements
Rank 1
answered on 20 Oct 2009, 03:08 PM
Hi Ves,

Set to the chart to use the png format - but unforfunately did not fix the issue.

Any other ideas?

Thanks for you help.
0
Ves
Telerik team
answered on 22 Oct 2009, 07:47 AM
Hi Jeff,

Another guess would be IE6 having problems with alpha transparency. If that is the case, you can find some articles dedicated to the issue, like this one.

However, if that is not the case, I would guess there is another element, adding this color. You can try the following line to force a transparent background:

RadChart1.Style.Add(HtmlTextWriterStyle.BackgroundColor, "transparent");

Best regards,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Chart (Obsolete)
Asked by
Jeff R
Top achievements
Rank 1
Answers by
Ves
Telerik team
Jeff R
Top achievements
Rank 1
Share this question
or