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

RadChart colors are not rendered correctly in IE

1 Answer 51 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Raffy
Top achievements
Rank 1
Raffy asked on 11 Jun 2009, 01:38 AM
Hi,

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.

Regards,
Raffy

1 Answer, 1 is accepted

Sort by
0
Accepted
Ves
Telerik team
answered on 15 Jun 2009, 08:49 AM
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.

Sincerely,
Ves
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.
Tags
Chart (Obsolete)
Asked by
Raffy
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or