Add hash support.
[dygraphs.git] / gallery / README
diff --git a/gallery/README b/gallery/README
new file mode 100644 (file)
index 0000000..9063e81
--- /dev/null
@@ -0,0 +1,24 @@
+Tips on adding entries to the gallery
+* You can use the id in conjunction with specialized CSS.
+
+* Most files don't have a lot of HTML, but some have tons. See
+  independent-series for tips on adding a lot of HTML.
+
+* You can also define a function called cleanup, which is the
+  opposite of setup. It's perfect for stopping timers, for instance.
+
+* Callbacks in HTML widgets. You might assume you can use
+  <button onclick="func">
+  and then define func in your run script:
+  
+  run: function() { function func() { .. }; }
+
+  but because func is defined in function scope the button can't call it.
+  The solution is to put func in the global scope, which is the same as window
+  scope:
+
+  run: function() { function window.func() { .. }; }
+
+* You'll find it easier if you convert all the double-quotes in your HTML to
+  single quotes.
\ No newline at end of file