X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=experimental%2Fpalette%2Findex.html;h=e5f1754c2adb1258ed0c8e6dc6bcd69968bd9049;hb=966ac3fa0de18a7b5ddefe4aba6938d8358ea0cf;hp=4b4539b88bea3cca07dab4416d4988ad820a0c40;hpb=3dcf1f1f6ade5ff7465ebcffc52c1dd93f9d0b72;p=dygraphs.git diff --git a/experimental/palette/index.html b/experimental/palette/index.html index 4b4539b..e5f1754 100644 --- a/experimental/palette/index.html +++ b/experimental/palette/index.html @@ -8,12 +8,12 @@ + + -

Palette

@@ -23,11 +23,7 @@
- +
@@ -49,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 @@ -65,6 +61,7 @@ The palette on the right contains (most) Dygraphs options. Here's how they work: