Friday, February 16, 2007

Samples

The Barchart sample in my website is now working in IE and Firefox.

I don't know if it supports other browsers. The lineChart sample has to be perfected to Firefox...

The secret to get the chart working in Firefox is the content-type to

image/svg+xml. In .net you can set this with this code in Page_load method.

(Request.Browser.Browser != "IE")

{

Response.ContentType = "image/svg+xml";

}









powered by performancing firefox

1 comment:

stelt said...

For IE+ASV you should also serve SVG as image/svg+xml

I haven't tried it on your example, but Opera is ahead of Firefox as an SVG implementation