RadChart colors are not rendered correctly in IE

Thread is closed for posting
2 posts, 1 answers
  1. Raffy
    Raffy avatar
    4 posts
    Member since:
    Mar 2009

    Posted 10 Jun 2009 Link to this post


    I wanted to achieve the color rgb(175, 223, 229) in my chart, this is ok in FF3 as you'll get exactly the colors you define.
    However, in IE the rendered colors are different, it becomes rgb(167, 219, 226). So I made some ajdustments to achieve rgb(175, 223, 229).
    Unfortunately, I cant get the red part (175) to render correctly.

    I used the following rgb colors:
    rgb(182, 226, 232) becomes rgb(174, 223, 229)
    rgb(183, 226, 232) becomes rgb(176, 223, 229)

    Is there anyway to render the color rgb(175, 223, 229) correctly in IE?

    Thank you in advance.

  2. Answer
    Ves avatar
    2927 posts

    Posted 15 Jun 2009 Link to this post

    Hi Raffy,

    I am afraid this is an issue with the IE displaying images. You can save RadChart to an image and check the colors in an image viewer - they will be the correct ones. I went a step further and used Paint to create a simple image, showing just a solid color (175, 223, 229). The color for the .png image was still incorrect in IE - (167, 219, 226) - exactly as you noticed. This makes me believe, it is the IE that does not display .png files correctly and not RadChart rendering wrong colors.

    Still, it seems the issue does not exist for .jpg files. You can set RadChart.ChartImageFormat property to ImageFormat.Jpeg. Note, that under the default settings jpeg compression will change (175, 223, 229) to (175, 222, 228). If this is not acceptable you can use RadChart.GetBitmap() method to obtain the Bitmap object, which you can then save to an image using different encoder parameters. You can then use this image instead of RadChart.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top