X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=experimental%2Fpalette%2Findex.html;h=a4632233b3ee7c529a20f8311672eb26465383a5;hb=0193e7efb2dec61f5bbfdce8e355babe87b7001f;hp=af490db91094e73f63afa37dc1a2ea6f8a9ac481;hpb=44885208a48a23f1e1a9e3bb867efdc94f1e5933;p=dygraphs.git diff --git a/experimental/palette/index.html b/experimental/palette/index.html index af490db..a463223 100644 --- a/experimental/palette/index.html +++ b/experimental/palette/index.html @@ -6,15 +6,16 @@ + + + -

Palette

@@ -46,9 +47,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