X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=generate-documentation.py;h=f6d7d7903c6ec8036c62d2d8ee83610f66ec95b2;hb=99386b99835dfcc75053b4a9a4304b3d8a8546ad;hp=1a66689371506fc59d0c4c180bb28e5af8757914;hpb=b8ef87167876416f88f546694b7660f3c59a0568;p=dygraphs.git diff --git a/generate-documentation.py b/generate-documentation.py index 1a66689..f6d7d79 100755 --- a/generate-documentation.py +++ b/generate-documentation.py @@ -80,52 +80,36 @@ if debug_tests: sys.exit(0) # Extract a labels list. labels = [] -for nu, opt in docs.iteritems(): +for _, opt in docs.iteritems(): for label in opt['labels']: if label not in labels: labels.append(label) -print """ - - - Dygraphs Options Reference - - - - +print """ + + + + + + """ print """ -\n\n' print """ -
+

Options Reference

Dygraphs tries to do a good job of displaying your data without any further configuration. But inevitably, you're going to want to tinker. Dygraphs provides a rich set of options for configuring its display and behavior.

@@ -146,6 +130,9 @@ print """ new_option2: value2 }); + +

Some options can be set on a per-axis and per-series basis. See the docs on per-axis and per-series options to learn how to do this. The options which may be set in this way are marked as such on this page.

+

And, without further ado, here's the complete list of options:

""" @@ -218,9 +205,9 @@ Some callbacks take a point argument. Its properties are:
  • canvasx/canvasy: The canvas coordinates at which the point is drawn.
  • name: The name of the data series to which the point belongs
  • -
    - - +
    + + """ # This page was super-helpful: