RadChart Rounded Corners Issue

Thread is closed for posting
4 posts, 0 answers
  1. Jeff R
    Jeff R avatar
    6 posts
    Member since:
    Oct 2009

    Posted 13 Oct 2009 Link to this post

    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
  2. Ves
    Admin
    Ves avatar
    2927 posts

    Posted 16 Oct 2009 Link to this post

    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.
  3. Jeff R
    Jeff R avatar
    6 posts
    Member since:
    Oct 2009

    Posted 20 Oct 2009 Link to this post

    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.
  4. Ves
    Admin
    Ves avatar
    2927 posts

    Posted 22 Oct 2009 Link to this post

    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.
Back to Top