X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=experimental%2Fpalette%2Findex.html;h=e5f1754c2adb1258ed0c8e6dc6bcd69968bd9049;hb=dd371798a58578e470de0a7e292ca5ca550aa3f3;hp=8bed76ef30ea4c563f428c66bbe162bff4e7e7a0;hpb=f3fe39ed031e2ff2e6d699c06ad391013e84cac3;p=dygraphs.git diff --git a/experimental/palette/index.html b/experimental/palette/index.html index 8bed76e..e5f1754 100644 --- a/experimental/palette/index.html +++ b/experimental/palette/index.html @@ -8,11 +8,12 @@ + + + - - +

Palette

@@ -21,6 +22,9 @@ - +
+
+ +
Other messages: @@ -41,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 @@ -57,6 +61,7 @@ The palette on the right contains (most) Dygraphs options. Here's how they work:
      +
    • The selection box on top can be used to choose your own data source.
    • Use the filter box to constrain your selection. For instance, typing draw will show all options with that phrase in its name.
    • @@ -82,9 +87,9 @@ You get the idea.
  • - +