<!DOCTYPE html>
<html>
<head>
+ <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
<title>dygraphs JavaScript Visualization Library</title>
<!--[if IE]>
<script type="text/javascript" src="excanvas.js"></script>
<ul>
<li>Plots time series without using an external server or Flash</li>
<li>Works in Internet Explorer (using excanvas)</li>
- <li>Lightweight (57kb) and responsive</li>
+ <li>Lightweight (69kb) and responsive</li>
<li>Displays values on mouseover (this makes it easily discoverable)</li>
<li>Supports error bands around data series</li>
<li>Interactive zoom</li>
<h2 id="ie">Internet Explorer Compatibility</h2>
- <p>The dygraphs library relies heavily on HTML's <code><canvas></code> tag, which Microsoft Internet Explorer does not support. Fortunately, some clever engineers created the <a href="http://code.google.com/p/explorercanvas/">excanvas</a> library, which implements the <code><canvas></code> tag in IE using VML.</p>
+ <p>The dygraphs library relies heavily on the HTML5 <code><canvas></code> tag, which Microsoft Internet Explorer did not traditionally support. To use Microsoft's native canvas implementation in IE9, you need to set an HTML5 doctype on your page:</p>
- <p>You can add IE support to any page using dygraphs by including the following in your page:</p>
+ <pre>
+ <!DOCTYPE html>
+ </pre>
+
+ <p>When IE9 is in HTML5 mode, dygraphs works just like in other modern browsers.</p>
+
+ <p>If you want to support previous versions of Internet Explorer (IE6–IE8), you'll need to include the <a href="http://code.google.com/p/explorercanvas/">excanvas</a> library, which emulates the <code><canvas></code> tag using VML. You can add excanvas by including this snippet:</p>
<pre>
<head>
</head>
</pre>
- <p>This works quite well in practice. Charts are responsive, even under VML emulation.</p>
+ <p>While this sounds like it would be slow, it works well in practice for most charts.</p>
<p>One common gotcha to look out for: make sure you don't have any trailing commas in parameter lists, e.g.</p>