X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=experimental%2Fpalette%2Findex.html;h=ced58a9340aae7cd656d8dac6213f668de26c0eb;hb=795b16307db2a673ba7aa3452f6f6b0e93baeb3a;hp=1be363b470c1bd591992186e2fc1b1f928a4b0b8;hpb=d95dc01489ed4862cf1ac5841b27d3d990bb5a53;p=dygraphs.git diff --git a/experimental/palette/index.html b/experimental/palette/index.html index 1be363b..ced58a9 100644 --- a/experimental/palette/index.html +++ b/experimental/palette/index.html @@ -14,8 +14,6 @@ -

Palette

@@ -47,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