Skip to content
Internet Explorer compatibility layer for Protovis
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Protovis MSIE-VML compatibility layer

A compatibility layer for Protovis that adds support for VML compatible browsers (Internet Explorer 7 and 8).

How to use this:

As you include Protovis as you normally would, include protovis-msie.js after it:

<script src="protovis.min.js"></script>
<script src="protovis-msie.min.js"></script>

The software should kick in on browsers that support VML, but don't support SVG, and procede to translate the visualization into VML.

There is no harm in including the file on other browsers but you can still choose to conditionally include the MSIE support:

<!--[if lte IE 8]><script src="protovis-msie.min.js"></script><![endif]-->

This saves non-VML browsers the trouble of downloading the code.

What can it do

The shim can translate lines, areas, panels, rules, labels and most basic things into VML at a fairly acceptable running speed. It has trouble with massive/complicated visualizations but most simple charts work fine.

Where does it fail?

Things known not to work are:

  • Polar interpolation for lines is missing.
  • Label shadow is missing.
  • Label text does not support opacity.
  • Zoom property is not supported.

The VML layer works quite well for visualizations that are static or not overly complex. However MSIE versions before 9 are slow and it will likely never be viable to run large and complex animated Protovis visualizations on those browsers.

Other than that you will simply have to experiment.

You can’t perform that action at this time.