{% filter markdown %}
[PlotKit Home](PlotKit.html) | [<<](PlotKit.Canvas.html) | [>>](PlotKit.SweetCanvas.html)
PlotKit SVG
===========
PlotKit SVG includes the SVGRenderer which allows chart plotting on SVG capable browsers such as Firefox 1.5 and Opera 9.0. It should support Adobe SVG plugin, but is current untested.
Important Implementation Requirements
-------------------------------------
In order to use the SVG Renderer, the file and webserver must support inline SVG files. This means the following conditions must exist:
###The HTML file must be XHTML compliant.
So it should start off with this:
...
###Correct XHTML Mime-Type
Firefox and MSIE are fussy about the mimetype to do in-line
SVG. Firefox requires that either the URL ends in .html or that the
file is returned as mime type ``application/xhtml+xml`` in the HTTP
headers.
However, MSIE does not recognise ``application/xhtml+xml`` and will
work fine with regular ``text/html`` mimetype for XHTML.
###Non XHTML Compliant javascript includes
You cannot use the autoloading MochiKit.js, but instead include all the JS files individually or use the packed MochiKit. This is because MochiKit's way of autoloading is not XHTML compliant.
An example of this is in the tests.
PlotKit SVG Options
-------------------
There are no additional options for the SVG Renderer apart from the default Renderer options.
{% endfilter %}