X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=experimental%2Fpalette%2Findex.html;h=e5f1754c2adb1258ed0c8e6dc6bcd69968bd9049;hb=b49775481c37d9c849d91c25221e84349477361f;hp=e2f76d349e15668e433c6abcc399bdd367fb1229;hpb=2b3ebdd94ffd4599b9ca75676819d7a58d70a39e;p=dygraphs.git diff --git a/experimental/palette/index.html b/experimental/palette/index.html index e2f76d3..e5f1754 100644 --- a/experimental/palette/index.html +++ b/experimental/palette/index.html @@ -8,12 +8,12 @@ + + -

Palette

@@ -45,9 +45,9 @@
  • You will see that the prototype function body is function(e, x, points){ }. Paste in this replacement function:

    - function(e, x){ var elem = - document.getElementById("messages"); elem.innerHTML = - elem.innerHTML + x + "<br>"; }

  • + function(e, x){
      var elem = + document.getElementById("messages");
      elem.innerHTML = + elem.innerHTML + x + "<br>";
    }
  • Click the OK button. The clickCallback button now says defined instead of not defined.
  • Click anywhere on the graph. The x-value will appear on the @@ -61,6 +61,7 @@ The palette on the right contains (most) Dygraphs options. Here's how they work: