From 8f0efe6bb5598ea9ba2c875b8f4f57dc931f0616 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam <danvdk@gmail.com> Date: Thu, 4 Dec 2014 09:38:32 -0500 Subject: [PATCH] Update IE instructions --- docs/ie.html | 37 +++++-------------------------------- 1 file changed, 5 insertions(+), 32 deletions(-) diff --git a/docs/ie.html b/docs/ie.html index 0b1233b..49fa80f 100644 --- a/docs/ie.html +++ b/docs/ie.html @@ -10,37 +10,10 @@ <p>When IE9 is in HTML5 mode, dygraphs works just like in other modern browsers.</p> -<p>You should seriously consider stopping here! Older versions of IE have a small market share that's decreasing by the day. Major web sites, like the <a href="http://www.nytimes.com/">New York Times</a>, have already dropped support for IE8. Future versions of dygraphs will do the same. But if you insist…</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 the following snippet:</p> - -<pre> -<!DOCTYPE html> -<html> - <head> - <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9"> - <!--[if IE]><script src="path/to/excanvas.js"></script><![endif]--> - </head> -</pre> - -<p>(This is surprisingly tricky because the HTML5 doctype breaks excanvas in IE8. See <a href="https://groups.google.com/group/dygraphs-users/browse_thread/thread/c60709e04bc7fe5f#">this discussion</a> for details. Note that the <meta http-equiv…> line must appear <i>first</i> in the <head> section for this to work properly.)</p> - -<p>While VML emulation 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> - -<pre> -new Dygraph(el, data, { - showRoller: true, // note trailing comma -})</pre> - -<p>Most browsers will ignore the trailing comma, but it will break under IE.</p> - -<p>You may also need to delay instantiating any dygraphs until after the DOM -content is ready, as there have been some <a - href="https://groups.google.com/d/topic/dygraphs-users/qPX4Syx2kz8/discussion">reports</a> -that excanvas won't work until this happens. If you're using jQuery, this -means drawing your charts inside of a <code>$(function() { ... })</code> -block.</p> +<p>If you need to support older versions of IE, which do not have native + <code><canvas></code> implementations, you'll need to use the <a + href="/1.1.0/download.html">1.x series of dygraphs</a> and follow <a + href="/1.1.0/ie.html">its instructions for IE</a>. +</p> <!--#include virtual="footer.html" --> -- 2.7.4